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

#include <AP_OpticalFlow_PX4Flow.h>

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

Classes

struct  i2c_integral_frame
 

Public Member Functions

 AP_OpticalFlow_PX4Flow (OpticalFlow &_frontend)
 constructor More...
 
void init () override
 
void update (void) override
 
- Public Member Functions inherited from OpticalFlow_backend
 OpticalFlow_backend (OpticalFlow &_frontend)
 
virtual ~OpticalFlow_backend (void)
 

Static Public Member Functions

static AP_OpticalFlow_PX4Flowdetect (OpticalFlow &_frontend)
 

Private Member Functions

bool scan_buses (void)
 
bool setup_sensor (void)
 
void timer (void)
 

Private Attributes

AP_HAL::OwnPtr< AP_HAL::Devicedev
 

Static Private Attributes

static const uint8_t REG_INTEGRAL_FRAME = 0x16
 

Additional Inherited Members

- Protected Member Functions inherited from OpticalFlow_backend
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 inherited from OpticalFlow_backend
OpticalFlowfrontend
 
AP_HAL::Semaphore_sem
 

Detailed Description

Definition at line 6 of file AP_OpticalFlow_PX4Flow.h.

Constructor & Destructor Documentation

◆ AP_OpticalFlow_PX4Flow()

AP_OpticalFlow_PX4Flow::AP_OpticalFlow_PX4Flow ( OpticalFlow _frontend)

constructor

Definition at line 34 of file AP_OpticalFlow_PX4Flow.cpp.

Referenced by detect().

Here is the caller graph for this function:

Member Function Documentation

◆ detect()

AP_OpticalFlow_PX4Flow * AP_OpticalFlow_PX4Flow::detect ( OpticalFlow _frontend)
static

Definition at line 41 of file AP_OpticalFlow_PX4Flow.cpp.

Referenced by init(), and OpticalFlow::init().

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

◆ init()

void AP_OpticalFlow_PX4Flow::init ( void  )
inlineoverridevirtual

Implements OpticalFlow_backend.

Definition at line 13 of file AP_OpticalFlow_PX4Flow.h.

Here is the call graph for this function:

◆ scan_buses()

bool AP_OpticalFlow_PX4Flow::scan_buses ( void  )
private

Definition at line 57 of file AP_OpticalFlow_PX4Flow.cpp.

Referenced by setup_sensor().

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

◆ setup_sensor()

bool AP_OpticalFlow_PX4Flow::setup_sensor ( void  )
private

Definition at line 95 of file AP_OpticalFlow_PX4Flow.cpp.

Referenced by detect().

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

◆ timer()

void AP_OpticalFlow_PX4Flow::timer ( void  )
private

Definition at line 112 of file AP_OpticalFlow_PX4Flow.cpp.

Referenced by setup_sensor().

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

◆ update()

void AP_OpticalFlow_PX4Flow::update ( void  )
overridevirtual

Implements OpticalFlow_backend.

Definition at line 107 of file AP_OpticalFlow_PX4Flow.cpp.

Referenced by init().

Here is the caller graph for this function:

Member Data Documentation

◆ dev

AP_HAL::OwnPtr<AP_HAL::Device> AP_OpticalFlow_PX4Flow::dev
private

Definition at line 22 of file AP_OpticalFlow_PX4Flow.h.

Referenced by scan_buses(), setup_sensor(), and timer().

◆ REG_INTEGRAL_FRAME

const uint8_t AP_OpticalFlow_PX4Flow::REG_INTEGRAL_FRAME = 0x16
staticprivate

Definition at line 24 of file AP_OpticalFlow_PX4Flow.h.

Referenced by scan_buses(), and timer().


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