Skip to content

Commit

Permalink
Changed auto to wait for hot goal before driving forward
Browse files Browse the repository at this point in the history
  • Loading branch information
anidev committed Apr 23, 2014
1 parent a8f1b14 commit 9ce5bab
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Autonomous.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,8 @@ void Autonomous::updateHighGoal()
case BASIC_DRIVE:
if(moveForward(DISTANCE))
{
printf("AUTO switch to IS_HOT\n");
stage = IS_HOT;
printf("AUTO switch to SMART_FIRE\n");
stage = SMART_FIRE;
return;
}
break;
Expand All @@ -132,16 +132,16 @@ void Autonomous::updateHighGoal()
case FINE_AIM:
if(tilt(HIGHGOAL_AUTOANGLE))
{
printf("AUTO switch to BASIC_DRIVE\n");
stage = BASIC_DRIVE;
printf("AUTO switch to IS_HOT\n");
stage = IS_HOT;
return;
}
break;
case IS_HOT:
if (determineHot()) {
printf("goal is hot\n");
printf("AUTO switch to SMART_FIRE\n");
stage=SMART_FIRE;
printf("AUTO switch to BASIC_DRIVE\n");
stage=BASIC_DRIVE;
return;
}
break;
Expand Down

0 comments on commit 9ce5bab

Please sign in to comment.