Skip to content

Commit

Permalink
Update fight logic
Browse files Browse the repository at this point in the history
  • Loading branch information
cuklev committed Dec 17, 2016
1 parent fb81b29 commit beb93f9
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions src/Slim/logic/fight.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#include "fight.h"

#include "../drivers/MotorDriver.h"
#include "../drivers/ProximitySensors.h"
#include "../control/Movement.h"

Expand All @@ -20,12 +19,11 @@ void initFight()
{
debounce_start_timer = 50;

enqueueTurn(STANDARD_SPEED, 0, -20);
enqueueLinearMovement(STANDARD_SPEED, 250);
enqueueTurn(STANDARD_SPEED, 100, -360);
enqueueTurn(STANDARD_SPEED, 100, -360);
enqueueTurn(STANDARD_SPEED, 100, -360);
enqueueTurn(STANDARD_SPEED, 100, -360);
for(int i = 0; i < 16; ++i)
{
enqueueTurn(STANDARD_SPEED, 0, -90);
enqueueLinearMovement(STANDARD_SPEED, 150);
}
}

void handleFight()
Expand Down

0 comments on commit beb93f9

Please sign in to comment.