AX12 servo motor library

Dependents:   M89_Dynamixel M89_FULL_CODE M89_ST_Dynamixel DISCO_L475VG_IOT01-wifi-client ... more

Fork of AX12 by Chris Styles

Revision:
3:ced71d1b2558
Parent:
2:5ea99c37a2d7
--- a/AX12.cpp	Sun Apr 10 20:58:21 2011 +0000
+++ b/AX12.cpp	Sun Apr 10 21:20:44 2011 +0000
@@ -159,6 +159,21 @@
 }
 
 
+int AX12::SetBaud (int baud) {
+
+    char data[1];
+    data[0] = baud;
+
+#ifdef AX12_DEBUG
+    printf("Setting Baud rate to %d\n",baud);
+#endif
+
+    return (write(0xFE, AX12_REG_BAUD, 1, data));
+
+}
+
+
+
 // return 1 is the servo is still in flight
 int AX12::isMoving(void) {