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

View differences:

scout/libscout/src/behaviors/pause_scout.cpp
27 27

  
28 28
void pause_scout::run()
29 29
{
30
  motors->set_sides(0, 0, MOTOR_ABSOLUTE);
31
  spinOnce();
32
  loop_rate->sleep();
30
  Duration delay(0.1);
31
  for(int i=0; i < 100; i++)
32
  {
33
    motors->set_sides(0, 0, MOTOR_ABSOLUTE);
34
    delay.sleep();
35
    spinOnce();
36
    loop_rate->sleep();
37
  }
33 38
}

Also available in: Unified diff