37 #ifndef MAVROSFLIGHT_TIME_MANAGER_H 38 #define MAVROSFLIGHT_TIME_MANAGER_H 52 template <
typename DerivedLogger>
83 #endif // MAVROSFLIGHT_TIME_MANAGER_H Describes an interface classes can implement to receive and handle mavlink messages.
const TimeInterface & time_interface_
std::shared_ptr< TimerInterface > time_sync_timer_
virtual void handle_mavlink_message(const mavlink_message_t &msg)
The handler function for mavlink messages to be implemented by derived classes.
std::chrono::nanoseconds offset_ns_
TimeManager(MavlinkComm *comm, LoggerInterface< DerivedLogger > &logger, const TimeInterface &time_interface, TimerProviderInterface &timer_provider)
TimerProviderInterface & timer_provider_
std::chrono::nanoseconds fcu_time_to_system_time(std::chrono::nanoseconds fcu_time)
Provide an interface for creating timers.
Interface for acquiring system time.
LoggerInterface< DerivedLogger > & logger_