HeadTrackingFusion class

Shared, allocation-free fusion state for the main thread and native worker. Device X drives yaw and device Y drives pitch in the existing landscape mapping. Gravity is a pitch reference only; it cannot correct yaw drift.

Constructors

HeadTrackingFusion()

Properties

absolutePitch ↔ double?
getter/setter pair
dPitch ↔ double
getter/setter pair
dYaw ↔ double
Reused output fields. absolutePitch is absent until gravity is valid.
getter/setter pair
gravityPitch ↔ double?
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
jitterDamping ↔ bool
getter/setter pair
offsetX ↔ double
getter/setter pair
offsetY ↔ double
getter/setter pair
pitchGain ↔ double
getter/setter pair
predictionMs ↔ double
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sensitivity ↔ double
getter/setter pair

Methods

addGyroscope(double x, double y, int timestampUs) → bool
Uses acquisition time, never callback delivery time. Duplicate/out-of- order samples are ignored; gaps over 250 ms restart integration instead of extrapolating a resumed sensor across an unknown interval.
clearGravity() → void
Continue relative gyro pitch if the accelerometer becomes unavailable.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
reset({bool clearGravity = false}) → void
toString() → String
A string representation of this object.
inherited
updateGravity(double x, double y, double z) → bool
Reject freefall, nonfinite data and strong linear acceleration. This is only a plausibility gate, not proof that acceleration is pure gravity.

Operators

operator ==(Object other) → bool
The equality operator.
inherited