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