예제 #1
0
    def setNeckJoystickPos( self, joystickX, joystickY ):
        #print "g"
        joystickX, joystickY = self.normaliseJoystickData( joystickX, joystickY )
        if debug:	
			print "Right joy",joystickX, joystickY
			print self.speed_r*joystickY
        brickpibot.set_right_speed(int(self.speed_r*joystickY))
        brickpibot.fwd()
        self.lastMotionCommandTime = time.time()
예제 #2
0
 def centreNeck( self ):
     brickpibot.set_right_speed(0)