SITL: add accessor for battery voltage

This commit is contained in:
Peter Barker 2021-06-08 15:24:39 +10:00 committed by Andrew Tridgell
parent 6c473a80c2
commit 170062804f

View File

@ -149,6 +149,8 @@ public:
void set_precland(SIM_Precland *_precland); void set_precland(SIM_Precland *_precland);
void set_i2c(class I2C *_i2c) { i2c = _i2c; } void set_i2c(class I2C *_i2c) { i2c = _i2c; }
float get_battery_voltage() const { return battery_voltage; }
protected: protected:
SITL *sitl; SITL *sitl;
Location home; Location home;