[tuxdroid-svn] r131 - api/python/trunk
Status: Beta
Brought to you by:
ks156
From: remi <c2m...@c2...> - 2007-03-02 13:34:25
|
Author: remi Date: 2007-03-02 14:33:44 +0100 (Fri, 02 Mar 2007) New Revision: 131 Modified: api/python/trunk/tuxapi_class.py Log: UPD : cmd.eyes_open() and cmd.eyes_close() bug fixed Modified: api/python/trunk/tuxapi_class.py =================================================================== --- api/python/trunk/tuxapi_class.py 2007-03-01 17:23:13 UTC (rev 130) +++ api/python/trunk/tuxapi_class.py 2007-03-02 13:33:44 UTC (rev 131) @@ -633,12 +633,12 @@ ## Send command to tux for opening eyes def eyes_open(self): - if self.parent.status.get_eyes_open_position_switch()==1: + if self.parent.status.get_eyes_closed_position_switch()==0: self.eyes_on() ## Send command to tux for closing eyes def eyes_close(self): - if self.parent.status.get_eyes_open_position_switch()==0: + if self.parent.status.get_eyes_closed_position_switch()==1: self.eyes_on() ## Send command to tux for moving eyes |