From: Yannick B. <rob...@us...> - 2004-12-08 19:44:54
|
Update of /cvsroot/robotflow/RobotFlow/Player/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2584 Modified Files: PlayerPTZ.cc Log Message: Use double constant instant of in one in call to max and min Index: PlayerPTZ.cc =================================================================== RCS file: /cvsroot/robotflow/RobotFlow/Player/src/PlayerPTZ.cc,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** PlayerPTZ.cc 2 Jun 2004 20:51:55 -0000 1.10 --- PlayerPTZ.cc 8 Dec 2004 19:44:34 -0000 1.11 *************** *** 230,234 **** pan_command = max(-pan_limit,min(pan_command,pan_limit)); tilt_command = max(-tilt_limit,min(tilt_command,tilt_limit)); ! zoom_command = max(1,min(zoom_command,24)); //writing ptz command --- 230,234 ---- pan_command = max(-pan_limit,min(pan_command,pan_limit)); tilt_command = max(-tilt_limit,min(tilt_command,tilt_limit)); ! zoom_command = max(1.0,min(zoom_command,24.0)); //writing ptz command |