PX4 Firmware
PX4 Autopilot Software http://px4.io
mavlink_timesync.h File Reference

Mavlink time synchroniser definition. More...

#include "mavlink_bridge_header.h"
#include <uORB/PublicationMulti.hpp>
#include <uORB/topics/timesync_status.h>
#include <drivers/drv_hrt.h>
#include <math.h>
#include <float.h>
Include dependency graph for mavlink_timesync.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  MavlinkTimesync
 

Variables

static constexpr time_t PX4_EPOCH_SECS = 1234567890ULL
 
static constexpr double ALPHA_GAIN_INITIAL = 0.05
 
static constexpr double BETA_GAIN_INITIAL = 0.05
 
static constexpr double ALPHA_GAIN_FINAL = 0.003
 
static constexpr double BETA_GAIN_FINAL = 0.003
 
static constexpr uint32_t CONVERGENCE_WINDOW = 500
 
static constexpr uint64_t MAX_RTT_SAMPLE = 10_ms
 
static constexpr uint64_t MAX_DEVIATION_SAMPLE = 100_ms
 
static constexpr uint32_t MAX_CONSECUTIVE_HIGH_RTT = 5
 
static constexpr uint32_t MAX_CONSECUTIVE_HIGH_DEVIATION = 5
 

Detailed Description

Mavlink time synchroniser definition.

Author
Mohammed Kabir mhkab.nosp@m.ir98.nosp@m.@gmai.nosp@m.l.co.nosp@m.m

Definition in file mavlink_timesync.h.

Variable Documentation

◆ ALPHA_GAIN_FINAL

constexpr double ALPHA_GAIN_FINAL = 0.003
static

Definition at line 69 of file mavlink_timesync.h.

Referenced by MavlinkTimesync::handle_message().

◆ ALPHA_GAIN_INITIAL

constexpr double ALPHA_GAIN_INITIAL = 0.05
static

◆ BETA_GAIN_FINAL

constexpr double BETA_GAIN_FINAL = 0.003
static

Definition at line 70 of file mavlink_timesync.h.

Referenced by MavlinkTimesync::handle_message().

◆ BETA_GAIN_INITIAL

constexpr double BETA_GAIN_INITIAL = 0.05
static

◆ CONVERGENCE_WINDOW

constexpr uint32_t CONVERGENCE_WINDOW = 500
static

◆ MAX_CONSECUTIVE_HIGH_DEVIATION

constexpr uint32_t MAX_CONSECUTIVE_HIGH_DEVIATION = 5
static

Definition at line 93 of file mavlink_timesync.h.

Referenced by MavlinkTimesync::handle_message().

◆ MAX_CONSECUTIVE_HIGH_RTT

constexpr uint32_t MAX_CONSECUTIVE_HIGH_RTT = 5
static

Definition at line 92 of file mavlink_timesync.h.

Referenced by MavlinkTimesync::handle_message().

◆ MAX_DEVIATION_SAMPLE

constexpr uint64_t MAX_DEVIATION_SAMPLE = 100_ms
static

Definition at line 91 of file mavlink_timesync.h.

Referenced by MavlinkTimesync::handle_message().

◆ MAX_RTT_SAMPLE

constexpr uint64_t MAX_RTT_SAMPLE = 10_ms
static

Definition at line 90 of file mavlink_timesync.h.

Referenced by MavlinkTimesync::handle_message().

◆ PX4_EPOCH_SECS

constexpr time_t PX4_EPOCH_SECS = 1234567890ULL
static

Definition at line 55 of file mavlink_timesync.h.

Referenced by MavlinkTimesync::handle_message().