Andrew Tridgell
f28946defb
AP_ADC_AnalogSource: avoid some float conversion warnings
11 years ago
Andrew Tridgell
457ca0b57d
AP_ADC_AnalogSource: fixed APM1 build
12 years ago
Andrew Tridgell
bf1944a36d
AP_ADC_AnalogSource: fixed reference scaling for APM1 Ch6 ADC
...
it is not referenced to Vcc
12 years ago
Andrew Tridgell
ce46f2f871
AP_ADC: fixed scaling factor for voltage on APM1 Ch6 ADC
12 years ago
Andrew Tridgell
3e2cb92c71
AP_ADC_AnalogSource: added voltage_average() interface
12 years ago
Pat Hickey
8f99a12374
AP_ADC_AnalogSource: fix for new AnalogIn interface
12 years ago
Pat Hickey
a6d80af9ed
AP_ADC_AnalogSource: obey changes to AnalogSource interface
12 years ago
Pat Hickey
ce8dc5fd5c
AP_AnalogSource: obsoleted by AP_HAL. Renamed to AP_ADC_AnalogSource.
12 years ago
Andrew Tridgell
10e546eebd
AnalogSource: return a float from read() method
...
this gives the full resolution when using the ADC backend. It also
adds scaling for the Arduino backend
13 years ago
Pat Hickey
0c0a1b1dcc
purple: Added AnalogSource library
...
this library abstracts out the way of getting an analog value. If the
ADC library is being used then it calls the ADC Ch() method, otherwise
it calls analogRead()
13 years ago