Copter: tell PerfInfo the configured loop rate

This commit is contained in:
Peter Barker 2017-11-13 14:15:15 +11:00 committed by Andrew Tridgell
parent ae9d4d514d
commit bf6a2b8bb5

View File

@ -190,7 +190,8 @@ void Copter::setup()
scheduler.init(&scheduler_tasks[0], ARRAY_SIZE(scheduler_tasks));
// setup initial performance counters
perf_info.reset(scheduler.get_loop_rate_hz());
perf_info.set_loop_rate(scheduler.get_loop_rate_hz());
perf_info.reset();
fast_loopTimer = AP_HAL::micros();
}