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

#include <OpticalFlow_backend.h>

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

Public Member Functions

 OpticalFlow_backend (OpticalFlow &_frontend)
 
virtual ~OpticalFlow_backend (void)
 
virtual void init ()=0
 
virtual void update ()=0
 

Protected Member Functions

void _update_frontend (const struct OpticalFlow::OpticalFlow_state &state)
 
Vector2f _flowScaler (void) const
 
float _yawAngleRad (void) const
 
void _applyYaw (Vector2f &v)
 
AP_AHRS_NavEKFget_ahrs (void)
 
uint8_t get_address (void) const
 

Protected Attributes

OpticalFlowfrontend
 
AP_HAL::Semaphore_sem
 

Friends

class OpticalFlow
 

Detailed Description

Definition at line 23 of file OpticalFlow_backend.h.

Constructor & Destructor Documentation

◆ OpticalFlow_backend()

OpticalFlow_backend::OpticalFlow_backend ( OpticalFlow _frontend)

Definition at line 20 of file OpticalFlow_backend.cpp.

Here is the call graph for this function:

◆ ~OpticalFlow_backend()

OpticalFlow_backend::~OpticalFlow_backend ( void  )
virtual

Definition at line 26 of file OpticalFlow_backend.cpp.

Member Function Documentation

◆ _applyYaw()

void OpticalFlow_backend::_applyYaw ( Vector2f v)
protected

Definition at line 41 of file OpticalFlow_backend.cpp.

Referenced by _yawAngleRad(), AP_OpticalFlow_PX4Flow::timer(), AP_OpticalFlow_Pixart::update(), AP_OpticalFlow_SITL::update(), and AP_OpticalFlow_Onboard::update().

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

◆ _flowScaler()

Vector2f OpticalFlow_backend::_flowScaler ( void  ) const
inlineprotected

Definition at line 46 of file OpticalFlow_backend.h.

Referenced by AP_OpticalFlow_PX4Flow::timer(), AP_OpticalFlow_Pixart::update(), and AP_OpticalFlow_Onboard::update().

Here is the caller graph for this function:

◆ _update_frontend()

void OpticalFlow_backend::_update_frontend ( const struct OpticalFlow::OpticalFlow_state state)
protected

Definition at line 34 of file OpticalFlow_backend.cpp.

Referenced by AP_OpticalFlow_PX4Flow::timer(), AP_OpticalFlow_Pixart::update(), AP_OpticalFlow_SITL::update(), and AP_OpticalFlow_Onboard::update().

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

◆ _yawAngleRad()

float OpticalFlow_backend::_yawAngleRad ( void  ) const
inlineprotected

Definition at line 49 of file OpticalFlow_backend.h.

Referenced by _applyYaw().

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

◆ get_address()

uint8_t OpticalFlow_backend::get_address ( void  ) const
inlineprotected

Definition at line 58 of file OpticalFlow_backend.h.

Referenced by AP_OpticalFlow_PX4Flow::scan_buses(), and AP_OpticalFlow_PX4Flow::timer().

Here is the caller graph for this function:

◆ get_ahrs()

AP_AHRS_NavEKF& OpticalFlow_backend::get_ahrs ( void  )
inlineprotected

Definition at line 55 of file OpticalFlow_backend.h.

Referenced by AP_OpticalFlow_Pixart::timer().

Here is the caller graph for this function:

◆ init()

virtual void OpticalFlow_backend::init ( )
pure virtual

Implemented in AP_OpticalFlow_Onboard, AP_OpticalFlow_SITL, AP_OpticalFlow_Pixart, and AP_OpticalFlow_PX4Flow.

Referenced by OpticalFlow::init().

Here is the caller graph for this function:

◆ update()

virtual void OpticalFlow_backend::update ( )
pure virtual

Implemented in AP_OpticalFlow_Onboard, AP_OpticalFlow_SITL, AP_OpticalFlow_Pixart, and AP_OpticalFlow_PX4Flow.

Referenced by OpticalFlow::update().

Here is the caller graph for this function:

Friends And Related Function Documentation

◆ OpticalFlow

friend class OpticalFlow
friend

Definition at line 25 of file OpticalFlow_backend.h.

Member Data Documentation

◆ _sem

AP_HAL::Semaphore* OpticalFlow_backend::_sem
protected

◆ frontend

OpticalFlow& OpticalFlow_backend::frontend
protected

Definition at line 40 of file OpticalFlow_backend.h.

Referenced by _update_frontend().


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