Xiaofei Qiu / CommandPool

protocol.h

Committer:
Xiaofei
Date:
2015-11-28
Revision:
3:b83fb41e2726
Parent:
2:689cb6f63695
Child:
6:88382274a161

File content as of revision 3:b83fb41e2726:

#ifndef PROTOCOL_H
#define PROTOCOL_H

// Commands
const char LED = 0x00;
const char TURN_LEFT = 0x01;
const char TURN_RIGHT = 0x02;
const char MOVE_FORWARD = 0x03;
const char MOVE_BACKWARD = 0x04;
const char STOP = 0x05;

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

const char NEGATIVE = 0x08;

#endif