Xiaofei Qiu / CommandPool

protocol.h

Committer:
Xiaofei
Date:
2015-11-28
Revision:
2:689cb6f63695
Parent:
1:2af5ac5be09c
Child:
3:b83fb41e2726

File content as of revision 2:689cb6f63695:

#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 LEFT_SPEED1 = 0x10;
const char LEFT_SPEED2 = 0x20;
const char LEFT_SPEED3 = 0x30;

// Speeds for right wheel
const char RIGHT_SPEED1 = 0x40;
const char RIGHT_SPEED2 = 0x80;
const char RIGHT_SPEED3 = 0x12;

const char NEGATIVE = 0x08;

#endif