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
diff -r ce4fef97e7e5 -r 4474c07c6274 dynamixel_servo_controller.cpp
--- a/dynamixel_servo_controller.cpp	Wed Jun 13 14:26:28 2018 +0000
+++ b/dynamixel_servo_controller.cpp	Fri Jun 15 10:41:34 2018 +0000
@@ -35,6 +35,20 @@
 namespace dynamixel_servo_v2
 {
 
+// Checksum polynomia
+const uint16_t XM430::CRC16_POLY = 0x8005;
+
+/********************* レジスタマップ ***********************/
+/***************** instruction *******************/
+const uint8_t XM430::WRITE = 0x03;
+/*************************************************/
+
+/**************** Control table ******************/
+const uint16_t XM430::TORQUE_ENABLE = 64;
+const uint16_t XM430::GOAL_POSITION = 116;
+/*************************************************/
+/***********************************************************/
+
 namespace 
 {
     // チェックサム計算クラス( 今後実装 )
@@ -290,3 +304,4 @@
 
 };
 
+