public class BrickletIMUV3 extends Device
Device.Identity
Constructor and Description |
---|
BrickletIMUV3(java.lang.String uid,
IPConnection ipcon)
Creates an object with the unique device ID \c uid.
|
Modifier and Type | Method and Description |
---|---|
void |
addAccelerationListener(BrickletIMUV3.AccelerationListener listener)
Adds a Acceleration listener.
|
void |
addAllDataListener(BrickletIMUV3.AllDataListener listener)
Adds a AllData listener.
|
void |
addAngularVelocityListener(BrickletIMUV3.AngularVelocityListener listener)
Adds a AngularVelocity listener.
|
void |
addGravityVectorListener(BrickletIMUV3.GravityVectorListener listener)
Adds a GravityVector listener.
|
void |
addLinearAccelerationListener(BrickletIMUV3.LinearAccelerationListener listener)
Adds a LinearAcceleration listener.
|
void |
addMagneticFieldListener(BrickletIMUV3.MagneticFieldListener listener)
Adds a MagneticField listener.
|
void |
addOrientationListener(BrickletIMUV3.OrientationListener listener)
Adds a Orientation listener.
|
void |
addQuaternionListener(BrickletIMUV3.QuaternionListener listener)
Adds a Quaternion listener.
|
void |
addTemperatureListener(BrickletIMUV3.TemperatureListener listener)
Adds a Temperature listener.
|
BrickletIMUV3.Acceleration |
getAcceleration()
Returns the calibrated acceleration from the accelerometer for the
x, y and z axis.
|
BrickletIMUV3.AccelerationCallbackConfiguration |
getAccelerationCallbackConfiguration()
Returns the listener configuration as set by
setAccelerationCallbackConfiguration(long, boolean) . |
BrickletIMUV3.AllData |
getAllData()
Return all of the available data of the IMU Brick.
|
BrickletIMUV3.AllDataCallbackConfiguration |
getAllDataCallbackConfiguration()
Returns the listener configuration as set by
setAllDataCallbackConfiguration(long, boolean) . |
BrickletIMUV3.AngularVelocity |
getAngularVelocity()
Returns the calibrated angular velocity from the gyroscope for the
x, y and z axis.
|
BrickletIMUV3.AngularVelocityCallbackConfiguration |
getAngularVelocityCallbackConfiguration()
Returns the listener configuration as set by
setAngularVelocityCallbackConfiguration(long, boolean) . |
int |
getBootloaderMode()
Returns the current bootloader mode, see
setBootloaderMode(int) . |
int |
getChipTemperature()
Returns the temperature as measured inside the microcontroller.
|
BrickletIMUV3.GravityVector |
getGravityVector()
Returns the current gravity vector of the IMU Brick for the
x, y and z axis.
|
BrickletIMUV3.GravityVectorCallbackConfiguration |
getGravityVectorCallbackConfiguration()
Returns the listener configuration as set by
setGravityVectorCallbackConfiguration(long, boolean) . |
Device.Identity |
getIdentity()
Returns the UID, the UID where the Bricklet is connected to,
the position, the hardware and firmware version as well as the
device identifier.
|
BrickletIMUV3.LinearAcceleration |
getLinearAcceleration()
Returns the linear acceleration of the IMU Brick for the
x, y and z axis.
|
BrickletIMUV3.LinearAccelerationCallbackConfiguration |
getLinearAccelerationCallbackConfiguration()
Returns the listener configuration as set by
setLinearAccelerationCallbackConfiguration(long, boolean) . |
BrickletIMUV3.MagneticField |
getMagneticField()
Returns the calibrated magnetic field from the magnetometer for the
x, y and z axis.
|
BrickletIMUV3.MagneticFieldCallbackConfiguration |
getMagneticFieldCallbackConfiguration()
Returns the listener configuration as set by
setMagneticFieldCallbackConfiguration(long, boolean) . |
BrickletIMUV3.Orientation |
getOrientation()
Returns the current orientation (heading, roll, pitch) of the IMU Brick as
independent Euler angles.
|
BrickletIMUV3.OrientationCallbackConfiguration |
getOrientationCallbackConfiguration()
Returns the listener configuration as set by
setOrientationCallbackConfiguration(long, boolean) . |
BrickletIMUV3.Quaternion |
getQuaternion()
Returns the current orientation (w, x, y, z) of the IMU Brick as
`quaternions <https://en.wikipedia.org/wiki/Quaternions_and_spatial_rotation>`__.
|
BrickletIMUV3.QuaternionCallbackConfiguration |
getQuaternionCallbackConfiguration()
Returns the listener configuration as set by
setQuaternionCallbackConfiguration(long, boolean) . |
BrickletIMUV3.SensorConfiguration |
getSensorConfiguration()
Returns the sensor configuration as set by
setSensorConfiguration(int, int, int, int, int) . |
int |
getSensorFusionMode()
Returns the sensor fusion mode as set by
setSensorFusionMode(int) . |
BrickletIMUV3.SPITFPErrorCount |
getSPITFPErrorCount()
Returns the error count for the communication between Brick and Bricklet.
|
int |
getStatusLEDConfig()
Returns the configuration as set by
setStatusLEDConfig(int) |
int |
getTemperature()
Returns the temperature of the IMU Brick.
|
BrickletIMUV3.TemperatureCallbackConfiguration |
getTemperatureCallbackConfiguration()
Returns the listener configuration as set by
setTemperatureCallbackConfiguration(long, boolean) . |
long |
readUID()
Returns the current UID as an integer.
|
void |
removeAccelerationListener(BrickletIMUV3.AccelerationListener listener)
Removes a Acceleration listener.
|
void |
removeAllDataListener(BrickletIMUV3.AllDataListener listener)
Removes a AllData listener.
|
void |
removeAngularVelocityListener(BrickletIMUV3.AngularVelocityListener listener)
Removes a AngularVelocity listener.
|
void |
removeGravityVectorListener(BrickletIMUV3.GravityVectorListener listener)
Removes a GravityVector listener.
|
void |
removeLinearAccelerationListener(BrickletIMUV3.LinearAccelerationListener listener)
Removes a LinearAcceleration listener.
|
void |
removeMagneticFieldListener(BrickletIMUV3.MagneticFieldListener listener)
Removes a MagneticField listener.
|
void |
removeOrientationListener(BrickletIMUV3.OrientationListener listener)
Removes a Orientation listener.
|
void |
removeQuaternionListener(BrickletIMUV3.QuaternionListener listener)
Removes a Quaternion listener.
|
void |
removeTemperatureListener(BrickletIMUV3.TemperatureListener listener)
Removes a Temperature listener.
|
void |
reset()
Calling this function will reset the Bricklet.
|
boolean |
saveCalibration()
A call of this function saves the current calibration to be used
as a starting point for the next restart of continuous calibration
of the IMU Brick.
|
void |
setAccelerationCallbackConfiguration(long period,
boolean valueHasToChange)
The period is the period with which the
BrickletIMUV3.AccelerationListener listener
is triggered periodically. |
void |
setAllDataCallbackConfiguration(long period,
boolean valueHasToChange)
The period is the period with which the
BrickletIMUV3.AllDataListener listener
is triggered periodically. |
void |
setAngularVelocityCallbackConfiguration(long period,
boolean valueHasToChange)
The period is the period with which the
BrickletIMUV3.AngularVelocityListener listener
is triggered periodically. |
int |
setBootloaderMode(int mode)
Sets the bootloader mode and returns the status after the requested
mode change was instigated.
|
void |
setGravityVectorCallbackConfiguration(long period,
boolean valueHasToChange)
The period is the period with which the
BrickletIMUV3.GravityVectorListener listener
is triggered periodically. |
void |
setLinearAccelerationCallbackConfiguration(long period,
boolean valueHasToChange)
The period is the period with which the
BrickletIMUV3.LinearAccelerationListener listener
is triggered periodically. |
void |
setMagneticFieldCallbackConfiguration(long period,
boolean valueHasToChange)
The period is the period with which the
BrickletIMUV3.MagneticFieldListener listener
is triggered periodically. |
void |
setOrientationCallbackConfiguration(long period,
boolean valueHasToChange)
The period is the period with which the
BrickletIMUV3.OrientationListener listener
is triggered periodically. |
void |
setQuaternionCallbackConfiguration(long period,
boolean valueHasToChange)
The period is the period with which the
BrickletIMUV3.QuaternionListener listener
is triggered periodically. |
void |
setSensorConfiguration(int magnetometerRate,
int gyroscopeRange,
int gyroscopeBandwidth,
int accelerometerRange,
int accelerometerBandwidth)
Sets the available sensor configuration for the Magnetometer, Gyroscope and
Accelerometer.
|
void |
setSensorFusionMode(int mode)
If the fusion mode is turned off, the functions
getAcceleration() ,
getMagneticField() and getAngularVelocity() return uncalibrated
and uncompensated sensor data. |
void |
setStatusLEDConfig(int config)
Sets the status LED configuration.
|
void |
setTemperatureCallbackConfiguration(long period,
boolean valueHasToChange)
The period is the period with which the
BrickletIMUV3.TemperatureListener listener
is triggered periodically. |
void |
setWriteFirmwarePointer(long pointer)
Sets the firmware pointer for
writeFirmware(int[]) . |
int |
writeFirmware(int[] data)
Writes 64 Bytes of firmware at the position as written by
setWriteFirmwarePointer(long) before. |
void |
writeUID(long uid)
Writes a new UID into flash.
|
getAPIVersion, getResponseExpected, setResponseExpected, setResponseExpectedAll
public static final int DEVICE_IDENTIFIER
public static final java.lang.String DEVICE_DISPLAY_NAME
public static final byte FUNCTION_GET_ACCELERATION
public static final byte FUNCTION_GET_MAGNETIC_FIELD
public static final byte FUNCTION_GET_ANGULAR_VELOCITY
public static final byte FUNCTION_GET_TEMPERATURE
public static final byte FUNCTION_GET_ORIENTATION
public static final byte FUNCTION_GET_LINEAR_ACCELERATION
public static final byte FUNCTION_GET_GRAVITY_VECTOR
public static final byte FUNCTION_GET_QUATERNION
public static final byte FUNCTION_GET_ALL_DATA
public static final byte FUNCTION_SAVE_CALIBRATION
public static final byte FUNCTION_SET_SENSOR_CONFIGURATION
public static final byte FUNCTION_GET_SENSOR_CONFIGURATION
public static final byte FUNCTION_SET_SENSOR_FUSION_MODE
public static final byte FUNCTION_GET_SENSOR_FUSION_MODE
public static final byte FUNCTION_SET_ACCELERATION_CALLBACK_CONFIGURATION
public static final byte FUNCTION_GET_ACCELERATION_CALLBACK_CONFIGURATION
public static final byte FUNCTION_SET_MAGNETIC_FIELD_CALLBACK_CONFIGURATION
public static final byte FUNCTION_GET_MAGNETIC_FIELD_CALLBACK_CONFIGURATION
public static final byte FUNCTION_SET_ANGULAR_VELOCITY_CALLBACK_CONFIGURATION
public static final byte FUNCTION_GET_ANGULAR_VELOCITY_CALLBACK_CONFIGURATION
public static final byte FUNCTION_SET_TEMPERATURE_CALLBACK_CONFIGURATION
public static final byte FUNCTION_GET_TEMPERATURE_CALLBACK_CONFIGURATION
public static final byte FUNCTION_SET_ORIENTATION_CALLBACK_CONFIGURATION
public static final byte FUNCTION_GET_ORIENTATION_CALLBACK_CONFIGURATION
public static final byte FUNCTION_SET_LINEAR_ACCELERATION_CALLBACK_CONFIGURATION
public static final byte FUNCTION_GET_LINEAR_ACCELERATION_CALLBACK_CONFIGURATION
public static final byte FUNCTION_SET_GRAVITY_VECTOR_CALLBACK_CONFIGURATION
public static final byte FUNCTION_GET_GRAVITY_VECTOR_CALLBACK_CONFIGURATION
public static final byte FUNCTION_SET_QUATERNION_CALLBACK_CONFIGURATION
public static final byte FUNCTION_GET_QUATERNION_CALLBACK_CONFIGURATION
public static final byte FUNCTION_SET_ALL_DATA_CALLBACK_CONFIGURATION
public static final byte FUNCTION_GET_ALL_DATA_CALLBACK_CONFIGURATION
public static final byte FUNCTION_GET_SPITFP_ERROR_COUNT
public static final byte FUNCTION_SET_BOOTLOADER_MODE
public static final byte FUNCTION_GET_BOOTLOADER_MODE
public static final byte FUNCTION_SET_WRITE_FIRMWARE_POINTER
public static final byte FUNCTION_WRITE_FIRMWARE
public static final byte FUNCTION_SET_STATUS_LED_CONFIG
public static final byte FUNCTION_GET_STATUS_LED_CONFIG
public static final byte FUNCTION_GET_CHIP_TEMPERATURE
public static final byte FUNCTION_RESET
public static final byte FUNCTION_WRITE_UID
public static final byte FUNCTION_READ_UID
public static final byte FUNCTION_GET_IDENTITY
public static final int MAGNETOMETER_RATE_2HZ
public static final int MAGNETOMETER_RATE_6HZ
public static final int MAGNETOMETER_RATE_8HZ
public static final int MAGNETOMETER_RATE_10HZ
public static final int MAGNETOMETER_RATE_15HZ
public static final int MAGNETOMETER_RATE_20HZ
public static final int MAGNETOMETER_RATE_25HZ
public static final int MAGNETOMETER_RATE_30HZ
public static final int GYROSCOPE_RANGE_2000DPS
public static final int GYROSCOPE_RANGE_1000DPS
public static final int GYROSCOPE_RANGE_500DPS
public static final int GYROSCOPE_RANGE_250DPS
public static final int GYROSCOPE_RANGE_125DPS
public static final int GYROSCOPE_BANDWIDTH_523HZ
public static final int GYROSCOPE_BANDWIDTH_230HZ
public static final int GYROSCOPE_BANDWIDTH_116HZ
public static final int GYROSCOPE_BANDWIDTH_47HZ
public static final int GYROSCOPE_BANDWIDTH_23HZ
public static final int GYROSCOPE_BANDWIDTH_12HZ
public static final int GYROSCOPE_BANDWIDTH_64HZ
public static final int GYROSCOPE_BANDWIDTH_32HZ
public static final int ACCELEROMETER_RANGE_2G
public static final int ACCELEROMETER_RANGE_4G
public static final int ACCELEROMETER_RANGE_8G
public static final int ACCELEROMETER_RANGE_16G
public static final int ACCELEROMETER_BANDWIDTH_7_81HZ
public static final int ACCELEROMETER_BANDWIDTH_15_63HZ
public static final int ACCELEROMETER_BANDWIDTH_31_25HZ
public static final int ACCELEROMETER_BANDWIDTH_62_5HZ
public static final int ACCELEROMETER_BANDWIDTH_125HZ
public static final int ACCELEROMETER_BANDWIDTH_250HZ
public static final int ACCELEROMETER_BANDWIDTH_500HZ
public static final int ACCELEROMETER_BANDWIDTH_1000HZ
public static final int SENSOR_FUSION_OFF
public static final int SENSOR_FUSION_ON
public static final int SENSOR_FUSION_ON_WITHOUT_MAGNETOMETER
public static final int SENSOR_FUSION_ON_WITHOUT_FAST_MAGNETOMETER_CALIBRATION
public static final int BOOTLOADER_MODE_BOOTLOADER
public static final int BOOTLOADER_MODE_FIRMWARE
public static final int BOOTLOADER_MODE_BOOTLOADER_WAIT_FOR_REBOOT
public static final int BOOTLOADER_MODE_FIRMWARE_WAIT_FOR_REBOOT
public static final int BOOTLOADER_MODE_FIRMWARE_WAIT_FOR_ERASE_AND_REBOOT
public static final int BOOTLOADER_STATUS_OK
public static final int BOOTLOADER_STATUS_INVALID_MODE
public static final int BOOTLOADER_STATUS_NO_CHANGE
public static final int BOOTLOADER_STATUS_ENTRY_FUNCTION_NOT_PRESENT
public static final int BOOTLOADER_STATUS_DEVICE_IDENTIFIER_INCORRECT
public static final int BOOTLOADER_STATUS_CRC_MISMATCH
public static final int STATUS_LED_CONFIG_OFF
public static final int STATUS_LED_CONFIG_ON
public static final int STATUS_LED_CONFIG_SHOW_HEARTBEAT
public static final int STATUS_LED_CONFIG_SHOW_STATUS
public BrickletIMUV3(java.lang.String uid, IPConnection ipcon)
public BrickletIMUV3.Acceleration getAcceleration() throws TinkerforgeException
setSensorConfiguration(int, int, int, int, int)
.
If you want to get the acceleration periodically, it is recommended
to use the BrickletIMUV3.AccelerationListener
listener and set the period with
setAccelerationCallbackConfiguration(long, boolean)
.TinkerforgeException
public BrickletIMUV3.MagneticField getMagneticField() throws TinkerforgeException
BrickletIMUV3.MagneticFieldListener
listener and set the period with
setMagneticFieldCallbackConfiguration(long, boolean)
.TinkerforgeException
public BrickletIMUV3.AngularVelocity getAngularVelocity() throws TinkerforgeException
setSensorConfiguration(int, int, int, int, int)
.
If you want to get the angular velocity periodically, it is recommended
to use the BrickletIMUV3.AngularVelocityListener
alistener nd set the period with
setAngularVelocityCallbackConfiguration(long, boolean)
.TinkerforgeException
public int getTemperature() throws TinkerforgeException
TinkerforgeException
public BrickletIMUV3.Orientation getOrientation() throws TinkerforgeException
BrickletIMUV3.OrientationListener
listener and set the period with
setOrientationCallbackConfiguration(long, boolean)
.TinkerforgeException
public BrickletIMUV3.LinearAcceleration getLinearAcceleration() throws TinkerforgeException
setSensorConfiguration(int, int, int, int, int)
.
The linear acceleration is the acceleration in each of the three
axis of the IMU Brick with the influences of gravity removed.
It is also possible to get the gravity vector with the influence of linear
acceleration removed, see getGravityVector()
.
If you want to get the linear acceleration periodically, it is recommended
to use the BrickletIMUV3.LinearAccelerationListener
listener and set the period with
setLinearAccelerationCallbackConfiguration(long, boolean)
.TinkerforgeException
public BrickletIMUV3.GravityVector getGravityVector() throws TinkerforgeException
getLinearAcceleration()
.
If you want to get the gravity vector periodically, it is recommended
to use the BrickletIMUV3.GravityVectorListener
listener and set the period with
setGravityVectorCallbackConfiguration(long, boolean)
.TinkerforgeException
public BrickletIMUV3.Quaternion getQuaternion() throws TinkerforgeException
BrickletIMUV3.QuaternionListener
listener and set the period with
setQuaternionCallbackConfiguration(long, boolean)
.TinkerforgeException
public BrickletIMUV3.AllData getAllData() throws TinkerforgeException
getAcceleration()
)
* magnetic field (see getMagneticField()
)
* angular velocity (see getAngularVelocity()
)
* Euler angles (see getOrientation()
)
* quaternion (see getQuaternion()
)
* linear acceleration (see getLinearAcceleration()
)
* gravity vector (see getGravityVector()
)
* temperature (see getTemperature()
)
* calibration status (see below)
The calibration status consists of four pairs of two bits. Each pair
of bits represents the status of the current calibration.
* bit 0-1: Magnetometer
* bit 2-3: Accelerometer
* bit 4-5: Gyroscope
* bit 6-7: System
A value of 0 means for "not calibrated" and a value of 3 means
"fully calibrated". In your program you should always be able to
ignore the calibration status, it is used by the calibration
window of the Brick Viewer and it can be ignored after the first
calibration. See the documentation in the calibration window for
more information regarding the calibration of the IMU Brick.
If you want to get the data periodically, it is recommended
to use the BrickletIMUV3.AllDataListener
listener and set the period with
setAllDataCallbackConfiguration(long, boolean)
.TinkerforgeException
public boolean saveCalibration() throws TinkerforgeException
TinkerforgeException
public void setSensorConfiguration(int magnetometerRate, int gyroscopeRange, int gyroscopeBandwidth, int accelerometerRange, int accelerometerBandwidth) throws TinkerforgeException
TinkerforgeException
public BrickletIMUV3.SensorConfiguration getSensorConfiguration() throws TinkerforgeException
setSensorConfiguration(int, int, int, int, int)
.TinkerforgeException
public void setSensorFusionMode(int mode) throws TinkerforgeException
getAcceleration()
,
getMagneticField()
and getAngularVelocity()
return uncalibrated
and uncompensated sensor data. All other sensor data getters return no data.
Since firmware version 2.0.6 you can also use a fusion mode without magnetometer.
In this mode the calculated orientation is relative (with magnetometer it is
absolute with respect to the earth). However, the calculation can't be influenced
by spurious magnetic fields.
Since firmware version 2.0.13 you can also use a fusion mode without fast
magnetometer calibration. This mode is the same as the normal fusion mode,
but the fast magnetometer calibration is turned off. So to find the orientation
the first time will likely take longer, but small magnetic influences might
not affect the automatic calibration as much.TinkerforgeException
public int getSensorFusionMode() throws TinkerforgeException
setSensorFusionMode(int)
.TinkerforgeException
public void setAccelerationCallbackConfiguration(long period, boolean valueHasToChange) throws TinkerforgeException
BrickletIMUV3.AccelerationListener
listener
is triggered periodically. A value of 0 turns the listener off.
If the `value has to change`-parameter is set to true, the listener is only
triggered after the value has changed. If the value didn't change within the
period, the listener is triggered immediately on change.
If it is set to false, the listener is continuously triggered with the period,
independent of the value.TinkerforgeException
public BrickletIMUV3.AccelerationCallbackConfiguration getAccelerationCallbackConfiguration() throws TinkerforgeException
setAccelerationCallbackConfiguration(long, boolean)
.TinkerforgeException
public void setMagneticFieldCallbackConfiguration(long period, boolean valueHasToChange) throws TinkerforgeException
BrickletIMUV3.MagneticFieldListener
listener
is triggered periodically. A value of 0 turns the listener off.
If the `value has to change`-parameter is set to true, the listener is only
triggered after the value has changed. If the value didn't change within the
period, the listener is triggered immediately on change.
If it is set to false, the listener is continuously triggered with the period,
independent of the value.TinkerforgeException
public BrickletIMUV3.MagneticFieldCallbackConfiguration getMagneticFieldCallbackConfiguration() throws TinkerforgeException
setMagneticFieldCallbackConfiguration(long, boolean)
.TinkerforgeException
public void setAngularVelocityCallbackConfiguration(long period, boolean valueHasToChange) throws TinkerforgeException
BrickletIMUV3.AngularVelocityListener
listener
is triggered periodically. A value of 0 turns the listener off.
If the `value has to change`-parameter is set to true, the listener is only
triggered after the value has changed. If the value didn't change within the
period, the listener is triggered immediately on change.
If it is set to false, the listener is continuously triggered with the period,
independent of the value.TinkerforgeException
public BrickletIMUV3.AngularVelocityCallbackConfiguration getAngularVelocityCallbackConfiguration() throws TinkerforgeException
setAngularVelocityCallbackConfiguration(long, boolean)
.TinkerforgeException
public void setTemperatureCallbackConfiguration(long period, boolean valueHasToChange) throws TinkerforgeException
BrickletIMUV3.TemperatureListener
listener
is triggered periodically. A value of 0 turns the listener off.
If the `value has to change`-parameter is set to true, the listener is only
triggered after the value has changed. If the value didn't change within the
period, the listener is triggered immediately on change.
If it is set to false, the listener is continuously triggered with the period,
independent of the value.TinkerforgeException
public BrickletIMUV3.TemperatureCallbackConfiguration getTemperatureCallbackConfiguration() throws TinkerforgeException
setTemperatureCallbackConfiguration(long, boolean)
.TinkerforgeException
public void setOrientationCallbackConfiguration(long period, boolean valueHasToChange) throws TinkerforgeException
BrickletIMUV3.OrientationListener
listener
is triggered periodically. A value of 0 turns the listener off.
If the `value has to change`-parameter is set to true, the listener is only
triggered after the value has changed. If the value didn't change within the
period, the listener is triggered immediately on change.
If it is set to false, the listener is continuously triggered with the period,
independent of the value.TinkerforgeException
public BrickletIMUV3.OrientationCallbackConfiguration getOrientationCallbackConfiguration() throws TinkerforgeException
setOrientationCallbackConfiguration(long, boolean)
.TinkerforgeException
public void setLinearAccelerationCallbackConfiguration(long period, boolean valueHasToChange) throws TinkerforgeException
BrickletIMUV3.LinearAccelerationListener
listener
is triggered periodically. A value of 0 turns the listener off.
If the `value has to change`-parameter is set to true, the listener is only
triggered after the value has changed. If the value didn't change within the
period, the listener is triggered immediately on change.
If it is set to false, the listener is continuously triggered with the period,
independent of the value.TinkerforgeException
public BrickletIMUV3.LinearAccelerationCallbackConfiguration getLinearAccelerationCallbackConfiguration() throws TinkerforgeException
setLinearAccelerationCallbackConfiguration(long, boolean)
.TinkerforgeException
public void setGravityVectorCallbackConfiguration(long period, boolean valueHasToChange) throws TinkerforgeException
BrickletIMUV3.GravityVectorListener
listener
is triggered periodically. A value of 0 turns the listener off.
If the `value has to change`-parameter is set to true, the listener is only
triggered after the value has changed. If the value didn't change within the
period, the listener is triggered immediately on change.
If it is set to false, the listener is continuously triggered with the period,
independent of the value.TinkerforgeException
public BrickletIMUV3.GravityVectorCallbackConfiguration getGravityVectorCallbackConfiguration() throws TinkerforgeException
setGravityVectorCallbackConfiguration(long, boolean)
.TinkerforgeException
public void setQuaternionCallbackConfiguration(long period, boolean valueHasToChange) throws TinkerforgeException
BrickletIMUV3.QuaternionListener
listener
is triggered periodically. A value of 0 turns the listener off.
If the `value has to change`-parameter is set to true, the listener is only
triggered after the value has changed. If the value didn't change within the
period, the listener is triggered immediately on change.
If it is set to false, the listener is continuously triggered with the period,
independent of the value.TinkerforgeException
public BrickletIMUV3.QuaternionCallbackConfiguration getQuaternionCallbackConfiguration() throws TinkerforgeException
setQuaternionCallbackConfiguration(long, boolean)
.TinkerforgeException
public void setAllDataCallbackConfiguration(long period, boolean valueHasToChange) throws TinkerforgeException
BrickletIMUV3.AllDataListener
listener
is triggered periodically. A value of 0 turns the listener off.
If the `value has to change`-parameter is set to true, the listener is only
triggered after the value has changed. If the value didn't change within the
period, the listener is triggered immediately on change.
If it is set to false, the listener is continuously triggered with the period,
independent of the value.TinkerforgeException
public BrickletIMUV3.AllDataCallbackConfiguration getAllDataCallbackConfiguration() throws TinkerforgeException
setAllDataCallbackConfiguration(long, boolean)
.TinkerforgeException
public BrickletIMUV3.SPITFPErrorCount getSPITFPErrorCount() throws TinkerforgeException
TinkerforgeException
public int setBootloaderMode(int mode) throws TinkerforgeException
TinkerforgeException
public int getBootloaderMode() throws TinkerforgeException
setBootloaderMode(int)
.TinkerforgeException
public void setWriteFirmwarePointer(long pointer) throws TinkerforgeException
writeFirmware(int[])
. The pointer has
to be increased by chunks of size 64. The data is written to flash
every 4 chunks (which equals to one page of size 256).
This function is used by Brick Viewer during flashing. It should not be
necessary to call it in a normal user program.TinkerforgeException
public int writeFirmware(int[] data) throws TinkerforgeException
setWriteFirmwarePointer(long)
before. The firmware is written
to flash every 4 chunks.
You can only write firmware in bootloader mode.
This function is used by Brick Viewer during flashing. It should not be
necessary to call it in a normal user program.TinkerforgeException
public void setStatusLEDConfig(int config) throws TinkerforgeException
TinkerforgeException
public int getStatusLEDConfig() throws TinkerforgeException
setStatusLEDConfig(int)
TinkerforgeException
public int getChipTemperature() throws TinkerforgeException
TinkerforgeException
public void reset() throws TinkerforgeException
TinkerforgeException
public void writeUID(long uid) throws TinkerforgeException
TinkerforgeException
public long readUID() throws TinkerforgeException
TinkerforgeException
public Device.Identity getIdentity() throws TinkerforgeException
getIdentity
in class Device
TinkerforgeException
public void addAccelerationListener(BrickletIMUV3.AccelerationListener listener)
public void removeAccelerationListener(BrickletIMUV3.AccelerationListener listener)
public void addMagneticFieldListener(BrickletIMUV3.MagneticFieldListener listener)
public void removeMagneticFieldListener(BrickletIMUV3.MagneticFieldListener listener)
public void addAngularVelocityListener(BrickletIMUV3.AngularVelocityListener listener)
public void removeAngularVelocityListener(BrickletIMUV3.AngularVelocityListener listener)
public void addTemperatureListener(BrickletIMUV3.TemperatureListener listener)
public void removeTemperatureListener(BrickletIMUV3.TemperatureListener listener)
public void addLinearAccelerationListener(BrickletIMUV3.LinearAccelerationListener listener)
public void removeLinearAccelerationListener(BrickletIMUV3.LinearAccelerationListener listener)
public void addGravityVectorListener(BrickletIMUV3.GravityVectorListener listener)
public void removeGravityVectorListener(BrickletIMUV3.GravityVectorListener listener)
public void addOrientationListener(BrickletIMUV3.OrientationListener listener)
public void removeOrientationListener(BrickletIMUV3.OrientationListener listener)
public void addQuaternionListener(BrickletIMUV3.QuaternionListener listener)
public void removeQuaternionListener(BrickletIMUV3.QuaternionListener listener)
public void addAllDataListener(BrickletIMUV3.AllDataListener listener)
public void removeAllDataListener(BrickletIMUV3.AllDataListener listener)
Copyright © 2021 Tinkerforge GmbH. All rights reserved.