Project

General

Profile

Revision faa11f08

IDfaa11f08b06bf7e31069ba66d6bd28a308a5b730
Parent 360e3b6c
Child c15f2677

Added by Priya over 3 years ago

Changed it so that all behaviors are not instantiated immediately. Also changed pause so it does not spam (0, 0) motor speeds.

View differences:

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

  
28 28
void pause_scout::run()
29 29
{
30
  while(ok()){
31
	  motors->set_sides(0, 0, MOTOR_ABSOLUTE);
32
  }
30
  motors->set_sides(0, 0, MOTOR_ABSOLUTE);
31
  spinOnce();
32
  loop_rate->sleep();
33 33
}

Also available in: Unified diff