Revision dcf49526 scout/libscout/src/behaviors/pause_scout.cpp

View differences:

scout/libscout/src/behaviors/pause_scout.cpp
28 28
void pause_scout::run()
29 29
{
30 30
  Duration delay(0.2);
31
  for(int i=0; i < 500; i++)
31
  for(int i=0; i < 500 && ok(); i++)
32 32
  {
33 33
    motors->set_sides(0, 0, MOTOR_ABSOLUTE);
34 34
    delay.sleep();

Also available in: Unified diff