Skip to content

Commit

Permalink
ajustes de sumo
Browse files Browse the repository at this point in the history
  • Loading branch information
JavierIH committed Sep 5, 2014
1 parent 1cf95a9 commit 78d4dc6
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
15 changes: 11 additions & 4 deletions programming/src/apps/ceabot/fight.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ int main()
int left_distance;
int right_distance;
int state=1;
int state_vertical;
int golpe=0;

while(true){
switch (state) {
Expand Down Expand Up @@ -84,7 +84,15 @@ int main()
break;

case 7:
raider.crab();
//raider.crab();
if(golpe==0){
raider.punchL();
golpe=1;
}
else{
raider.punchR();
golpe=0;
}
state=10;
break;

Expand All @@ -100,14 +108,13 @@ int main()
case 10:
raider.getUp();
state=1;
break;
break;

default:
state=1;
break;

}

}
}

2 changes: 1 addition & 1 deletion programming/src/apps/ceabot/navigation.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include "../../libraries/raider/raider.h"
#include <iostream>
#define FW_ANGLE 20
#define FW_DISTANCE 16
#define FW_DISTANCE 15
#define FL_ANGLE 15
#define FL_DISTANCE 30
using namespace std;
Expand Down

0 comments on commit 78d4dc6

Please sign in to comment.