SromRealtimeAngleTracker class

Tracks the real-time angle during SROM tests using gyroscope data. Provides a ValueNotifier for live angle updates to the UI.

Constructors

SromRealtimeAngleTracker.new({required List<SensorAxis> angleAxes, double threshold = 15, required SensorAxis directionAxis})

Properties

angleAxes List<SensorAxis>
final
directionAxis SensorAxis
final
hashCode int
The hash code for this object.
no setterinherited
liveAngle ValueNotifier<double>
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
threshold double
final

Methods

addGyro(SensorEvent event) → void
Adds a new gyroscope event to update the angle and notifies listeners if movement is detected.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
reset() → void
Reset the tracker state.
toString() String
A string representation of this object.
inherited

Operators

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