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

#include <AP_IRLock_SITL.h>

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

Classes

struct  irlock_packet
 

Public Member Functions

 AP_IRLock_SITL ()
 
void init (int8_t bus) override
 
bool update () override
 
- Public Member Functions inherited from IRLock
bool healthy () const
 
uint32_t last_update_ms () const
 
size_t num_targets () const
 
bool get_angle_to_target_rad (float &x_angle_rad, float &y_angle_rad) const
 
bool get_unit_vector_body (Vector3f &ret) const
 

Private Attributes

uint32_t _last_timestamp
 
SocketAPM sock
 

Additional Inherited Members

- Protected Attributes inherited from IRLock
struct IRLock::AP_IRLock_Flags _flags
 
uint32_t _last_update_ms
 
irlock_target_info _target_info
 

Detailed Description

Definition at line 13 of file AP_IRLock_SITL.h.

Constructor & Destructor Documentation

◆ AP_IRLock_SITL()

AP_IRLock_SITL::AP_IRLock_SITL ( )

Definition at line 34 of file AP_IRLock_SITL.cpp.

Member Function Documentation

◆ init()

void AP_IRLock_SITL::init ( int8_t  bus)
overridevirtual

Implements IRLock.

Definition at line 39 of file AP_IRLock_SITL.cpp.

Referenced by AC_PrecLand_SITL_Gazebo::init().

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

◆ update()

bool AP_IRLock_SITL::update ( void  )
overridevirtual

Implements IRLock.

Definition at line 56 of file AP_IRLock_SITL.cpp.

Referenced by AC_PrecLand_SITL_Gazebo::update().

Here is the caller graph for this function:

Member Data Documentation

◆ _last_timestamp

uint32_t AP_IRLock_SITL::_last_timestamp
private

Definition at line 38 of file AP_IRLock_SITL.h.

Referenced by update().

◆ sock

SocketAPM AP_IRLock_SITL::sock
private

Definition at line 39 of file AP_IRLock_SITL.h.

Referenced by init(), and update().


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