Public Member Functions | Private Member Functions | Private Attributes | List of all members
mavrosflight::TimeManager Class Reference

#include <time_manager.h>

Inheritance diagram for mavrosflight::TimeManager:
Inheritance graph
[legend]

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

MavlinkCommcomm_
 
bool initialized_
 
ros::Duration offset_
 
double offset_alpha_
 
int64_t offset_ns_
 
ros::Timer time_sync_timer_
 

Detailed Description

Definition at line 52 of file time_manager.h.

Constructor & Destructor Documentation

mavrosflight::TimeManager::TimeManager ( MavlinkComm comm)

Definition at line 42 of file time_manager.cpp.

Member Function Documentation

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.

void mavrosflight::TimeManager::handle_mavlink_message ( const mavlink_message_t &  msg)
virtual

The handler function for mavlink messages to be implemented by derived classes.

Parameters
msgThe mavlink message to handle

Implements mavrosflight::MavlinkListenerInterface.

Definition at line 55 of file time_manager.cpp.

void mavrosflight::TimeManager::timer_callback ( const ros::TimerEvent event)
private

Definition at line 121 of file time_manager.cpp.

Member Data Documentation

MavlinkComm* mavrosflight::TimeManager::comm_
private

Definition at line 63 of file time_manager.h.

bool mavrosflight::TimeManager::initialized_
private

Definition at line 72 of file time_manager.h.

ros::Duration mavrosflight::TimeManager::offset_
private

Definition at line 70 of file time_manager.h.

double mavrosflight::TimeManager::offset_alpha_
private

Definition at line 68 of file time_manager.h.

int64_t mavrosflight::TimeManager::offset_ns_
private

Definition at line 69 of file time_manager.h.

ros::Timer mavrosflight::TimeManager::time_sync_timer_
private

Definition at line 65 of file time_manager.h.


The documentation for this class was generated from the following files:


rosflight
Author(s): Daniel Koch , James Jackson
autogenerated on Wed Jul 3 2019 20:00:14