Dynamixel servo controller. This program consists of 2 parts: "dynamixel_servo_controller.cpp/.h" and "main.cpp"( demo program ).

Dependencies:   mbed

Fork of dynamixel_servo_controller by Yusuke Okino

Revision:
5:4474c07c6274
Parent:
4:ce4fef97e7e5
--- a/dynamixel_servo_controller.h	Wed Jun 13 14:26:28 2018 +0000
+++ b/dynamixel_servo_controller.h	Fri Jun 15 10:41:34 2018 +0000
@@ -72,16 +72,16 @@
     private:
 
         // Checksum polynomial
-        const static uint16_t CRC16_POLY = 0x8005;
+        static const uint16_t CRC16_POLY;
 
         /********************* レジスタマップ ***********************/
         /***************** instruction *******************/
-        const static uint8_t WRITE = 0x03;
+        static const uint8_t WRITE;
         /*************************************************/
 
         /**************** Control table ******************/
-        const static uint16_t TORQUE_ENABLE = 64;   
-        const static uint16_t GOAL_POSITION = 116;
+        static const uint16_t TORQUE_ENABLE;   
+        static const uint16_t GOAL_POSITION;
         /*************************************************/
         /***********************************************************/
 
@@ -172,3 +172,4 @@
 };
 
 #endif
+