From 3925394e78b7af2d7dfa5a0d3de80e2db6543075 Mon Sep 17 00:00:00 2001 From: Atsushi Watanabe Date: Tue, 23 Apr 2024 21:35:22 +0900 Subject: [PATCH] Output detailed log on time jump exit (#207) --- src/control_vehicle.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/control_vehicle.c b/src/control_vehicle.c index cc0c2d1..cc26c78 100644 --- a/src/control_vehicle.c +++ b/src/control_vehicle.c @@ -562,7 +562,10 @@ void control_loop(void) last_time = now; if (dt_error < -p(YP_PARAM_MAX_TIME_JUMP_NEG, 0) || p(YP_PARAM_MAX_TIME_JUMP, 0) < dt_error) { - yprintf(OUTPUT_LV_ERROR, "Detected system time jump: %0.5fs\n", dt_error); + yprintf( + OUTPUT_LV_ERROR, + "Detected system time jump: %0.5fs, monotonic time diff: %0.5fs, system time diff: %0.5fs\n", + dt_error, expected_dt, dt); static int status = EXIT_FAILURE; pthread_exit(&status); }