#include <time_manager.h>
Public Member Functions | |
ros::Time | get_ros_time_ms (uint32_t boot_ms) |
ros::Time | get_ros_time_us (uint64_t boot_us) |
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) | |
Private Member Functions | |
void | timer_callback (const ros::TimerEvent &event) |
Private Attributes | |
MavlinkComm * | comm_ |
bool | initialized_ |
ros::Duration | offset_ |
double | offset_alpha_ |
int64_t | offset_ns_ |
ros::Timer | time_sync_timer_ |
Definition at line 52 of file time_manager.h.
mavrosflight::TimeManager::TimeManager | ( | MavlinkComm * | comm | ) |
Definition at line 42 of file time_manager.cpp.
ros::Time mavrosflight::TimeManager::get_ros_time_ms | ( | uint32_t | boot_ms | ) |
Definition at line 83 of file time_manager.cpp.
ros::Time mavrosflight::TimeManager::get_ros_time_us | ( | uint64_t | boot_us | ) |
Definition at line 102 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 55 of file time_manager.cpp.
|
private |
Definition at line 121 of file time_manager.cpp.
|
private |
Definition at line 63 of file time_manager.h.
|
private |
Definition at line 72 of file time_manager.h.
|
private |
Definition at line 70 of file time_manager.h.
|
private |
Definition at line 68 of file time_manager.h.
|
private |
Definition at line 69 of file time_manager.h.
|
private |
Definition at line 65 of file time_manager.h.