Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: MotorBusManager.h
- 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