From 7049934a693fc95e1c4b87c5264e8c9fc3e2fc15 Mon Sep 17 00:00:00 2001 From: Pat Hickey Date: Tue, 4 Dec 2012 14:50:19 -0800 Subject: [PATCH] AP_HAL: AnalogIn channel gets scale, source gets set_pin --- libraries/AP_HAL/AnalogIn.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libraries/AP_HAL/AnalogIn.h b/libraries/AP_HAL/AnalogIn.h index 40028815fa..31940599be 100644 --- a/libraries/AP_HAL/AnalogIn.h +++ b/libraries/AP_HAL/AnalogIn.h @@ -7,12 +7,14 @@ class AP_HAL::AnalogSource { public: virtual float read() = 0; + virtual void set_pin(uint8_t p) = 0; }; class AP_HAL::AnalogIn { public: virtual void init(void* implspecific) = 0; virtual AP_HAL::AnalogSource* channel(int n) = 0; + virtual AP_HAL::AnalogSource* channel(int n, float scale) = 0; }; #define ANALOG_INPUT_BOARD_VCC 254