From 9179bce1caf6b1e2b5cf3c2a006b22654155f37a Mon Sep 17 00:00:00 2001 From: Willian Galvani Date: Wed, 5 Apr 2023 07:13:07 -0300 Subject: [PATCH] SITL: initialize battery at 0V --- libraries/SITL/SIM_Aircraft.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/SITL/SIM_Aircraft.h b/libraries/SITL/SIM_Aircraft.h index 87deaec30e..0a4d576893 100644 --- a/libraries/SITL/SIM_Aircraft.h +++ b/libraries/SITL/SIM_Aircraft.h @@ -176,7 +176,7 @@ protected: Vector3f accel_body{0.0f, 0.0f, -GRAVITY_MSS}; // m/s/s NED, body frame float airspeed; // m/s, apparent airspeed float airspeed_pitot; // m/s, apparent airspeed, as seen by fwd pitot tube - float battery_voltage = -1.0f; + float battery_voltage = 0.0f; float battery_current; float local_ground_level; // ground level at local position bool lock_step_scheduled;