APM:Libraries
Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
SITL::ADSB Class Reference

#include <SIM_ADSB.h>

Collaboration diagram for SITL::ADSB:
[legend]

Public Member Functions

 ADSB (const struct sitl_fdm &_fdm, const char *home_str)
 
void update (void)
 

Private Member Functions

void send_report (void)
 

Private Attributes

const char * target_address = "127.0.0.1"
 
const uint16_t target_port = 5762
 
Location home
 
uint8_t num_vehicles = 0
 
ADSB_Vehicle vehicles [num_vehicles_MAX]
 
const float reporting_period_ms = 1000
 
uint32_t last_report_us = 0
 
uint32_t last_update_us = 0
 
uint32_t last_tx_report_ms = 0
 
uint32_t last_heartbeat_ms = 0
 
bool seen_heartbeat = false
 
uint8_t vehicle_system_id
 
uint8_t vehicle_component_id
 
SocketAPM mav_socket { false }
 
struct {
   bool   connected
 
   mavlink_message_t   rxmsg
 
   mavlink_status_t   status
 
   uint8_t   seq
 
mavlink
 

Static Private Attributes

static const uint8_t num_vehicles_MAX = 200
 

Detailed Description

Definition at line 43 of file SIM_ADSB.h.

Constructor & Destructor Documentation

◆ ADSB()

SITL::ADSB::ADSB ( const struct sitl_fdm _fdm,
const char *  home_str 
)

Definition at line 30 of file SIM_ADSB.cpp.

Here is the call graph for this function:

Member Function Documentation

◆ send_report()

void SITL::ADSB::send_report ( void  )
private

Definition at line 108 of file SIM_ADSB.cpp.

Referenced by update().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ update()

void SITL::ADSB::update ( void  )

Definition at line 73 of file SIM_ADSB.cpp.

Referenced by HALSITL::SITL_State::_fdm_input_local().

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ connected

bool SITL::ADSB::connected

Definition at line 71 of file SIM_ADSB.h.

◆ home

Location SITL::ADSB::home
private

Definition at line 52 of file SIM_ADSB.h.

Referenced by ADSB(), and send_report().

◆ last_heartbeat_ms

uint32_t SITL::ADSB::last_heartbeat_ms = 0
private

Definition at line 63 of file SIM_ADSB.h.

Referenced by send_report().

◆ last_report_us

uint32_t SITL::ADSB::last_report_us = 0
private

Definition at line 59 of file SIM_ADSB.h.

Referenced by send_report().

◆ last_tx_report_ms

uint32_t SITL::ADSB::last_tx_report_ms = 0
private

Definition at line 61 of file SIM_ADSB.h.

Referenced by send_report().

◆ last_update_us

uint32_t SITL::ADSB::last_update_us = 0
private

Definition at line 60 of file SIM_ADSB.h.

Referenced by update().

◆ mav_socket

SocketAPM SITL::ADSB::mav_socket { false }
private

Definition at line 68 of file SIM_ADSB.h.

Referenced by send_report().

◆ mavlink

struct { ... } SITL::ADSB::mavlink

Referenced by send_report().

◆ num_vehicles

uint8_t SITL::ADSB::num_vehicles = 0
private

Definition at line 53 of file SIM_ADSB.h.

Referenced by send_report(), and update().

◆ num_vehicles_MAX

const uint8_t SITL::ADSB::num_vehicles_MAX = 200
staticprivate

Definition at line 54 of file SIM_ADSB.h.

Referenced by update().

◆ reporting_period_ms

const float SITL::ADSB::reporting_period_ms = 1000
private

Definition at line 58 of file SIM_ADSB.h.

Referenced by send_report().

◆ rxmsg

mavlink_message_t SITL::ADSB::rxmsg

Definition at line 72 of file SIM_ADSB.h.

◆ seen_heartbeat

bool SITL::ADSB::seen_heartbeat = false
private

Definition at line 64 of file SIM_ADSB.h.

Referenced by send_report().

◆ seq

uint8_t SITL::ADSB::seq

Definition at line 74 of file SIM_ADSB.h.

◆ status

mavlink_status_t SITL::ADSB::status

Definition at line 73 of file SIM_ADSB.h.

Referenced by send_report().

◆ target_address

const char* SITL::ADSB::target_address = "127.0.0.1"
private

Definition at line 49 of file SIM_ADSB.h.

Referenced by send_report().

◆ target_port

const uint16_t SITL::ADSB::target_port = 5762
private

Definition at line 50 of file SIM_ADSB.h.

Referenced by send_report().

◆ vehicle_component_id

uint8_t SITL::ADSB::vehicle_component_id
private

Definition at line 66 of file SIM_ADSB.h.

Referenced by send_report().

◆ vehicle_system_id

uint8_t SITL::ADSB::vehicle_system_id
private

Definition at line 65 of file SIM_ADSB.h.

Referenced by send_report().

◆ vehicles

ADSB_Vehicle SITL::ADSB::vehicles[num_vehicles_MAX]
private

Definition at line 55 of file SIM_ADSB.h.

Referenced by send_report(), and update().


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