diff --git a/libraries/SITL/SIM_Plane.cpp b/libraries/SITL/SIM_Plane.cpp index 92fc5d8213..d25bea6760 100644 --- a/libraries/SITL/SIM_Plane.cpp +++ b/libraries/SITL/SIM_Plane.cpp @@ -308,6 +308,9 @@ void Plane::calculate_forces(const struct sitl_input &input, Vector3f &rot_accel float thrust = throttle; + battery_voltage = sitl->batt_voltage - 0.7*throttle; + battery_current = 50.0f*throttle; + if (ice_engine) { thrust = icengine.update(input); }