OpenRoadCode
Public API reference for OpenRoadCode
Loading...
Searching...
No Matches
automotive.navigation_motion_vehicle_state_source.NavigationMotionVehicleStateSource Class Reference

Build partial vehicle snapshots from navigation ground-motion messages. More...

Public Member Functions

None connect (self)
 Start receiving navigation ground-motion telemetry.
None disconnect (self)
 Stop receiving navigation ground-motion telemetry.
VehicleState read_state (self)
 Return a vehicle state containing the latest real GPS ground speed.

Detailed Description

Build partial vehicle snapshots from navigation ground-motion messages.

This source intentionally supplies only fields that navigation can measure directly. Engine, fuel, temperature, pressure, and transmission fields remain None rather than being simulated.

Member Function Documentation

◆ read_state()

VehicleState automotive.navigation_motion_vehicle_state_source.NavigationMotionVehicleStateSource.read_state ( self)

Return a vehicle state containing the latest real GPS ground speed.

Returns
Partial vehicle state with vehicle_speed_m_s populated when navigation has supplied a valid ground speed.

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