#include <position_updater.hpp>
PositionUpdater helps updating a Router's position vector periodically
Definition at line 21 of file position_updater.hpp.
◆ PositionUpdater()
Create PositionUpdater scheduling position updates read from position provider
- Note
- the default update rate is derived from router's MIB.
- Parameters
-
| runtime | where updater schedules its callback |
| pos | position updates are read from this source |
| router | position sink |
Definition at line 13 of file position_updater.cpp.
◆ ~PositionUpdater()
| vanetza::geonet::PositionUpdater::~PositionUpdater |
( |
| ) |
|
◆ schedule()
| void vanetza::geonet::PositionUpdater::schedule |
( |
| ) |
|
|
private |
◆ update_rate() [1/2]
| void vanetza::geonet::PositionUpdater::update_rate |
( |
Clock::duration | interval | ) |
|
Change rate at which update is looking up new positions
- Note
- MIB setting is not affected
-
an update interval smaller than zero disables updates
- Parameters
-
Definition at line 34 of file position_updater.cpp.
◆ update_rate() [2/2]
| void vanetza::geonet::PositionUpdater::update_rate |
( |
units::Frequency | rate | ) |
|
◆ m_interval
| Clock::duration vanetza::geonet::PositionUpdater::m_interval |
|
private |
◆ m_positioning
◆ m_router
| Router& vanetza::geonet::PositionUpdater::m_router |
|
private |
◆ m_runtime
| Runtime& vanetza::geonet::PositionUpdater::m_runtime |
|
private |
The documentation for this class was generated from the following files: