Skip to content
Snippets Groups Projects
Commit aff98e34 authored by Robert Lefebvre's avatar Robert Lefebvre Committed by Randy Mackay
Browse files

TradHeli: Force recalc scalers after setting main loop time in MotorsHeli so...

TradHeli: Force recalc scalers after setting main loop time in MotorsHeli so that ramp scalers are right for 32-bit.
parent 92bdf24d
No related branches found
No related tags found
No related merge requests found
......@@ -18,6 +18,8 @@ static void heli_init()
{
attitude_control.update_feedforward_filter_rates(MAIN_LOOP_SECONDS);
motors.set_dt(MAIN_LOOP_SECONDS);
// force recalculation of RSC ramp rates after setting _dt
motors.recalc_scalers();
}
// get_pilot_desired_collective - converts pilot input (from 0 ~ 1000) to a value that can be fed into the g.rc_3.servo_out function
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment