From f56a80cd801b2a75f527cef6eb076775e879cba1 Mon Sep 17 00:00:00 2001 From: Lucas De Marchi Date: Thu, 18 Feb 2016 01:08:18 -0200 Subject: [PATCH] AP_HAL_Linux: AnalogIn_IIO: return fixed board voltage Return board voltage as 5V so we don't fail prearm checks. --- libraries/AP_HAL_Linux/AnalogIn_IIO.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libraries/AP_HAL_Linux/AnalogIn_IIO.h b/libraries/AP_HAL_Linux/AnalogIn_IIO.h index 8c9880ec72..21907d2edb 100644 --- a/libraries/AP_HAL_Linux/AnalogIn_IIO.h +++ b/libraries/AP_HAL_Linux/AnalogIn_IIO.h @@ -53,6 +53,5 @@ public: AP_HAL::AnalogSource* channel(int16_t n); // we don't yet know how to get the board voltage - float board_voltage(void) { return 0.0f; } - + float board_voltage(void) { return 5.0f; } };