MotorBusManager.h
- Committer:
- deoryp
- Date:
- 2010-04-02
- Revision:
- 0:459be9e7bfe6
File content as of revision 0:459be9e7bfe6:
#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