APM:Libraries
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
AP_Beacon_Backend Class Referenceabstract

#include <AP_Beacon_Backend.h>

Inheritance diagram for AP_Beacon_Backend:
[legend]
Collaboration diagram for AP_Beacon_Backend:
[legend]

Public Member Functions

 AP_Beacon_Backend (AP_Beacon &frontend)
 
virtual bool healthy ()=0
 
virtual void update ()=0
 
void set_vehicle_position (const Vector3f &pos, float accuracy_estimate)
 
void set_beacon_distance (uint8_t beacon_instance, float distance)
 
void set_beacon_position (uint8_t beacon_instance, const Vector3f &pos)
 
float get_beacon_origin_lat (void) const
 
float get_beacon_origin_lon (void) const
 
float get_beacon_origin_alt (void) const
 

Protected Member Functions

Vector3f correct_for_orient_yaw (const Vector3f &vector)
 

Protected Attributes

AP_Beacon_frontend
 
int16_t orient_yaw_deg
 
float orient_cos_yaw = 0.0f
 
float orient_sin_yaw = 1.0f
 

Detailed Description

Definition at line 22 of file AP_Beacon_Backend.h.

Constructor & Destructor Documentation

◆ AP_Beacon_Backend()

AP_Beacon_Backend::AP_Beacon_Backend ( AP_Beacon frontend)

Definition at line 24 of file AP_Beacon_Backend.cpp.

Member Function Documentation

◆ correct_for_orient_yaw()

Vector3f AP_Beacon_Backend::correct_for_orient_yaw ( const Vector3f vector)
protected

Definition at line 76 of file AP_Beacon_Backend.cpp.

Referenced by set_beacon_position(), and set_vehicle_position().

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

◆ get_beacon_origin_alt()

float AP_Beacon_Backend::get_beacon_origin_alt ( void  ) const
inline

Definition at line 46 of file AP_Beacon_Backend.h.

Referenced by AP_Beacon_SITL::update().

Here is the caller graph for this function:

◆ get_beacon_origin_lat()

float AP_Beacon_Backend::get_beacon_origin_lat ( void  ) const
inline

Definition at line 44 of file AP_Beacon_Backend.h.

Referenced by AP_Beacon_SITL::update().

Here is the caller graph for this function:

◆ get_beacon_origin_lon()

float AP_Beacon_Backend::get_beacon_origin_lon ( void  ) const
inline

Definition at line 45 of file AP_Beacon_Backend.h.

Referenced by AP_Beacon_SITL::update().

Here is the caller graph for this function:

◆ healthy()

virtual bool AP_Beacon_Backend::healthy ( )
pure virtual

Implemented in AP_Beacon_Marvelmind, AP_Beacon_Pozyx, and AP_Beacon_SITL.

Referenced by AP_Beacon::healthy().

Here is the caller graph for this function:

◆ set_beacon_distance()

void AP_Beacon_Backend::set_beacon_distance ( uint8_t  beacon_instance,
float  distance 
)

Definition at line 40 of file AP_Beacon_Backend.cpp.

Referenced by AP_Beacon_Pozyx::parse_buffer(), AP_Beacon_Marvelmind::process_beacons_distances_datagram(), and AP_Beacon_SITL::update().

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

◆ set_beacon_position()

void AP_Beacon_Backend::set_beacon_position ( uint8_t  beacon_instance,
const Vector3f pos 
)

Definition at line 59 of file AP_Beacon_Backend.cpp.

Referenced by AP_Beacon_Pozyx::parse_buffer(), AP_Beacon_Marvelmind::set_stationary_beacons_positions(), and AP_Beacon_SITL::update().

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

◆ set_vehicle_position()

void AP_Beacon_Backend::set_vehicle_position ( const Vector3f pos,
float  accuracy_estimate 
)

Definition at line 32 of file AP_Beacon_Backend.cpp.

Referenced by AP_Beacon_Pozyx::parse_buffer(), AP_Beacon_Marvelmind::set_stationary_beacons_positions(), and AP_Beacon_SITL::update().

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

◆ update()

virtual void AP_Beacon_Backend::update ( )
pure virtual

Implemented in AP_Beacon_Marvelmind, AP_Beacon_Pozyx, and AP_Beacon_SITL.

Referenced by AP_Beacon::update().

Here is the caller graph for this function:

Member Data Documentation

◆ _frontend

AP_Beacon& AP_Beacon_Backend::_frontend
protected

◆ orient_cos_yaw

float AP_Beacon_Backend::orient_cos_yaw = 0.0f
protected

Definition at line 55 of file AP_Beacon_Backend.h.

Referenced by correct_for_orient_yaw().

◆ orient_sin_yaw

float AP_Beacon_Backend::orient_sin_yaw = 1.0f
protected

Definition at line 56 of file AP_Beacon_Backend.h.

Referenced by correct_for_orient_yaw().

◆ orient_yaw_deg

int16_t AP_Beacon_Backend::orient_yaw_deg
protected

Definition at line 54 of file AP_Beacon_Backend.h.

Referenced by correct_for_orient_yaw().


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