52 lines
1.7 KiB
Python
52 lines
1.7 KiB
Python
|
class COMMAND:
|
||
|
CMD_MOTOR = "CMD_MOTOR"
|
||
|
CMD_LED = "CMD_LED"
|
||
|
CMD_LED_MOD = "CMD_LED_MOD"
|
||
|
CMD_SERVO = "CMD_SERVO"
|
||
|
CMD_BUZZER = "CMD_BUZZER"
|
||
|
CMD_SONIC = "CMD_SONIC"
|
||
|
CMD_LIGHT = "CMD_LIGHT"
|
||
|
CMD_POWER = "CMD_POWER"
|
||
|
CMD_START = "Start"
|
||
|
CMD_STOP = "Stop"
|
||
|
CMD_CLOSE = "CMD_CLOSE"
|
||
|
CMD_FORWARD = "CMD_MOTOR#1500#1500#1500#1500"
|
||
|
CMD_TURULEFT = "CMD_MOTOR#-1500#-1500#1500#1500"
|
||
|
CMD_BACKWARD = "CMD_MOTOR#-1500#-1500#-1500#-1500"
|
||
|
CMD_TURNRIGHT = "CMD_MOTOR#1500#1500#-1500#-1500"
|
||
|
CMD_MOTORSTOP = "CMD_MOTOR#0#0#0#0"
|
||
|
CMD_SERVO1 = "CMD_SERVO#1#0#"
|
||
|
CMD_SERVO2 = "CMD_SERVO#0#1#0#"
|
||
|
CMD_LED0_OFF = "CMD_LED#0#0#0#0"
|
||
|
CMD_LED0_ON = "CMD_LED#0#"
|
||
|
CMD_LED1_OFF = "CMD_LED#1#0#0#0"
|
||
|
CMD_LED1_ON = "CMD_LED#1#"
|
||
|
CMD_LED2_OFF = "CMD_LED#2#0#0#0"
|
||
|
CMD_LED2_ON = "CMD_LED#2#"
|
||
|
CMD_LED3_OFF = "CMD_LED#3#0#0#0"
|
||
|
CMD_LED3_ON = "CMD_LED#3#"
|
||
|
CMD_LED4_OFF = "CMD_LED#4#0#0#0"
|
||
|
CMD_LED4_ON = "CMD_LED#4#"
|
||
|
CMD_LED5_OFF = "CMD_LED#5#0#0#0"
|
||
|
CMD_LED5_ON = "CMD_LED#5#"
|
||
|
CMD_LED6_OFF = "CMD_LED#6#0#0#0"
|
||
|
CMD_LED6_ON = "CMD_LED#6#"
|
||
|
CMD_LED7_OFF = "CMD_LED#7#0#0#0"
|
||
|
CMD_LED7_ON = "CMD_LED#7#"
|
||
|
CMD_LED_MOD1 = "CMD_LED_MOD#one"
|
||
|
CMD_LED_MOD2 = "CMD_LED_MOD#two"
|
||
|
CMD_LED_MOD3 = "CMD_LED_MOD#three"
|
||
|
CMD_LED_MOD4 = "CMD_LED_MOD#four"
|
||
|
CMD_LED_OFF = "CMD_LED_MOD#0"
|
||
|
CMD_BUZZER_ON = "CMD_BUZZER#Start"
|
||
|
CMD_BUZZER_OFF = "CMD_BUZZER#Stop"
|
||
|
CMD_ULTRASONIC_ON = "CMD_SONIC#Start"
|
||
|
CMD_ULTRASONIC_OFF = "CMD_SONIC#Stop"
|
||
|
CMD_LIGHT_ON = "CMD_LIGHT#Start"
|
||
|
CMD_LIGHT_OFF = "CMD_LIGHT#Stop"
|
||
|
CMD_POWER_ON = "CMD_POWER#Start"
|
||
|
CMD_POWER_OFF = "CMD_POWER#Stop"
|
||
|
CMD_MODE =["CMD_MODE1","CMD_MODE2","CMD_MODE3","CMD_MODE4"]
|
||
|
def __init__(self):
|
||
|
pass
|