Copter: Set the loop rate of G_dt as a variable.

This commit is contained in:
murata 2018-02-13 23:34:25 +09:00 committed by Andrew Tridgell
parent 8f227201e0
commit 6f20c6a97b
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ void Copter::init_ardupilot()
// time per loop - this gets updated in the main loop() based on
// actual loop rate
G_Dt = 1.0/400;
G_Dt = 1.0 / scheduler.get_loop_rate_hz();
// initialise stats module
g2.stats.init();