MotorBusManager.cpp
- Committer:
- deoryp
- Date:
- 2010-04-02
- Revision:
- 0:459be9e7bfe6
File content as of revision 0:459be9e7bfe6:
#include "MotorBusManager.h" MotorBusManager::MotorBusManager(long baud) { nextMotorIndex = 0; } int MotorBusManager::addMotor(int id) { if (nextMotorIndex >= MAX_MOTORS) { return -1; } AX12 newMotor = new AX12(id); motorBus[nextMotorIndex] = &newMotor; nextMotorIndex++; return nextMotorIndex-1; } int MotorBusManager::getRegister(int index, int regstart, int length) { return -1; } void MotorBusManager::setRegister(int index, int regstart, int data) { }