OpenRoadCode
Public API reference for OpenRoadCode
Loading...
Searching...
No Matches
automotive.trip_tracker.TripTracker Class Reference

Accumulate normalized observations into an immutable trip snapshot. More...

Public Member Functions

None observe_vehicle_state (self, VehicleState state)
 Consume vehicle speed and fuel-flow telemetry when available.
None observe_position_state (self, PositionState state)
 Capture usable geographic position independently of motion.
None observe_ground_motion_state (self, GroundMotionState state)
 Consume provider-neutral ground speed when available.
TripState snapshot (self)
 Return the current immutable trip snapshot.
TripState finish (self, datetime|None ended_at=None)
 Finish the current trip and retain its final snapshot.
None reset (self)
 Discard current trip state and return to idle.

Detailed Description

Accumulate normalized observations into an immutable trip snapshot.


The documentation for this class was generated from the following file:
  • controllers/automotive/trip_tracker.py