From 49810c265a28ec8fa36194944d772aa1607d45af Mon Sep 17 00:00:00 2001 From: svnhieber Date: Wed, 1 Dec 2010 21:09:16 +0000 Subject: [PATCH 1/1] fix maximum input limit for measured angle git-svn-id: https://svn.itm.uni-luebeck.de/wisebed/wiselib/trunk/pc_apps/roomba_tests@3659 f8795833-4959-0410-8ae9-8bcb0cfab428 --- main.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.cc b/main.cc index 2b1a128..af67cf5 100644 --- a/main.cc +++ b/main.cc @@ -152,7 +152,7 @@ void turn(Roomba& roomba, ControlledMotion& ctrl_motion) { measured_angle = getInt(0, "Input measured angle", chargeText(roomba) + QString("Orientation should be %1 degree now.\n\n").arg((cur_angle + turn_angle) % 360) + "Input measured angle in degree the Roomba has " - "turned:", turn_angle, 0, 359, 1, &ok); + "turned:", turn_angle, 0, numeric_limits::max(), 1, &ok); if(!ok) { break; } -- 2.20.1