APM:Libraries
|
#include <AP_RPM.h>
Classes | |
struct | RPM_State |
Public Types | |
enum | RPM_Type { RPM_TYPE_NONE = 0, RPM_TYPE_PX4_PWM = 1, RPM_TYPE_PIN = 2 } |
Public Member Functions | |
AP_RPM () | |
AP_RPM (const AP_RPM &other)=delete | |
AP_RPM & | operator= (const AP_RPM &)=delete |
uint8_t | num_sensors (void) const |
void | init (void) |
void | update (void) |
float | get_rpm (uint8_t instance) const |
float | get_signal_quality (uint8_t instance) const |
bool | healthy (uint8_t instance) const |
bool | enabled (uint8_t instance) const |
Public Attributes | |
AP_Int8 | _type [RPM_MAX_INSTANCES] |
AP_Int8 | _pin [RPM_MAX_INSTANCES] |
AP_Float | _scaling [RPM_MAX_INSTANCES] |
AP_Float | _maximum [RPM_MAX_INSTANCES] |
AP_Float | _minimum [RPM_MAX_INSTANCES] |
AP_Float | _quality_min [RPM_MAX_INSTANCES] |
Static Public Attributes | |
static const struct AP_Param::GroupInfo | var_info [] |
Private Member Functions | |
void | detect_instance (uint8_t instance) |
void | update_instance (uint8_t instance) |
Private Attributes | |
RPM_State | state [RPM_MAX_INSTANCES] |
AP_RPM_Backend * | drivers [RPM_MAX_INSTANCES] |
uint8_t | num_instances:2 |
Friends | |
class | AP_RPM_Backend |
enum AP_RPM::RPM_Type |
AP_RPM::AP_RPM | ( | void | ) |
|
delete |
|
private |
bool AP_RPM::enabled | ( | uint8_t | instance | ) | const |
Definition at line 181 of file AP_RPM.cpp.
Referenced by get_signal_quality(), and loop().
|
inline |
Definition at line 77 of file AP_RPM.h.
Referenced by DataFlash_Class::Log_Write_RPM(), loop(), and AP_ICEngine::update().
|
inline |
bool AP_RPM::healthy | ( | uint8_t | instance | ) | const |
Definition at line 164 of file AP_RPM.cpp.
Referenced by get_rpm(), get_signal_quality(), loop(), and AP_ICEngine::update().
void AP_RPM::init | ( | void | ) |
Definition at line 106 of file AP_RPM.cpp.
Referenced by num_sensors(), and setup().
|
inline |
void AP_RPM::update | ( | void | ) |
Definition at line 148 of file AP_RPM.cpp.
Referenced by loop(), and num_sensors().
|
private |
|
friend |
AP_Float AP_RPM::_maximum[RPM_MAX_INSTANCES] |
Definition at line 57 of file AP_RPM.h.
Referenced by AP_RPM_Pin::update(), and AP_RPM_PX4_PWM::update().
AP_Float AP_RPM::_minimum[RPM_MAX_INSTANCES] |
Definition at line 58 of file AP_RPM.h.
Referenced by AP_RPM_PX4_PWM::AP_RPM_PX4_PWM(), AP_RPM_Pin::update(), and AP_RPM_PX4_PWM::update().
AP_Int8 AP_RPM::_pin[RPM_MAX_INSTANCES] |
Definition at line 55 of file AP_RPM.h.
Referenced by AP_RPM_Backend::get_pin().
AP_Float AP_RPM::_quality_min[RPM_MAX_INSTANCES] |
AP_Float AP_RPM::_scaling[RPM_MAX_INSTANCES] |
Definition at line 56 of file AP_RPM.h.
Referenced by AP_RPM_Pin::update(), AP_RPM_SITL::update(), and AP_RPM_PX4_PWM::update().
AP_Int8 AP_RPM::_type[RPM_MAX_INSTANCES] |
|
private |
|
private |
|
private |
|
static |