OpenRoadCode
Public API reference for OpenRoadCode
Loading...
Searching...
No Matches
navigation.unconfigured_navigation_controller.UnconfiguredNavigationController Class Reference

Report that navigation support has not been configured. More...

Inheritance diagram for navigation.unconfigured_navigation_controller.UnconfiguredNavigationController:
navigation.navigation_controller_if.NavigationControllerIf

Public Member Functions

bool is_started (self)
 Return whether the controller is ready to read state.
 
bool is_available (self)
 Return whether navigation support is configured and available.
 
str|None status_message (self)
 Return an availability message, if one applies.
 
MotionCalibration|None calibration (self)
 Return the active stationary calibration, if any.
 
None start (self)
 Start the controller and its configured sources.
 
None stop (self)
 Stop the controller and its configured sources.
 
None reset_heading (self, float heading_deg=0.0)
 Reset relative heading to the requested number of degrees.
 
MotionCalibration calibrate_stationary (self, int sample_count=100, float sample_interval_s=0.01)
 Measure motion-sensor biases while stationary.
 
None update_gps_state (self, GpsState gps_state)
 Accept the latest normalized GPS report.
 
NavigationState read_state (self)
 Read and return the current navigation state.
 

Detailed Description

Report that navigation support has not been configured.

Member Function Documentation

◆ calibrate_stationary()

MotionCalibration navigation.unconfigured_navigation_controller.UnconfiguredNavigationController.calibrate_stationary (   self,
int   sample_count = 100,
float   sample_interval_s = 0.01 
)

Measure motion-sensor biases while stationary.

Parameters
sample_countNumber of stationary samples to collect.
sample_interval_sDelay between samples in seconds.
Returns
Measured stationary motion calibration.

Reimplemented from navigation.navigation_controller_if.NavigationControllerIf.

◆ calibration()

MotionCalibration | None navigation.unconfigured_navigation_controller.UnconfiguredNavigationController.calibration (   self)

Return the active stationary calibration, if any.

Returns
Active calibration, or None before calibration.

Reimplemented from navigation.navigation_controller_if.NavigationControllerIf.

◆ is_available()

bool navigation.unconfigured_navigation_controller.UnconfiguredNavigationController.is_available (   self)

Return whether navigation support is configured and available.

Return values
TrueNavigation support is available.
FalseNavigation support is unavailable.

Reimplemented from navigation.navigation_controller_if.NavigationControllerIf.

◆ is_started()

bool navigation.unconfigured_navigation_controller.UnconfiguredNavigationController.is_started (   self)

Return whether the controller is ready to read state.

Return values
TrueThe controller has been started.
FalseThe controller has not been started.

Reimplemented from navigation.navigation_controller_if.NavigationControllerIf.

◆ read_state()

NavigationState navigation.unconfigured_navigation_controller.UnconfiguredNavigationController.read_state (   self)

Read and return the current navigation state.

Returns
Current orientation, motion, and optional GPS state.

Reimplemented from navigation.navigation_controller_if.NavigationControllerIf.

◆ reset_heading()

None navigation.unconfigured_navigation_controller.UnconfiguredNavigationController.reset_heading (   self,
float   heading_deg = 0.0 
)

Reset relative heading to the requested number of degrees.

Parameters
heading_degDesired heading after resetting, in degrees.

Reimplemented from navigation.navigation_controller_if.NavigationControllerIf.

◆ status_message()

str | None navigation.unconfigured_navigation_controller.UnconfiguredNavigationController.status_message (   self)

Return an availability message, if one applies.

Returns
Human-readable status, or None when no message applies.

Reimplemented from navigation.navigation_controller_if.NavigationControllerIf.

◆ update_gps_state()

None navigation.unconfigured_navigation_controller.UnconfiguredNavigationController.update_gps_state (   self,
GpsState  gps_state 
)

Accept the latest normalized GPS report.

Parameters
gps_stateLatest normalized GPS state.

Reimplemented from navigation.navigation_controller_if.NavigationControllerIf.


The documentation for this class was generated from the following file: