Provide configurable navigation state for demos and UI development. More...
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, PositionState position_state) |
Compatibility alias for :meth:update_position_state. | |
| NavigationState | read_state (self) |
| Read and return the current navigation state. | |
| None | set_state (self, NavigationState state) |
| Replace the deterministic state returned by future reads. | |
Provide configurable navigation state for demos and UI development.
| MotionCalibration navigation.navigation_controller_stub.NavigationControllerStub.calibrate_stationary | ( | self, | |
| int | sample_count = 100, |
||
| float | sample_interval_s = 0.01 |
||
| ) |
Measure motion-sensor biases while stationary.
| sample_count | Number of stationary samples to collect. |
| sample_interval_s | Delay between samples in seconds. |
Reimplemented from navigation.navigation_controller_if.NavigationControllerIf.
| MotionCalibration | None navigation.navigation_controller_stub.NavigationControllerStub.calibration | ( | self | ) |
Return the active stationary calibration, if any.
None before calibration. Reimplemented from navigation.navigation_controller_if.NavigationControllerIf.
| bool navigation.navigation_controller_stub.NavigationControllerStub.is_available | ( | self | ) |
Return whether navigation support is configured and available.
| True | Navigation support is available. |
| False | Navigation support is unavailable. |
Reimplemented from navigation.navigation_controller_if.NavigationControllerIf.
| bool navigation.navigation_controller_stub.NavigationControllerStub.is_started | ( | self | ) |
Return whether the controller is ready to read state.
| True | The controller has been started. |
| False | The controller has not been started. |
Reimplemented from navigation.navigation_controller_if.NavigationControllerIf.
| NavigationState navigation.navigation_controller_stub.NavigationControllerStub.read_state | ( | self | ) |
Read and return the current navigation state.
Reimplemented from navigation.navigation_controller_if.NavigationControllerIf.
| None navigation.navigation_controller_stub.NavigationControllerStub.reset_heading | ( | self, | |
| float | heading_deg = 0.0 |
||
| ) |
Reset relative heading to the requested number of degrees.
| heading_deg | Desired heading after resetting, in degrees. |
Reimplemented from navigation.navigation_controller_if.NavigationControllerIf.
| str | None navigation.navigation_controller_stub.NavigationControllerStub.status_message | ( | self | ) |
Return an availability message, if one applies.
None when no message applies. Reimplemented from navigation.navigation_controller_if.NavigationControllerIf.