APM:Libraries
|
#include <AnalogIn.h>
Public Member Functions | |
VRBRAINAnalogSource (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 | VRBRAIN::VRBRAINAnalogIn |
Definition at line 21 of file AnalogIn.h.
VRBRAINAnalogSource::VRBRAINAnalogSource | ( | int16_t | pin, |
float | initial_value | ||
) |
Definition at line 60 of file AnalogIn.cpp.
|
private |
Definition at line 164 of file AnalogIn.cpp.
Referenced by VRBRAIN::VRBRAINAnalogIn::_timer_tick().
|
private |
Definition at line 106 of file AnalogIn.cpp.
Referenced by voltage_average(), voltage_average_ratiometric(), and voltage_latest().
|
virtual |
Implements AP_HAL::AnalogSource.
Definition at line 83 of file AnalogIn.cpp.
Referenced by voltage_average().
|
virtual |
Implements AP_HAL::AnalogSource.
Definition at line 98 of file AnalogIn.cpp.
Referenced by voltage_latest().
|
virtual |
Implements AP_HAL::AnalogSource.
Definition at line 145 of file AnalogIn.cpp.
|
inlinevirtual |
Implements AP_HAL::AnalogSource.
Definition at line 34 of file AnalogIn.h.
|
virtual |
Implements AP_HAL::AnalogSource.
Definition at line 78 of file AnalogIn.cpp.
|
virtual |
Implements AP_HAL::AnalogSource.
Definition at line 122 of file AnalogIn.cpp.
Referenced by voltage_average_ratiometric().
|
virtual |
Implements AP_HAL::AnalogSource.
Definition at line 131 of file AnalogIn.cpp.
|
virtual |
Implements AP_HAL::AnalogSource.
Definition at line 140 of file AnalogIn.cpp.
|
friend |
Definition at line 23 of file AnalogIn.h.
|
private |
Definition at line 45 of file AnalogIn.h.
Referenced by _add_value(), read_latest(), and set_pin().
|
private |
Definition at line 38 of file AnalogIn.h.
Referenced by _pin_scaler(), VRBRAIN::VRBRAINAnalogIn::_timer_tick(), and set_pin().
|
private |
Definition at line 40 of file AnalogIn.h.
Referenced by VRBRAIN::VRBRAINAnalogIn::_timer_tick(), and set_settle_time().
|
private |
Definition at line 39 of file AnalogIn.h.
Referenced by VRBRAIN::VRBRAINAnalogIn::_timer_tick(), VRBRAIN::VRBRAINAnalogIn::next_stop_pin(), and set_stop_pin().
|
private |
Definition at line 46 of file AnalogIn.h.
Referenced by _add_value(), read_average(), and set_pin().
|
private |
Definition at line 48 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 43 of file AnalogIn.h.
Referenced by read_average(), and set_pin().
|
private |
Definition at line 44 of file AnalogIn.h.
Referenced by read_average(), set_pin(), and voltage_average_ratiometric().