#include <time_manager.h>
Public Member Functions | |
std::chrono::nanoseconds | fcu_time_to_system_time (std::chrono::nanoseconds fcu_time) |
virtual void | handle_mavlink_message (const mavlink_message_t &msg) |
The handler function for mavlink messages to be implemented by derived classes. More... | |
TimeManager (MavlinkComm *comm, LoggerInterface< DerivedLogger > &logger, const TimeInterface &time_interface, TimerProviderInterface &timer_provider) | |
Private Member Functions | |
void | timer_callback () |
Private Attributes | |
MavlinkComm * | comm_ |
bool | initialized_ |
LoggerInterface< DerivedLogger > & | logger_ |
double | offset_alpha_ |
std::chrono::nanoseconds | offset_ns_ |
const TimeInterface & | time_interface_ |
std::shared_ptr< TimerInterface > | time_sync_timer_ |
TimerProviderInterface & | timer_provider_ |
Definition at line 53 of file time_manager.h.
mavrosflight::TimeManager< DerivedLogger >::TimeManager | ( | MavlinkComm * | comm, |
LoggerInterface< DerivedLogger > & | logger, | ||
const TimeInterface & | time_interface, | ||
TimerProviderInterface & | timer_provider | ||
) |
Definition at line 46 of file time_manager.cpp.
std::chrono::nanoseconds mavrosflight::TimeManager< DerivedLogger >::fcu_time_to_system_time | ( | std::chrono::nanoseconds | fcu_time | ) |
Definition at line 99 of file time_manager.cpp.
|
virtual |
The handler function for mavlink messages to be implemented by derived classes.
msg | The mavlink message to handle |
Implements mavrosflight::MavlinkListenerInterface.
Definition at line 64 of file time_manager.cpp.
|
private |
Definition at line 115 of file time_manager.cpp.
|
private |
Definition at line 66 of file time_manager.h.
|
private |
Definition at line 74 of file time_manager.h.
|
private |
Definition at line 76 of file time_manager.h.
|
private |
Definition at line 71 of file time_manager.h.
|
private |
Definition at line 72 of file time_manager.h.
|
private |
Definition at line 77 of file time_manager.h.
|
private |
Definition at line 68 of file time_manager.h.
|
private |
Definition at line 78 of file time_manager.h.