Browse Source

AP_HAL_Linux: AnalogIn_IIO: return fixed board voltage

Return board voltage as 5V so we don't fail prearm checks.
mission-4.1.18
Lucas De Marchi 9 years ago
parent
commit
f56a80cd80
  1. 3
      libraries/AP_HAL_Linux/AnalogIn_IIO.h

3
libraries/AP_HAL_Linux/AnalogIn_IIO.h

@ -53,6 +53,5 @@ public:
AP_HAL::AnalogSource* channel(int16_t n); AP_HAL::AnalogSource* channel(int16_t n);
// we don't yet know how to get the board voltage // 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; }
}; };

Loading…
Cancel
Save