public static interface BNO055IMU.AccelerationIntegrator
BNO055IMU.AccelerationIntegrator encapsulates an algorithm for integrating
acceleration information over time to produce velocity and position.BNO055IMU| Modifier and Type | Method and Description |
|---|---|
Acceleration |
getAcceleration()
Returns the current acceleration as understood by the algorithm.
|
Position |
getPosition()
Returns the current position as calculated by the algorithm
|
Velocity |
getVelocity()
Returns the current velocity as calculated by the algorithm
|
void |
initialize(BNO055IMU.Parameters parameters,
Position initialPosition,
Velocity initialVelocity)
(Re)initializes the algorithm with a starting position and velocity.
|
void |
update(Acceleration linearAcceleration)
Step the algorithm as a result of the stimulus of new acceleration data.
|
void initialize(BNO055IMU.Parameters parameters, Position initialPosition, Velocity initialVelocity)
parameters - configuration parameters for the IMUinitialPosition - If non-null, the current sensor position is set to this value. If
null, the current sensor position is unchanged.initialVelocity - If non-null, the current sensor velocity is set to this value. If
null, the current sensor velocity is unchanged.update(Acceleration)Position getPosition()
Velocity getVelocity()
Acceleration getAcceleration()
update(Acceleration), if any.void update(Acceleration linearAcceleration)
linearAcceleration - the acceleration as just reported by the IMU