9 lines
171 B
C++
9 lines
171 B
C++
|
|
#include "AP_AnalogSource_ADC.h"
|
|
|
|
float AP_ADC_AnalogSource::read() {
|
|
float fullscale = _adc->Ch(_ch);
|
|
float scaled = _prescale * fullscale;
|
|
return scaled;
|
|
}
|