From 170062804f5aab573144814646fa8acc26aa3176 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Tue, 8 Jun 2021 15:24:39 +1000 Subject: [PATCH] SITL: add accessor for battery voltage --- libraries/SITL/SIM_Aircraft.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libraries/SITL/SIM_Aircraft.h b/libraries/SITL/SIM_Aircraft.h index eb88f5add6..b31bda0e27 100644 --- a/libraries/SITL/SIM_Aircraft.h +++ b/libraries/SITL/SIM_Aircraft.h @@ -149,6 +149,8 @@ public: void set_precland(SIM_Precland *_precland); void set_i2c(class I2C *_i2c) { i2c = _i2c; } + float get_battery_voltage() const { return battery_voltage; } + protected: SITL *sitl; Location home;