mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-08 10:50:19 +08:00
Reset performance counters on arming to allow better resolution during flight
This commit is contained in:
@@ -628,6 +628,9 @@ void sdlog2_start_log()
|
||||
perf_print_all(perf_fd);
|
||||
close(perf_fd);
|
||||
|
||||
/* reset performance counters to get in-flight min and max values in post flight log */
|
||||
perf_reset_all();
|
||||
|
||||
logging_enabled = true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user