[tuxdroid-svn] r845 - api/python/trunk
Status: Beta
Brought to you by:
ks156
From: Paul_R <c2m...@c2...> - 2008-01-11 14:44:53
|
Author: Paul_R Date: 2008-01-11 15:44:55 +0100 (Fri, 11 Jan 2008) New Revision: 845 Modified: api/python/trunk/tuxapi_class.py api/python/trunk/tuxapi_const.py Log: * Minor change on the tuc.cmd.move command. Modified: api/python/trunk/tuxapi_class.py =================================================================== --- api/python/trunk/tuxapi_class.py 2008-01-11 14:39:01 UTC (rev 844) +++ api/python/trunk/tuxapi_class.py 2008-01-11 14:44:55 UTC (rev 845) @@ -1952,7 +1952,11 @@ - 0 / UNDEFINED - 1 / OPEN / UP - 2 / CLOSE / DOWN + - 3 / STOP + Note : The only final state parameters you can + use with the spinning are UNDEFINED and STOP. + "refresh" as bool : Change speed only. If this flag is set, only the speed will be changed. This allow to change the speed during @@ -1964,7 +1968,7 @@ Blink the eyes 7 time, and finish with the eyes open : >>> tux.cmd.move(0, 7, 0, 0, 1, 0) or - >>> tux.cmd.move(movement = EYES, counter = 7, final_state = 1) + >>> tux.cmd.move(movement = EYES, counter = 7, final_state = OPEN) Move wings for 150ms with the maximum speed: >>> tux.cmd.move(2, 0, 0.15, 5, 0, 0) Modified: api/python/trunk/tuxapi_const.py =================================================================== --- api/python/trunk/tuxapi_const.py 2008-01-11 14:39:01 UTC (rev 844) +++ api/python/trunk/tuxapi_const.py 2008-01-11 14:44:55 UTC (rev 845) @@ -471,6 +471,7 @@ UP = 1 CLOSE = 2 DOWN = 2 +STOP = 3 VERYLOW = 1 LOW = 2 |