Xiaofei Qiu / CommandPool
Committer:
Xiaofei
Date:
Sun Nov 29 00:03:03 2015 +0000
Revision:
9:4a795f28545b
Parent:
7:bfbded2b0e8c
c

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 9:4a795f28545b 8 const char STRAIGHT = 0x03;
Xiaofei 0:1e6560189dfa 9 const char STOP = 0x05;
Xiaofei 0:1e6560189dfa 10
Xiaofei 9:4a795f28545b 11 // Speeds for left wheel
Xiaofei 3:b83fb41e2726 12 const char SPEED1 = 0x10;
Xiaofei 3:b83fb41e2726 13 const char SPEED2 = 0x20;
Xiaofei 3:b83fb41e2726 14 const char SPEED3 = 0x30;
Xiaofei 1:2af5ac5be09c 15
Xiaofei 2:689cb6f63695 16 const char NEGATIVE = 0x08;
Xiaofei 2:689cb6f63695 17
Xiaofei 1:2af5ac5be09c 18 #endif