Skip to content

Commit

Permalink
Output detailed log on time jump exit (#207)
Browse files Browse the repository at this point in the history
  • Loading branch information
at-wat authored Apr 23, 2024
1 parent 15787f3 commit 3925394
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/control_vehicle.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 3925394

Please sign in to comment.