Scott Xmiles / DynamixelAX12
Revision:
0:459be9e7bfe6
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/MotorBusManager.h	Fri Apr 02 23:51:11 2010 +0000
@@ -0,0 +1,20 @@
+#ifndef __motor_bus_manager_h
+#define __motor_bus_manager_h
+
+#include "AX12.h"
+
+#define MAX_MOTORS 2
+
+class MotorBusManager {
+    public:
+        MotorBusManager(long baud);
+        int  addMotor(int id);
+        int  getRegister(int index, int regstart, int length);
+        void setRegister(int index, int regstart, int data);
+        
+    private:
+        int nextMotorIndex;
+        AX12* motorBus[MAX_MOTORS];
+}
+
+#endif
\ No newline at end of file