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.
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