Fused Geomagnetic Attitude Estimator2
constructor(context: Context, location: Location? = null, sensorDelay: SensorDelay = SensorDelay.GAME, useAccelerometer: Boolean = true, startOffsetEnabled: Boolean = true, accelerometerSensorType: AccelerometerSensorType = AccelerometerSensorType.ACCELEROMETER_UNCALIBRATED, magnetometerSensorType: MagnetometerSensorType = MagnetometerSensorType.MAGNETOMETER_UNCALIBRATED, accelerometerAveragingFilter: AveragingFilter = LowPassAveragingFilter(), gyroscopeSensorType: GyroscopeSensorType = GyroscopeSensorType.GYROSCOPE_UNCALIBRATED, worldMagneticModel: WorldMagneticModel? = null, timestamp: Date = Date(), useWorldMagneticModel: Boolean = false, useAccurateLevelingEstimator: Boolean = false, useAccurateRelativeGyroscopeAttitudeEstimator: Boolean = false, estimateCoordinateTransformation: Boolean = false, estimateEulerAngles: Boolean = true, attitudeAvailableListener: FusedGeomagneticAttitudeEstimator2.OnAttitudeAvailableListener? = null, accuracyChangedListener: FusedGeomagneticAttitudeEstimator2.OnAccuracyChangedListener? = null, bufferFilledListener: FusedGeomagneticAttitudeEstimator2.OnBufferFilledListener? = null, adjustGravityNorm: Boolean = true)
Parameters
location
Device location.
world Magnetic Model
Earth's magnetic model. Null to use default model when useWorldMagneticModel is true. If useWorldMagneticModel is false, this is ignored.
timestamp
Timestamp when World Magnetic Model will be evaluated to obtain current. Only taken into account if useWorldMagneticModel is tue.
use World Magnetic Model
true so that world magnetic model is taken into account to adjust attitude yaw angle by current magnetic declination based on current World Magnetic Model, location and timestamp, false to ignore declination.
use Accurate Leveling Estimator
true to use accurate leveling, false to use a normal one.
use Accurate Relative Gyroscope Attitude Estimator
true to use accurate non-leveled relative attitude estimator, false to use non-accurate non-leveled relative attitude estimator.