Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of AigamozuControlPackets by
Diff: AigamozuControlPackets.h
- Revision:
- 9:4f675487f06b
- Parent:
- 8:aff2d67d31c8
- Child:
- 11:4d71c9cc3b4a
--- a/AigamozuControlPackets.h Thu Apr 09 11:17:06 2015 +0000
+++ b/AigamozuControlPackets.h Fri Apr 10 12:58:42 2015 +0000
@@ -11,7 +11,7 @@
#define vertex2D vector2D
-enum COMMAND_TYPE {MANUAL = 'M', STATUS_REQUEST = 'S', CHANGE_MODE = 'C', RECEIVE_STATUS = 'R', REQUEST_COMMAND = 'Q'};
+enum COMMAND_TYPE {MANUAL = 'M', STATUS_REQUEST = 'S', CHANGE_MODE = 'C', RECEIVE_STATUS = 'R'};
enum MODE {STANDBY_MODE = 0, MANUAL_MODE = 1,AUTO_MODE = 2,AUTO_GPS_MODE = 3};
enum STATUS {GPS_AVAIL = 0, GPS_UNAVAIL = 1,GPS_OUT_AREA = 2};
@@ -36,7 +36,7 @@
uint8_t* packetData;
//Create Packet: Controller/Base -> Robot
void createManualCommad(uint8_t fromID,uint8_t toID,uint8_t directionL,uint8_t pwmL,uint8_t directionR, uint8_t pwmR);
- void createRequestCommand(uint8_t fromID,uint8_t toID,uint8_t);
+ void createRequestCommand(uint8_t fromID,uint8_t toID);
void createChangeModeCommand(uint8_t fromID,uint8_t toID,uint8_t,MODE mode);
//Create Packet: Robot -> Controller/Base
@@ -53,7 +53,7 @@
//Check Command Type using xbee buffer;
uint8_t checkCommnadType(uint8_t* buf);
- //Change Motor Speed
+ //Change Speed
void changeSpeed(uint8_t* buf);
MODE nowMode;
