|
RoboJDETM v2.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ridgesoft.robotics.effectors.DevantechMD22
public class DevantechMD22
Class to interface with a Devantech MD22 dual motor driver attached to an I2C port.
Constructor Summary | |
---|---|
DevantechMD22(I2CMaster i2cMaster,
int deviceAddress)
Constructs a DevantechMD22 object. |
Method Summary | |
---|---|
Motor |
getMotor1()
Gets the Motor object for motor 1. |
Motor |
getMotor2()
Gets the Motor object for motor 2. |
int |
getSoftwareRevision()
Gets the software revsion of the device's software. |
void |
setAcceleration(int value)
Sets the motor controller's acceleration value (see MD22 documentation). |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait |
Constructor Detail |
---|
public DevantechMD22(I2CMaster i2cMaster, int deviceAddress) throws IOException
i2cMaster
- I2C object for the bus the compass connects todeviceAddress
- I2C device address of the MD22
IOException
Method Detail |
---|
public Motor getMotor1()
public Motor getMotor2()
public int getSoftwareRevision() throws IOException
IOException
public void setAcceleration(int value) throws IOException
value
- acceleration (0 - 255, default 0)
IOException
|
RoboJDETM v2.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |