Copter: set pos_control.set_dt

This commit is contained in:
Randy Mackay 2013-12-29 22:09:42 +09:00 committed by Andrew Tridgell
parent faf1e99f1a
commit 2c03a3a3c6

View File

@ -232,8 +232,9 @@ static void init_ardupilot()
if(g.compass_enabled)
init_compass();
// initialise attitude controller
// initialise attitude and position controllers
attitude_control.set_dt(MAIN_LOOP_SECONDS);
pos_control.set_dt(MAIN_LOOP_SECONDS);
// init the optical flow sensor
if(g.optflow_enabled) {