mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-11 02:18:29 -04:00
SITL: add accessor for battery voltage
This commit is contained in:
parent
6c473a80c2
commit
170062804f
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user