public class BrickIMUV2 extends Device
Modifier and Type | Class and Description |
---|---|
class |
BrickIMUV2.Acceleration |
static interface |
BrickIMUV2.AccelerationListener
This listener is triggered periodically with the period that is set by
setAccelerationPeriod(long) . |
class |
BrickIMUV2.AllData |
static interface |
BrickIMUV2.AllDataListener
This listener is triggered periodically with the period that is set by
setAllDataPeriod(long) . |
class |
BrickIMUV2.AngularVelocity |
static interface |
BrickIMUV2.AngularVelocityListener
This listener is triggered periodically with the period that is set by
setAngularVelocityPeriod(long) . |
class |
BrickIMUV2.GravityVector |
static interface |
BrickIMUV2.GravityVectorListener
This listener is triggered periodically with the period that is set by
setGravityVectorPeriod(long) . |
class |
BrickIMUV2.LinearAcceleration |
static interface |
BrickIMUV2.LinearAccelerationListener
This listener is triggered periodically with the period that is set by
setLinearAccelerationPeriod(long) . |
class |
BrickIMUV2.MagneticField |
static interface |
BrickIMUV2.MagneticFieldListener
This listener is triggered periodically with the period that is set by
setMagneticFieldPeriod(long) . |
class |
BrickIMUV2.Orientation |
static interface |
BrickIMUV2.OrientationListener
This listener is triggered periodically with the period that is set by
setOrientationPeriod(long) . |
class |
BrickIMUV2.Protocol1BrickletName |
class |
BrickIMUV2.Quaternion |
static interface |
BrickIMUV2.QuaternionListener
This listener is triggered periodically with the period that is set by
setQuaternionPeriod(long) . |
class |
BrickIMUV2.SensorConfiguration |
class |
BrickIMUV2.SPITFPBaudrateConfig |
class |
BrickIMUV2.SPITFPErrorCount |
static interface |
BrickIMUV2.TemperatureListener
This listener is triggered periodically with the period that is set by
setTemperaturePeriod(long) . |
Device.Identity
Constructor and Description |
---|
BrickIMUV2(java.lang.String uid,
IPConnection ipcon)
Creates an object with the unique device ID \c uid.
|
Modifier and Type | Method and Description |
---|---|
void |
addAccelerationListener(BrickIMUV2.AccelerationListener listener)
Adds a Acceleration listener.
|
void |
addAllDataListener(BrickIMUV2.AllDataListener listener)
Adds a AllData listener.
|
void |
addAngularVelocityListener(BrickIMUV2.AngularVelocityListener listener)
Adds a AngularVelocity listener.
|
void |
addGravityVectorListener(BrickIMUV2.GravityVectorListener listener)
Adds a GravityVector listener.
|
void |
addLinearAccelerationListener(BrickIMUV2.LinearAccelerationListener listener)
Adds a LinearAcceleration listener.
|
void |
addMagneticFieldListener(BrickIMUV2.MagneticFieldListener listener)
Adds a MagneticField listener.
|
void |
addOrientationListener(BrickIMUV2.OrientationListener listener)
Adds a Orientation listener.
|
void |
addQuaternionListener(BrickIMUV2.QuaternionListener listener)
Adds a Quaternion listener.
|
void |
addTemperatureListener(BrickIMUV2.TemperatureListener listener)
Adds a Temperature listener.
|
boolean |
areLedsOn()
Returns *true* if the orientation and direction LEDs of the IMU Brick
are on, *false* otherwise.
|
void |
disableStatusLED()
Disables the status LED.
|
void |
enableStatusLED()
Enables the status LED.
|
BrickIMUV2.Acceleration |
getAcceleration()
Returns the calibrated acceleration from the accelerometer for the
x, y and z axis.
|
long |
getAccelerationPeriod()
Returns the period as set by
setAccelerationPeriod(long) . |
BrickIMUV2.AllData |
getAllData()
Return all of the available data of the IMU Brick.
|
long |
getAllDataPeriod()
Returns the period as set by
setAllDataPeriod(long) . |
BrickIMUV2.AngularVelocity |
getAngularVelocity()
Returns the calibrated angular velocity from the gyroscope for the
x, y and z axis.
|
long |
getAngularVelocityPeriod()
Returns the period as set by
setAngularVelocityPeriod(long) . |
short |
getChipTemperature()
Returns the temperature as measured inside the microcontroller.
|
BrickIMUV2.GravityVector |
getGravityVector()
Returns the current gravity vector of the IMU Brick for the
x, y and z axis.
|
long |
getGravityVectorPeriod()
Returns the period as set by
setGravityVectorPeriod(long) . |
Device.Identity |
getIdentity()
Returns the UID, the UID where the Brick is connected to,
the position, the hardware and firmware version as well as the
device identifier.
|
BrickIMUV2.LinearAcceleration |
getLinearAcceleration()
Returns the linear acceleration of the IMU Brick for the
x, y and z axis.
|
long |
getLinearAccelerationPeriod()
Returns the period as set by
setLinearAccelerationPeriod(long) . |
BrickIMUV2.MagneticField |
getMagneticField()
Returns the calibrated magnetic field from the magnetometer for the
x, y and z axis.
|
long |
getMagneticFieldPeriod()
Returns the period as set by
setMagneticFieldPeriod(long) . |
BrickIMUV2.Orientation |
getOrientation()
Returns the current orientation (heading, roll, pitch) of the IMU Brick as
independent Euler angles.
|
long |
getOrientationPeriod()
Returns the period as set by
setOrientationPeriod(long) . |
BrickIMUV2.Protocol1BrickletName |
getProtocol1BrickletName(char port)
Returns the firmware and protocol version and the name of the Bricklet for a
given port.
|
BrickIMUV2.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>`__.
|
long |
getQuaternionPeriod()
Returns the period as set by
setQuaternionPeriod(long) . |
long |
getSendTimeoutCount(short communicationMethod)
Returns the timeout count for the different communication methods.
|
BrickIMUV2.SensorConfiguration |
getSensorConfiguration()
Returns the sensor configuration as set by
setSensorConfiguration(short, short, short, short, short) . |
short |
getSensorFusionMode()
Returns the sensor fusion mode as set by
setSensorFusionMode(short) . |
long |
getSPITFPBaudrate(char brickletPort)
Returns the baudrate for a given Bricklet port, see
setSPITFPBaudrate(char, long) . |
BrickIMUV2.SPITFPBaudrateConfig |
getSPITFPBaudrateConfig()
Returns the baudrate config, see
setSPITFPBaudrateConfig(boolean, long) . |
BrickIMUV2.SPITFPErrorCount |
getSPITFPErrorCount(char brickletPort)
Returns the error count for the communication between Brick and Bricklet.
|
byte |
getTemperature()
Returns the temperature of the IMU Brick.
|
long |
getTemperaturePeriod()
Returns the period as set by
setTemperaturePeriod(long) . |
boolean |
isStatusLEDEnabled()
Returns *true* if the status LED is enabled, *false* otherwise.
|
void |
ledsOff()
Turns the orientation and direction LEDs of the IMU Brick off.
|
void |
ledsOn()
Turns the orientation and direction LEDs of the IMU Brick on.
|
short[] |
readBrickletPlugin(char port,
short offset)
Reads 32 bytes of firmware from the bricklet attached at the given port.
|
void |
removeAccelerationListener(BrickIMUV2.AccelerationListener listener)
Removes a Acceleration listener.
|
void |
removeAllDataListener(BrickIMUV2.AllDataListener listener)
Removes a AllData listener.
|
void |
removeAngularVelocityListener(BrickIMUV2.AngularVelocityListener listener)
Removes a AngularVelocity listener.
|
void |
removeGravityVectorListener(BrickIMUV2.GravityVectorListener listener)
Removes a GravityVector listener.
|
void |
removeLinearAccelerationListener(BrickIMUV2.LinearAccelerationListener listener)
Removes a LinearAcceleration listener.
|
void |
removeMagneticFieldListener(BrickIMUV2.MagneticFieldListener listener)
Removes a MagneticField listener.
|
void |
removeOrientationListener(BrickIMUV2.OrientationListener listener)
Removes a Orientation listener.
|
void |
removeQuaternionListener(BrickIMUV2.QuaternionListener listener)
Removes a Quaternion listener.
|
void |
removeTemperatureListener(BrickIMUV2.TemperatureListener listener)
Removes a Temperature listener.
|
void |
reset()
Calling this function will reset the Brick.
|
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 |
setAccelerationPeriod(long period)
Sets the period with which the
BrickIMUV2.AccelerationListener listener is triggered
periodically. |
void |
setAllDataPeriod(long period)
Sets the period with which the
BrickIMUV2.AllDataListener listener is triggered
periodically. |
void |
setAngularVelocityPeriod(long period)
Sets the period with which the
BrickIMUV2.AngularVelocityListener listener is
triggered periodically. |
void |
setGravityVectorPeriod(long period)
Sets the period with which the
BrickIMUV2.GravityVectorListener listener is triggered
periodically. |
void |
setLinearAccelerationPeriod(long period)
Sets the period with which the
BrickIMUV2.LinearAccelerationListener listener is
triggered periodically. |
void |
setMagneticFieldPeriod(long period)
Sets the period with which the
BrickIMUV2.MagneticFieldListener listener is triggered
periodically. |
void |
setOrientationPeriod(long period)
Sets the period with which the
BrickIMUV2.OrientationListener listener is triggered
periodically. |
void |
setQuaternionPeriod(long period)
Sets the period with which the
BrickIMUV2.QuaternionListener listener is triggered
periodically. |
void |
setSensorConfiguration(short magnetometerRate,
short gyroscopeRange,
short gyroscopeBandwidth,
short accelerometerRange,
short accelerometerBandwidth)
Sets the available sensor configuration for the Magnetometer, Gyroscope and
Accelerometer.
|
void |
setSensorFusionMode(short mode)
If the fusion mode is turned off, the functions
getAcceleration() ,
getMagneticField() and getAngularVelocity() return uncalibrated
and uncompensated sensor data. |
void |
setSPITFPBaudrate(char brickletPort,
long baudrate)
Sets the baudrate for a specific Bricklet port.
|
void |
setSPITFPBaudrateConfig(boolean enableDynamicBaudrate,
long minimumDynamicBaudrate)
The SPITF protocol can be used with a dynamic baudrate.
|
void |
setTemperaturePeriod(long period)
Sets the period with which the
BrickIMUV2.TemperatureListener listener is triggered
periodically. |
void |
writeBrickletPlugin(char port,
short offset,
short[] chunk)
Writes 32 bytes of firmware to the bricklet attached at the given port.
|
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_LEDS_ON
public static final byte FUNCTION_LEDS_OFF
public static final byte FUNCTION_ARE_LEDS_ON
public static final byte FUNCTION_SAVE_CALIBRATION
public static final byte FUNCTION_SET_ACCELERATION_PERIOD
public static final byte FUNCTION_GET_ACCELERATION_PERIOD
public static final byte FUNCTION_SET_MAGNETIC_FIELD_PERIOD
public static final byte FUNCTION_GET_MAGNETIC_FIELD_PERIOD
public static final byte FUNCTION_SET_ANGULAR_VELOCITY_PERIOD
public static final byte FUNCTION_GET_ANGULAR_VELOCITY_PERIOD
public static final byte FUNCTION_SET_TEMPERATURE_PERIOD
public static final byte FUNCTION_GET_TEMPERATURE_PERIOD
public static final byte FUNCTION_SET_ORIENTATION_PERIOD
public static final byte FUNCTION_GET_ORIENTATION_PERIOD
public static final byte FUNCTION_SET_LINEAR_ACCELERATION_PERIOD
public static final byte FUNCTION_GET_LINEAR_ACCELERATION_PERIOD
public static final byte FUNCTION_SET_GRAVITY_VECTOR_PERIOD
public static final byte FUNCTION_GET_GRAVITY_VECTOR_PERIOD
public static final byte FUNCTION_SET_QUATERNION_PERIOD
public static final byte FUNCTION_GET_QUATERNION_PERIOD
public static final byte FUNCTION_SET_ALL_DATA_PERIOD
public static final byte FUNCTION_GET_ALL_DATA_PERIOD
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_SPITFP_BAUDRATE_CONFIG
public static final byte FUNCTION_GET_SPITFP_BAUDRATE_CONFIG
public static final byte FUNCTION_GET_SEND_TIMEOUT_COUNT
public static final byte FUNCTION_SET_SPITFP_BAUDRATE
public static final byte FUNCTION_GET_SPITFP_BAUDRATE
public static final byte FUNCTION_GET_SPITFP_ERROR_COUNT
public static final byte FUNCTION_ENABLE_STATUS_LED
public static final byte FUNCTION_DISABLE_STATUS_LED
public static final byte FUNCTION_IS_STATUS_LED_ENABLED
public static final byte FUNCTION_GET_PROTOCOL1_BRICKLET_NAME
public static final byte FUNCTION_GET_CHIP_TEMPERATURE
public static final byte FUNCTION_RESET
public static final byte FUNCTION_WRITE_BRICKLET_PLUGIN
public static final byte FUNCTION_READ_BRICKLET_PLUGIN
public static final byte FUNCTION_GET_IDENTITY
public static final short MAGNETOMETER_RATE_2HZ
public static final short MAGNETOMETER_RATE_6HZ
public static final short MAGNETOMETER_RATE_8HZ
public static final short MAGNETOMETER_RATE_10HZ
public static final short MAGNETOMETER_RATE_15HZ
public static final short MAGNETOMETER_RATE_20HZ
public static final short MAGNETOMETER_RATE_25HZ
public static final short MAGNETOMETER_RATE_30HZ
public static final short GYROSCOPE_RANGE_2000DPS
public static final short GYROSCOPE_RANGE_1000DPS
public static final short GYROSCOPE_RANGE_500DPS
public static final short GYROSCOPE_RANGE_250DPS
public static final short GYROSCOPE_RANGE_125DPS
public static final short GYROSCOPE_BANDWIDTH_523HZ
public static final short GYROSCOPE_BANDWIDTH_230HZ
public static final short GYROSCOPE_BANDWIDTH_116HZ
public static final short GYROSCOPE_BANDWIDTH_47HZ
public static final short GYROSCOPE_BANDWIDTH_23HZ
public static final short GYROSCOPE_BANDWIDTH_12HZ
public static final short GYROSCOPE_BANDWIDTH_64HZ
public static final short GYROSCOPE_BANDWIDTH_32HZ
public static final short ACCELEROMETER_RANGE_2G
public static final short ACCELEROMETER_RANGE_4G
public static final short ACCELEROMETER_RANGE_8G
public static final short ACCELEROMETER_RANGE_16G
public static final short ACCELEROMETER_BANDWIDTH_7_81HZ
public static final short ACCELEROMETER_BANDWIDTH_15_63HZ
public static final short ACCELEROMETER_BANDWIDTH_31_25HZ
public static final short ACCELEROMETER_BANDWIDTH_62_5HZ
public static final short ACCELEROMETER_BANDWIDTH_125HZ
public static final short ACCELEROMETER_BANDWIDTH_250HZ
public static final short ACCELEROMETER_BANDWIDTH_500HZ
public static final short ACCELEROMETER_BANDWIDTH_1000HZ
public static final short SENSOR_FUSION_OFF
public static final short SENSOR_FUSION_ON
public static final short SENSOR_FUSION_ON_WITHOUT_MAGNETOMETER
public static final short SENSOR_FUSION_ON_WITHOUT_FAST_MAGNETOMETER_CALIBRATION
public static final short COMMUNICATION_METHOD_NONE
public static final short COMMUNICATION_METHOD_USB
public static final short COMMUNICATION_METHOD_SPI_STACK
public static final short COMMUNICATION_METHOD_CHIBI
public static final short COMMUNICATION_METHOD_RS485
public static final short COMMUNICATION_METHOD_WIFI
public static final short COMMUNICATION_METHOD_ETHERNET
public static final short COMMUNICATION_METHOD_WIFI_V2
public BrickIMUV2(java.lang.String uid, IPConnection ipcon)
public BrickIMUV2.Acceleration getAcceleration() throws TinkerforgeException
setSensorConfiguration(short, short, short, short, short)
.
If you want to get the acceleration periodically, it is recommended
to use the BrickIMUV2.AccelerationListener
listener and set the period with
setAccelerationPeriod(long)
.TinkerforgeException
public BrickIMUV2.MagneticField getMagneticField() throws TinkerforgeException
BrickIMUV2.MagneticFieldListener
listener and set the period with
setMagneticFieldPeriod(long)
.TinkerforgeException
public BrickIMUV2.AngularVelocity getAngularVelocity() throws TinkerforgeException
setSensorConfiguration(short, short, short, short, short)
.
If you want to get the angular velocity periodically, it is recommended
to use the BrickIMUV2.AngularVelocityListener
alistener nd set the period with
setAngularVelocityPeriod(long)
.TinkerforgeException
public byte getTemperature() throws TinkerforgeException
TinkerforgeException
public BrickIMUV2.Orientation getOrientation() throws TinkerforgeException
BrickIMUV2.OrientationListener
listener and set the period with
setOrientationPeriod(long)
.TinkerforgeException
public BrickIMUV2.LinearAcceleration getLinearAcceleration() throws TinkerforgeException
setSensorConfiguration(short, short, short, short, short)
.
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 BrickIMUV2.LinearAccelerationListener
listener and set the period with
setLinearAccelerationPeriod(long)
.TinkerforgeException
public BrickIMUV2.GravityVector getGravityVector() throws TinkerforgeException
getLinearAcceleration()
.
If you want to get the gravity vector periodically, it is recommended
to use the BrickIMUV2.GravityVectorListener
listener and set the period with
setGravityVectorPeriod(long)
.TinkerforgeException
public BrickIMUV2.Quaternion getQuaternion() throws TinkerforgeException
BrickIMUV2.QuaternionListener
listener and set the period with
setQuaternionPeriod(long)
.TinkerforgeException
public BrickIMUV2.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 BrickIMUV2.AllDataListener
listener and set the period with
setAllDataPeriod(long)
.TinkerforgeException
public void ledsOn() throws TinkerforgeException
TinkerforgeException
public void ledsOff() throws TinkerforgeException
TinkerforgeException
public boolean areLedsOn() throws TinkerforgeException
TinkerforgeException
public boolean saveCalibration() throws TinkerforgeException
TinkerforgeException
public void setAccelerationPeriod(long period) throws TinkerforgeException
BrickIMUV2.AccelerationListener
listener is triggered
periodically. A value of 0 turns the listener off.TinkerforgeException
public long getAccelerationPeriod() throws TinkerforgeException
setAccelerationPeriod(long)
.TinkerforgeException
public void setMagneticFieldPeriod(long period) throws TinkerforgeException
BrickIMUV2.MagneticFieldListener
listener is triggered
periodically. A value of 0 turns the listener off.TinkerforgeException
public long getMagneticFieldPeriod() throws TinkerforgeException
setMagneticFieldPeriod(long)
.TinkerforgeException
public void setAngularVelocityPeriod(long period) throws TinkerforgeException
BrickIMUV2.AngularVelocityListener
listener is
triggered periodically. A value of 0 turns the listener off.TinkerforgeException
public long getAngularVelocityPeriod() throws TinkerforgeException
setAngularVelocityPeriod(long)
.TinkerforgeException
public void setTemperaturePeriod(long period) throws TinkerforgeException
BrickIMUV2.TemperatureListener
listener is triggered
periodically. A value of 0 turns the listener off.TinkerforgeException
public long getTemperaturePeriod() throws TinkerforgeException
setTemperaturePeriod(long)
.TinkerforgeException
public void setOrientationPeriod(long period) throws TinkerforgeException
BrickIMUV2.OrientationListener
listener is triggered
periodically. A value of 0 turns the listener off.TinkerforgeException
public long getOrientationPeriod() throws TinkerforgeException
setOrientationPeriod(long)
.TinkerforgeException
public void setLinearAccelerationPeriod(long period) throws TinkerforgeException
BrickIMUV2.LinearAccelerationListener
listener is
triggered periodically. A value of 0 turns the listener off.TinkerforgeException
public long getLinearAccelerationPeriod() throws TinkerforgeException
setLinearAccelerationPeriod(long)
.TinkerforgeException
public void setGravityVectorPeriod(long period) throws TinkerforgeException
BrickIMUV2.GravityVectorListener
listener is triggered
periodically. A value of 0 turns the listener off.TinkerforgeException
public long getGravityVectorPeriod() throws TinkerforgeException
setGravityVectorPeriod(long)
.TinkerforgeException
public void setQuaternionPeriod(long period) throws TinkerforgeException
BrickIMUV2.QuaternionListener
listener is triggered
periodically. A value of 0 turns the listener off.TinkerforgeException
public long getQuaternionPeriod() throws TinkerforgeException
setQuaternionPeriod(long)
.TinkerforgeException
public void setAllDataPeriod(long period) throws TinkerforgeException
BrickIMUV2.AllDataListener
listener is triggered
periodically. A value of 0 turns the listener off.TinkerforgeException
public long getAllDataPeriod() throws TinkerforgeException
setAllDataPeriod(long)
.TinkerforgeException
public void setSensorConfiguration(short magnetometerRate, short gyroscopeRange, short gyroscopeBandwidth, short accelerometerRange, short accelerometerBandwidth) throws TinkerforgeException
TinkerforgeException
public BrickIMUV2.SensorConfiguration getSensorConfiguration() throws TinkerforgeException
setSensorConfiguration(short, short, short, short, short)
.
.. versionadded:: 2.0.5$nbsp;(Firmware)TinkerforgeException
public void setSensorFusionMode(short 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.
.. versionadded:: 2.0.5$nbsp;(Firmware)TinkerforgeException
public short getSensorFusionMode() throws TinkerforgeException
setSensorFusionMode(short)
.
.. versionadded:: 2.0.5$nbsp;(Firmware)TinkerforgeException
public void setSPITFPBaudrateConfig(boolean enableDynamicBaudrate, long minimumDynamicBaudrate) throws TinkerforgeException
setSPITFPBaudrate(char, long)
. If the dynamic baudrate is disabled, the baudrate
as set by setSPITFPBaudrate(char, long)
will be used statically.
.. versionadded:: 2.0.10$nbsp;(Firmware)TinkerforgeException
public BrickIMUV2.SPITFPBaudrateConfig getSPITFPBaudrateConfig() throws TinkerforgeException
setSPITFPBaudrateConfig(boolean, long)
.
.. versionadded:: 2.0.10$nbsp;(Firmware)TinkerforgeException
public long getSendTimeoutCount(short communicationMethod) throws TinkerforgeException
TinkerforgeException
public void setSPITFPBaudrate(char brickletPort, long baudrate) throws TinkerforgeException
getSPITFPErrorCount(char)
) you can decrease the
baudrate.
If the dynamic baudrate feature is enabled, the baudrate set by this
function corresponds to the maximum baudrate (see setSPITFPBaudrateConfig(boolean, long)
).
Regulatory testing is done with the default baudrate. If CE compatibility
or similar is necessary in your applications we recommend to not change
the baudrate.
.. versionadded:: 2.0.5$nbsp;(Firmware)TinkerforgeException
public long getSPITFPBaudrate(char brickletPort) throws TinkerforgeException
setSPITFPBaudrate(char, long)
.
.. versionadded:: 2.0.5$nbsp;(Firmware)TinkerforgeException
public BrickIMUV2.SPITFPErrorCount getSPITFPErrorCount(char brickletPort) throws TinkerforgeException
TinkerforgeException
public void enableStatusLED() throws TinkerforgeException
TinkerforgeException
public void disableStatusLED() throws TinkerforgeException
TinkerforgeException
public boolean isStatusLEDEnabled() throws TinkerforgeException
TinkerforgeException
public BrickIMUV2.Protocol1BrickletName getProtocol1BrickletName(char port) throws TinkerforgeException
TinkerforgeException
public short getChipTemperature() throws TinkerforgeException
TinkerforgeException
public void reset() throws TinkerforgeException
TinkerforgeException
public void writeBrickletPlugin(char port, short offset, short[] chunk) throws TinkerforgeException
TinkerforgeException
public short[] readBrickletPlugin(char port, short offset) throws TinkerforgeException
TinkerforgeException
public Device.Identity getIdentity() throws TinkerforgeException
getIdentity
in class Device
TinkerforgeException
public void addAccelerationListener(BrickIMUV2.AccelerationListener listener)
public void removeAccelerationListener(BrickIMUV2.AccelerationListener listener)
public void addMagneticFieldListener(BrickIMUV2.MagneticFieldListener listener)
public void removeMagneticFieldListener(BrickIMUV2.MagneticFieldListener listener)
public void addAngularVelocityListener(BrickIMUV2.AngularVelocityListener listener)
public void removeAngularVelocityListener(BrickIMUV2.AngularVelocityListener listener)
public void addTemperatureListener(BrickIMUV2.TemperatureListener listener)
public void removeTemperatureListener(BrickIMUV2.TemperatureListener listener)
public void addLinearAccelerationListener(BrickIMUV2.LinearAccelerationListener listener)
public void removeLinearAccelerationListener(BrickIMUV2.LinearAccelerationListener listener)
public void addGravityVectorListener(BrickIMUV2.GravityVectorListener listener)
public void removeGravityVectorListener(BrickIMUV2.GravityVectorListener listener)
public void addOrientationListener(BrickIMUV2.OrientationListener listener)
public void removeOrientationListener(BrickIMUV2.OrientationListener listener)
public void addQuaternionListener(BrickIMUV2.QuaternionListener listener)
public void removeQuaternionListener(BrickIMUV2.QuaternionListener listener)
public void addAllDataListener(BrickIMUV2.AllDataListener listener)
public void removeAllDataListener(BrickIMUV2.AllDataListener listener)
Copyright © 2021 Tinkerforge GmbH. All rights reserved.