Xiaofei Qiu / CommandPool

protocol.h

Committer:
Xiaofei
Date:
2015-11-28
Revision:
7:bfbded2b0e8c
Parent:
6:88382274a161
Child:
9:4a795f28545b

File content as of revision 7:bfbded2b0e8c:

#ifndef PROTOCOL_H
#define PROTOCOL_H

// Commands
const char LED = 0x00;
const char TURN_LEFT = 0x01;
const char TURN_RIGHT = 0x02;
const char STOP = 0x05;

// Speeds for wheels
const char SPEED1 = 0x10;
const char SPEED2 = 0x20;
const char SPEED3 = 0x30;

// Speed direction, 1 = backward, 0 = forward
const char NEGATIVE = 0x08;

#endif