OpenRoadCode
Public API reference for OpenRoadCode
Loading...
Searching...
No Matches
periodic_position_publisher.PeriodicPositionPublisher Class Reference

Publish the latest position at a fixed rate with cache semantics. More...

Public Member Functions

None update (self, PositionState state)
 Store the newest sensor fix for publication.
bool publish_once (self)
 Publish the latest state once; return False when no state exists.

Detailed Description

Publish the latest position at a fixed rate with cache semantics.

A newly received sensor fix is published once with is_cached=False. Subsequent publications of that same fix use is_cached=True until a newer sensor fix is supplied.


The documentation for this class was generated from the following file:
  • apps/webUi/periodic_position_publisher.py