mirror of https://github.com/ArduPilot/ardupilot
SITL: Calculate current in SIM_Plane.
This commit is contained in:
parent
99e95666e8
commit
c9362fbb70
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue