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.
Dependents: ususama_serial_demo WRS2021_mecanum_driver
Diff: ususama_protocol.hpp
- Revision:
- 2:92e2ae1b1886
- Parent:
- 1:33d6c6f43306
- Child:
- 3:3625406774ec
--- a/ususama_protocol.hpp Mon Aug 23 17:02:24 2021 +0000 +++ b/ususama_protocol.hpp Tue Aug 24 07:05:55 2021 +0000 @@ -10,9 +10,9 @@ public: struct MoveCommand_t { - int x; - int y; - int theta; + float x; + float y; + float theta; bool enable; }; struct MoveReply_t @@ -51,9 +51,9 @@ static const uint8_t COMMAND_STOP = 0x08; static const uint8_t REPLY_MOVE = 0x04; - static const uint8_t REPLY_POSE_X = 0x05; - static const uint8_t REPLY_POSE_Y = 0x06; - static const uint8_t REPLY_POSE_THETA = 0x07; + static const uint8_t REPLY_COMMAND_X = 0x05; + static const uint8_t REPLY_COMMAND_Y = 0x06; + static const uint8_t REPLY_COMMAND_THETA = 0x07; static const uint8_t REPLY_STOP = 0x08; static const uint8_t REPLY_STATE_X = 0x010; static const uint8_t REPLY_STATE_Y = 0x011;