hidaka sato / UsusamaSerial

Dependents:   ususama_serial_demo WRS2021_mecanum_driver

Revision:
2:92e2ae1b1886
Parent:
1:33d6c6f43306
Child:
3:3625406774ec
diff -r 33d6c6f43306 -r 92e2ae1b1886 ususama_protocol.hpp
--- 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;