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