Browse Source

Plane: pass log-performance-bit at init time rather than update time

mission-4.1.18
Peter Barker 7 years ago committed by Andrew Tridgell
parent
commit
4586b892f2
  1. 7
      ArduPlane/ArduPlane.cpp

7
ArduPlane/ArduPlane.cpp

@ -107,10 +107,7 @@ void Plane::setup() @@ -107,10 +107,7 @@ void Plane::setup()
init_ardupilot();
// initialise the main loop scheduler
scheduler.init(&scheduler_tasks[0], ARRAY_SIZE(scheduler_tasks));
perf_info.reset(scheduler.get_loop_rate_hz());
perf_info.ignore_this_loop();
scheduler.init(&scheduler_tasks[0], ARRAY_SIZE(scheduler_tasks), MASK_LOG_PM);
}
void Plane::loop()
@ -338,7 +335,7 @@ void Plane::one_second_loop() @@ -338,7 +335,7 @@ void Plane::one_second_loop()
void Plane::log_perf_info()
{
scheduler.update_logging(should_log(MASK_LOG_PM));
scheduler.update_logging();
}
void Plane::compass_save()

Loading…
Cancel
Save