Persist and restore the most recent valid position fix.
More...
|
| PositionState|None | load (self) |
| | Load the cached fix and mark it as cached.
|
| |
| None | store (self, PositionState state) |
| | Persist a valid live position fix.
|
| |
Persist and restore the most recent valid position fix.
◆ load()
| PositionState | None navigation.position_snapshot_cache.PositionSnapshotCache.load |
( |
|
self | ) |
|
Load the cached fix and mark it as cached.
- Returns
- Cached position or None when absent or invalid.
◆ store()
| None navigation.position_snapshot_cache.PositionSnapshotCache.store |
( |
|
self, |
|
|
PositionState |
state |
|
) |
| |
Persist a valid live position fix.
- Parameters
-
| state | Live position containing a usable fix and coordinates. |
- Exceptions
-
| ValueError | if state is cached or lacks a usable fix. |
The documentation for this class was generated from the following file:
- controllers/navigation/position_snapshot_cache.py