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
Showing
- libraries/AP_AnalogSource/AP_AnalogSource_ADC.cpp 3 additions, 3 deletionslibraries/AP_AnalogSource/AP_AnalogSource_ADC.cpp
- libraries/AP_AnalogSource/AP_AnalogSource_ADC.h 1 addition, 1 deletionlibraries/AP_AnalogSource/AP_AnalogSource_ADC.h
- libraries/AP_AnalogSource/AP_AnalogSource_Arduino.cpp 5 additions, 2 deletionslibraries/AP_AnalogSource/AP_AnalogSource_Arduino.cpp
- libraries/AP_AnalogSource/AP_AnalogSource_Arduino.h 5 additions, 2 deletionslibraries/AP_AnalogSource/AP_AnalogSource_Arduino.h
- libraries/AP_AnalogSource/AnalogSource.h 1 addition, 1 deletionlibraries/AP_AnalogSource/AnalogSource.h
Loading
Please register or sign in to comment