|
RoboJDETM v2.0 | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.ridgesoft.robotics.Compass
com.ridgesoft.robotics.sensors.DevantechCMPS03I2C
public class DevantechCMPS03I2C
Class to interface with a Devantech CMPS03 magnetic compass attached to an I2C port.
| Constructor Summary | |
|---|---|
DevantechCMPS03I2C(I2CMaster i2cMaster)
Constructs a Compass object for a CMPS03 compass attached to an I2C bus. |
|
| Method Summary | |
|---|---|
void |
calibrate()
Calibrate the compass. |
int |
getSoftwareRevision()
Gets the software revsion of the device's software. |
int |
heading()
Reads the current heading from the compass. |
| Methods inherited from class com.ridgesoft.robotics.Compass |
|---|
direction, direction, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait |
| Constructor Detail |
|---|
public DevantechCMPS03I2C(I2CMaster i2cMaster)
i2cMaster - I2C object for the bus the compass connects to| Method Detail |
|---|
public void calibrate()
throws IOException
The calibration proceedure is as follows:
IOException
public int getSoftwareRevision()
throws IOException
IOExceptionpublic int heading()
heading in class Compass
|
RoboJDETM v2.0 | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||