| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.wpi.first.wpilibj.SensorBase
edu.wpi.first.wpilibj.ADXL345_I2C
public class ADXL345_I2C
| Nested Class Summary | |
|---|---|
| static class | ADXL345_I2C.AllAxes | 
| static class | ADXL345_I2C.Axes | 
| static class | ADXL345_I2C.DataFormat_Range | 
| Field Summary | 
|---|
| Fields inherited from class edu.wpi.first.wpilibj.SensorBase | 
|---|
| kAnalogChannels, kAnalogModules, kDigitalChannels, kPwmChannels, kRelayChannels, kSolenoidChannels, kSolenoidModules, kSystemClockTicksPerMicrosecond, n_simProperties | 
| Constructor Summary | |
|---|---|
| ADXL345_I2C(int slot,
            ADXL345_I2C.DataFormat_Range range)Constructor. | |
| Method Summary | |
|---|---|
|  double | getAcceleration(ADXL345_I2C.Axes axis)Get the acceleration of one axis in Gs. | 
|  ADXL345_I2C.AllAxes | getAccelerations()Get the acceleration of all axes in Gs. | 
| Methods inherited from class edu.wpi.first.wpilibj.SensorBase | 
|---|
| checkAnalogChannel, checkAnalogModule, checkDigitalChannel, checkDigitalModule, checkPWMChannel, checkPWMModule, checkRelayChannel, checkRelayModule, checkSolenoidChannel, checkSolenoidModule, free, getDefaultAnalogModule, getDefaultDigitalModule, getDefaultSolenoidModule, getSimProperties, setDefaultAnalogModule, setDefaultDigitalModule, setDefaultSolenoidModule | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public ADXL345_I2C(int slot,
                   ADXL345_I2C.DataFormat_Range range)
slot - The slot of the digital module that the sensor is plugged into.range - The range (+ or -) that the accelerometer will measure.| Method Detail | 
|---|
public double getAcceleration(ADXL345_I2C.Axes axis)
axis - The axis to read from.
public ADXL345_I2C.AllAxes getAccelerations()
| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||