- // new angle to turn about
- input_angle = getInt(0, "Input angle", chargeText
- + "Input new angle in degree to turn about:", input_angle,
- numeric_limits<int>::min(), numeric_limits<int>::max(), 1, &ok);
- if(ok) {
- // new turn velocity
- velocity = getInt(0, "Input velocity", chargeText
- + "Input turn velocity in mm/sec:", velocity, -500, 500, 10, &ok);
- if(ok) {
- ctrl_motion.turn_about(Math::degrees_to_radians(input_angle), velocity);
- roomba.wait_for_stop();
- } else {
- break;
- }
- } else {
+ // angle to turn about
+ turn_angle = getInt(0, "Input turn angle", chargeText(roomba)
+ + "Input angle in degree to turn about:", turn_angle,
+ numeric_limits<int>::min() + 360, numeric_limits<int>::max() - 360, 1,
+ &ok);
+ if(!ok) {