Xiaofei Qiu / CommandPool
Committer:
Xiaofei
Date:
Sat Nov 28 19:33:53 2015 +0000
Revision:
6:88382274a161
Parent:
3:b83fb41e2726
Child:
7:bfbded2b0e8c
m

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Xiaofei 0:1e6560189dfa 1 #ifndef PROTOCOL_H
Xiaofei 0:1e6560189dfa 2 #define PROTOCOL_H
Xiaofei 0:1e6560189dfa 3
Xiaofei 1:2af5ac5be09c 4 // Commands
Xiaofei 0:1e6560189dfa 5 const char LED = 0x00;
Xiaofei 0:1e6560189dfa 6 const char TURN_LEFT = 0x01;
Xiaofei 0:1e6560189dfa 7 const char TURN_RIGHT = 0x02;
Xiaofei 0:1e6560189dfa 8 const char STOP = 0x05;
Xiaofei 0:1e6560189dfa 9
Xiaofei 1:2af5ac5be09c 10 // Speeds for left wheel
Xiaofei 3:b83fb41e2726 11 const char SPEED1 = 0x10;
Xiaofei 3:b83fb41e2726 12 const char SPEED2 = 0x20;
Xiaofei 3:b83fb41e2726 13 const char SPEED3 = 0x30;
Xiaofei 1:2af5ac5be09c 14
Xiaofei 2:689cb6f63695 15 const char NEGATIVE = 0x08;
Xiaofei 2:689cb6f63695 16
Xiaofei 1:2af5ac5be09c 17 #endif