Copter: init G_Dt with MAIN_LOOP_SECONDS definition

This commit is contained in:
Randy Mackay 2016-02-17 19:59:31 +09:00
parent a9cda8b384
commit 5090e6f4fb

View File

@ -72,7 +72,7 @@ Copter::Copter(void) :
yaw_look_ahead_bearing(0.0f), yaw_look_ahead_bearing(0.0f),
condition_value(0), condition_value(0),
condition_start(0), condition_start(0),
G_Dt(0.0025f), G_Dt(MAIN_LOOP_SECONDS),
inertial_nav(ahrs), inertial_nav(ahrs),
attitude_control(ahrs, aparm, motors, MAIN_LOOP_SECONDS), attitude_control(ahrs, aparm, motors, MAIN_LOOP_SECONDS),
pos_control(ahrs, inertial_nav, motors, attitude_control, pos_control(ahrs, inertial_nav, motors, attitude_control,