From 457ca0b57d76808849526504f9c44388711d8b50 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 12 Sep 2013 13:28:11 +1000 Subject: [PATCH] AP_ADC_AnalogSource: fixed APM1 build --- libraries/AP_ADC_AnalogSource/AP_ADC_AnalogSource.cpp | 1 - libraries/AP_ADC_AnalogSource/AP_ADC_AnalogSource.h | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_ADC_AnalogSource/AP_ADC_AnalogSource.cpp b/libraries/AP_ADC_AnalogSource/AP_ADC_AnalogSource.cpp index 79e4f47517..14a4087370 100644 --- a/libraries/AP_ADC_AnalogSource/AP_ADC_AnalogSource.cpp +++ b/libraries/AP_ADC_AnalogSource/AP_ADC_AnalogSource.cpp @@ -28,7 +28,6 @@ float AP_ADC_AnalogSource::voltage_average() return fullscale * 3.3 * 2.44140625e-4f; } - void AP_ADC_AnalogSource::set_pin(uint8_t machtnichts) { /* it would be an error to call this * but for now we'll leave it a no-op. */ diff --git a/libraries/AP_ADC_AnalogSource/AP_ADC_AnalogSource.h b/libraries/AP_ADC_AnalogSource/AP_ADC_AnalogSource.h index c9ce70f206..941afaad81 100644 --- a/libraries/AP_ADC_AnalogSource/AP_ADC_AnalogSource.h +++ b/libraries/AP_ADC_AnalogSource/AP_ADC_AnalogSource.h @@ -15,6 +15,7 @@ public: float read_latest(void); void set_pin(uint8_t); float voltage_average(); + float voltage_latest() { return voltage_average(); } float voltage_average_ratiometric() { return voltage_average(); } // stop pins not implemented on ADC yet