public class DexterIMUSensor extends BaseSensor implements SensorModes
Supported modes | |||
---|---|---|---|
Mode name | Description | unit(s) | Getter |
Rate | The Rate mode measures the angular speed of the sensor over three axes | Degrees/second | getRateMode() |
Acceleration | The Acceleration mode measures the linear acceleration of the sensor over three axes | Metres/second^2 | getAccelerationMode() |
Temperature | The Temperature mode measures the internal temperature of the sensors gyroscope IC | Degrees Celcius | getTemperatureMode() |
Sensor configuration
The sensor cannot be configured directly. The internal update frequency of the sensor is adjusted automaticly to match the I2C port speed.
See Sensor datasheet
See Sensor Product page
See The leJOS sensor framework
See leJOS conventions for SampleProviders
Modifier and Type | Class and Description |
---|---|
class |
DexterIMUSensor.DexterIMUAccelerationSensor
Class to access the Acceleration sensor from Dexter Industries IMU the acceleration sensor is the Freescale MMA7455
|
Modifier and Type | Field and Description |
---|---|
protected int |
Accel_I2C_address |
protected int |
Gyro_I2C_address |
currentMode, modes
Constructor and Description |
---|
DexterIMUSensor(I2CPort port) |
DexterIMUSensor(Port port) |
Modifier and Type | Method and Description |
---|---|
SampleProvider |
getAccelerationMode()
Dexter Industries dIMU Sensor, Acceleration Mode
The Acceleration mode measures the linear acceleration of the sensor over three axes |
SampleProvider |
getRateMode()
Dexter Industries dIMU Sensor, Rate Mode
The Rate mode measures the angular speed of the sensor over three axes |
SampleProvider |
getTemperatureMode()
Dexter Industries dIMU Sensor, Temperature Mode
The Temperature mode measures the internal temperature of the sensors gyroscope IC |
fetchSample, getAvailableModes, getCurrentMode, getMode, getMode, getModeCount, getName, sampleSize, setCurrentMode, setCurrentMode, setModes
close, releaseOnClose
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAvailableModes, getCurrentMode, getMode, getMode, getModeCount, setCurrentMode, setCurrentMode
getName
fetchSample, sampleSize
protected int Accel_I2C_address
protected int Gyro_I2C_address
public DexterIMUSensor(I2CPort port)
public DexterIMUSensor(Port port)
public SampleProvider getAccelerationMode()
Size and content of the sample
The sample contains three elements. Each element gives the linear acceleration (in metres/second^2) of the sensor over a single axis. The order of the axes in the sample is X, Y and Z.
Configuration
The sensor is configured for a dynamic range of -2G tot 2G and an internal update rate of 125 Hertz. Currently there are no configurable settings.
leJOS conventions for SampleProviders
See Freescale MMA7455L datasheet public SampleProvider getRateMode()
Size and content of the sample
The sample contains three elements. Each element gives the angular speed (in degrees/second) of the sensor over a single axis. The order of the axes in the sample is X, Y and Z.
Configuration
The sensor is configured for a dynamic range from -2000 to 2000 degrees/second. The internal sample rate is 100 Hertz by default and 400 Hertz when the sensor port is configured for high speed.
Currently there are no configurable settings.
leJOS conventions for SampleProviders
See ST L3G4200D datasheet public SampleProvider getTemperatureMode()
Size and content of the sample
The sample contains one elements providing the internal temperature (in gegrees Celcius) of the gyro sensors. Please note that the internal temperature of the sensor will exceed the temperature
of the environment when the sensor is in use.
Configuration
The temperature range of the sensor is -40 to 85 degrees Celcius. The update rate is 1 Hertz. There are no configurable settings.
leJOS conventions for SampleProviders
See ST L3G4200D datasheet