SITL: added RPM for heli sim

This commit is contained in:
Andrew Tridgell 2016-08-18 20:56:12 +10:00
parent c87fa13e77
commit 49b82b767f

View File

@ -152,6 +152,9 @@ void Helicopter::update(const struct sitl_input &input)
// air resistance
Vector3f air_resistance = -velocity_air_ef * (GRAVITY_MSS/terminal_velocity);
// simulate rotor speed
rpm1 = thrust * 1300;
// scale thrust to newtons
thrust *= thrust_scale;