APM:Libraries
Public Member Functions | Private Attributes | List of all members
AC_PrecLand_Companion Class Reference

#include <AC_PrecLand_Companion.h>

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

Public Member Functions

 AC_PrecLand_Companion (const AC_PrecLand &frontend, AC_PrecLand::precland_state &state)
 
void init () override
 
void update () override
 
bool get_los_body (Vector3f &ret) override
 
uint32_t los_meas_time_ms () override
 
bool have_los_meas () override
 
float distance_to_target () override
 
void handle_msg (mavlink_message_t *msg) override
 
- Public Member Functions inherited from AC_PrecLand_Backend
 AC_PrecLand_Backend (const AC_PrecLand &frontend, AC_PrecLand::precland_state &state)
 
virtual ~AC_PrecLand_Backend ()
 
int8_t get_bus (void) const
 

Private Attributes

uint64_t _timestamp_us
 
float _distance_to_target
 
Vector3f _los_meas_body
 
bool _have_los_meas
 
uint32_t _los_meas_time_ms
 

Additional Inherited Members

- Protected Attributes inherited from AC_PrecLand_Backend
const AC_PrecLand_frontend
 
AC_PrecLand::precland_state_state
 

Detailed Description

Definition at line 12 of file AC_PrecLand_Companion.h.

Constructor & Destructor Documentation

◆ AC_PrecLand_Companion()

AC_PrecLand_Companion::AC_PrecLand_Companion ( const AC_PrecLand frontend,
AC_PrecLand::precland_state state 
)

Definition at line 7 of file AC_PrecLand_Companion.cpp.

Member Function Documentation

◆ distance_to_target()

float AC_PrecLand_Companion::distance_to_target ( )
overridevirtual

Reimplemented from AC_PrecLand_Backend.

Definition at line 52 of file AC_PrecLand_Companion.cpp.

◆ get_los_body()

bool AC_PrecLand_Companion::get_los_body ( Vector3f ret)
overridevirtual

Implements AC_PrecLand_Backend.

Definition at line 32 of file AC_PrecLand_Companion.cpp.

Here is the call graph for this function:

◆ handle_msg()

void AC_PrecLand_Companion::handle_msg ( mavlink_message_t *  msg)
overridevirtual

Reimplemented from AC_PrecLand_Backend.

Definition at line 57 of file AC_PrecLand_Companion.cpp.

Here is the call graph for this function:

◆ have_los_meas()

bool AC_PrecLand_Companion::have_los_meas ( )
overridevirtual

Implements AC_PrecLand_Backend.

Definition at line 46 of file AC_PrecLand_Companion.cpp.

Referenced by get_los_body().

Here is the caller graph for this function:

◆ init()

void AC_PrecLand_Companion::init ( )
overridevirtual

Implements AC_PrecLand_Backend.

Definition at line 17 of file AC_PrecLand_Companion.cpp.

◆ los_meas_time_ms()

uint32_t AC_PrecLand_Companion::los_meas_time_ms ( )
overridevirtual

Implements AC_PrecLand_Backend.

Definition at line 41 of file AC_PrecLand_Companion.cpp.

◆ update()

void AC_PrecLand_Companion::update ( )
overridevirtual

Implements AC_PrecLand_Backend.

Definition at line 25 of file AC_PrecLand_Companion.cpp.

Here is the call graph for this function:

Member Data Documentation

◆ _distance_to_target

float AC_PrecLand_Companion::_distance_to_target
private

Definition at line 42 of file AC_PrecLand_Companion.h.

Referenced by distance_to_target(), and handle_msg().

◆ _have_los_meas

bool AC_PrecLand_Companion::_have_los_meas
private

Definition at line 45 of file AC_PrecLand_Companion.h.

Referenced by handle_msg(), have_los_meas(), init(), and update().

◆ _los_meas_body

Vector3f AC_PrecLand_Companion::_los_meas_body
private

Definition at line 44 of file AC_PrecLand_Companion.h.

Referenced by get_los_body(), and handle_msg().

◆ _los_meas_time_ms

uint32_t AC_PrecLand_Companion::_los_meas_time_ms
private

Definition at line 46 of file AC_PrecLand_Companion.h.

Referenced by handle_msg(), los_meas_time_ms(), and update().

◆ _timestamp_us

uint64_t AC_PrecLand_Companion::_timestamp_us
private

Definition at line 41 of file AC_PrecLand_Companion.h.

Referenced by handle_msg().


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