APM:Libraries
|
#include <AnalogIn.h>
Public Member Functions | |
PX4AnalogSource (int16_t pin, float initial_value) | |
float | read_average () |
float | read_latest () |
void | set_pin (uint8_t p) |
float | voltage_average () |
float | voltage_latest () |
float | voltage_average_ratiometric () |
void | set_stop_pin (uint8_t p) |
void | set_settle_time (uint16_t settle_time_ms) |
Private Member Functions | |
void | _add_value (float v, float vcc5V) |
float | _pin_scaler () |
Private Attributes | |
int16_t | _pin |
int16_t | _stop_pin |
uint16_t | _settle_time_ms |
float | _value |
float | _value_ratiometric |
float | _latest_value |
uint8_t | _sum_count |
float | _sum_value |
float | _sum_ratiometric |
Friends | |
class | PX4::PX4AnalogIn |
Definition at line 20 of file AnalogIn.h.
PX4AnalogSource::PX4AnalogSource | ( | int16_t | pin, |
float | initial_value | ||
) |
Definition at line 71 of file AnalogIn.cpp.
|
private |
Definition at line 175 of file AnalogIn.cpp.
Referenced by PX4::PX4AnalogIn::_timer_tick().
|
private |
Definition at line 117 of file AnalogIn.cpp.
Referenced by voltage_average(), voltage_average_ratiometric(), and voltage_latest().
|
virtual |
Implements AP_HAL::AnalogSource.
Definition at line 94 of file AnalogIn.cpp.
Referenced by voltage_average().
|
virtual |
Implements AP_HAL::AnalogSource.
Definition at line 109 of file AnalogIn.cpp.
Referenced by voltage_latest().
|
virtual |
Implements AP_HAL::AnalogSource.
Definition at line 156 of file AnalogIn.cpp.
|
inlinevirtual |
Implements AP_HAL::AnalogSource.
Definition at line 33 of file AnalogIn.h.
|
virtual |
Implements AP_HAL::AnalogSource.
Definition at line 89 of file AnalogIn.cpp.
|
virtual |
Implements AP_HAL::AnalogSource.
Definition at line 133 of file AnalogIn.cpp.
Referenced by voltage_average_ratiometric().
|
virtual |
Implements AP_HAL::AnalogSource.
Definition at line 142 of file AnalogIn.cpp.
|
virtual |
Implements AP_HAL::AnalogSource.
Definition at line 151 of file AnalogIn.cpp.
|
friend |
Definition at line 22 of file AnalogIn.h.
|
private |
Definition at line 44 of file AnalogIn.h.
Referenced by _add_value(), read_latest(), and set_pin().
|
private |
Definition at line 37 of file AnalogIn.h.
Referenced by _pin_scaler(), PX4::PX4AnalogIn::_timer_tick(), PX4AnalogSource(), and set_pin().
|
private |
Definition at line 39 of file AnalogIn.h.
Referenced by PX4::PX4AnalogIn::_timer_tick(), and set_settle_time().
|
private |
Definition at line 38 of file AnalogIn.h.
Referenced by PX4::PX4AnalogIn::_timer_tick(), PX4::PX4AnalogIn::next_stop_pin(), and set_stop_pin().
|
private |
Definition at line 45 of file AnalogIn.h.
Referenced by _add_value(), read_average(), and set_pin().
|
private |
Definition at line 47 of file AnalogIn.h.
Referenced by _add_value(), read_average(), and set_pin().
|
private |
Definition at line 46 of file AnalogIn.h.
Referenced by _add_value(), read_average(), and set_pin().
|
private |
Definition at line 42 of file AnalogIn.h.
Referenced by read_average(), and set_pin().
|
private |
Definition at line 43 of file AnalogIn.h.
Referenced by read_average(), set_pin(), and voltage_average_ratiometric().