APM:Libraries
|
#include <OpticalFlow_backend.h>
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_NavEKF & | get_ahrs (void) |
uint8_t | get_address (void) const |
Protected Attributes | |
OpticalFlow & | frontend |
AP_HAL::Semaphore * | _sem |
Friends | |
class | OpticalFlow |
Definition at line 23 of file OpticalFlow_backend.h.
OpticalFlow_backend::OpticalFlow_backend | ( | OpticalFlow & | _frontend | ) |
|
virtual |
Definition at line 26 of file OpticalFlow_backend.cpp.
|
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().
|
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().
|
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().
|
inlineprotected |
Definition at line 49 of file OpticalFlow_backend.h.
Referenced by _applyYaw().
|
inlineprotected |
Definition at line 58 of file OpticalFlow_backend.h.
Referenced by AP_OpticalFlow_PX4Flow::scan_buses(), and AP_OpticalFlow_PX4Flow::timer().
|
inlineprotected |
Definition at line 55 of file OpticalFlow_backend.h.
Referenced by AP_OpticalFlow_Pixart::timer().
|
pure virtual |
Implemented in AP_OpticalFlow_Onboard, AP_OpticalFlow_SITL, AP_OpticalFlow_Pixart, and AP_OpticalFlow_PX4Flow.
Referenced by OpticalFlow::init().
|
pure virtual |
Implemented in AP_OpticalFlow_Onboard, AP_OpticalFlow_SITL, AP_OpticalFlow_Pixart, and AP_OpticalFlow_PX4Flow.
Referenced by OpticalFlow::update().
|
friend |
Definition at line 25 of file OpticalFlow_backend.h.
|
protected |
Definition at line 61 of file OpticalFlow_backend.h.
Referenced by OpticalFlow_backend(), AP_OpticalFlow_Pixart::timer(), AP_OpticalFlow_Pixart::update(), and ~OpticalFlow_backend().
|
protected |
Definition at line 40 of file OpticalFlow_backend.h.
Referenced by _update_frontend().