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

#include <RPM_PX4_PWM.h>

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

Public Member Functions

 AP_RPM_PX4_PWM (AP_RPM &ranger, uint8_t instance, AP_RPM::RPM_State &_state)
 
 ~AP_RPM_PX4_PWM (void)
 
void update (void)
 
- Public Member Functions inherited from AP_RPM_Backend
 AP_RPM_Backend (AP_RPM &_ap_rpm, uint8_t instance, AP_RPM::RPM_State &_state)
 
virtual ~AP_RPM_Backend (void)
 
int8_t get_pin (void) const
 

Private Attributes

int _fd = -1
 
int _logfd = -1
 
uint64_t _last_timestamp = 0
 
uint32_t _resolution_usec = 1
 
ModeFilterFloat_Size5 signal_quality_filter {3}
 

Additional Inherited Members

- Protected Attributes inherited from AP_RPM_Backend
AP_RPMap_rpm
 
AP_RPM::RPM_Statestate
 

Detailed Description

Definition at line 22 of file RPM_PX4_PWM.h.

Constructor & Destructor Documentation

◆ AP_RPM_PX4_PWM()

AP_RPM_PX4_PWM::AP_RPM_PX4_PWM ( AP_RPM ranger,
uint8_t  instance,
AP_RPM::RPM_State _state 
)

Definition at line 46 of file RPM_PX4_PWM.cpp.

Here is the call graph for this function:

◆ ~AP_RPM_PX4_PWM()

AP_RPM_PX4_PWM::~AP_RPM_PX4_PWM ( void  )

Definition at line 79 of file RPM_PX4_PWM.cpp.

Here is the call graph for this function:

Member Function Documentation

◆ update()

void AP_RPM_PX4_PWM::update ( void  )
virtual

Implements AP_RPM_Backend.

Definition at line 87 of file RPM_PX4_PWM.cpp.

Here is the call graph for this function:

Member Data Documentation

◆ _fd

int AP_RPM_PX4_PWM::_fd = -1
private

Definition at line 35 of file RPM_PX4_PWM.h.

Referenced by AP_RPM_PX4_PWM(), update(), and ~AP_RPM_PX4_PWM().

◆ _last_timestamp

uint64_t AP_RPM_PX4_PWM::_last_timestamp = 0
private

Definition at line 37 of file RPM_PX4_PWM.h.

◆ _logfd

int AP_RPM_PX4_PWM::_logfd = -1
private

Definition at line 36 of file RPM_PX4_PWM.h.

Referenced by AP_RPM_PX4_PWM(), and update().

◆ _resolution_usec

uint32_t AP_RPM_PX4_PWM::_resolution_usec = 1
private

Definition at line 38 of file RPM_PX4_PWM.h.

Referenced by AP_RPM_PX4_PWM(), and update().

◆ signal_quality_filter

ModeFilterFloat_Size5 AP_RPM_PX4_PWM::signal_quality_filter {3}
private

Definition at line 40 of file RPM_PX4_PWM.h.

Referenced by update().


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