Exemple #1
0
 def get(self, speed):
     cardrive= CarDrive()
     cardrive.spinright(speed)
     cardrive.stop()   
     return {
         'status':'Car spin right.'
     }
Exemple #2
0
 def get(self, speed):
     cardrive= CarDrive()
     cardrive.turnrightback(speed)
     cardrive.stop()   
     return {
         'status':'Car turn left back.'
     }
Exemple #3
0
 def get(self, speed):
     cardrive= CarDrive()
     cardrive.backward(speed)
     cardrive.stop()
     return {
         'status':'Car moved backward.'
     }
Exemple #4
0
def turnrightback():
    cardrive= CarDrive()
    cardrive.turnrightback(50)
    cardrive.stop()
    return 'Car turn right.'