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:
- 6:f164a716be46
- Parent:
- 5:3f51eeb5aedc
- Child:
- 7:200ce5c1f486
--- a/AigamozuControlPackets.h Sun Jun 08 15:09:02 2014 +0000 +++ b/AigamozuControlPackets.h Mon Jun 09 00:16:38 2014 +0000 @@ -11,22 +11,20 @@ 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}; +enum STATUS {GPS_AVAIL = 0, GPS_UNAVAIL = 1,GPS_OUT_AREA = 2}; union TEST_T{ long a; uint8_t b[4]; }; - - - class AigamozuControlPackets{ + //--------PUBLIC-----------// public: AigamozuControlPackets(VNH5019 agzSheild); - Ticker hoge; + Ticker eachModeInt; uint8_t* packetData; //Create Packet: Controller/Base -> Robot @@ -55,8 +53,8 @@ STATUS nowStatus; int packetLength; - + //--------PRIVATE-----------// private: // VNH5019 _agzSheild; @@ -68,14 +66,8 @@ void randomAuto(); int randomCount; - - //Auto Type 2 -> GPS void gpsAuto(); - - - - }; #endif \ No newline at end of file