Xiaofei Qiu / GenCMD
Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers protocol.h Source File

protocol.h

00001 #ifndef PROTOCOL_H
00002 #define PROTOCOL_H
00003 
00004 // Commands
00005 const char LED = 0x00;
00006 const char TURN_LEFT = 0x01;
00007 const char TURN_RIGHT = 0x02;
00008 const char STRAIGHT = 0x03;
00009 const char STOP = 0x05;
00010 
00011 // Speeds for left wheel
00012 const char SPEED1 = 0x10;
00013 const char SPEED2 = 0x20;
00014 const char SPEED3 = 0x30;
00015 
00016 const char NEGATIVE = 0x08;
00017 
00018 #endif