mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-29 03:23:35 +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);
|
perf_print_all(perf_fd);
|
||||||
close(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;
|
logging_enabled = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user