From fb7102a93374ef770293ae2cafa1c10b60c0da88 Mon Sep 17 00:00:00 2001 From: emanuel Date: Wed, 19 Oct 2022 10:43:56 +0100 Subject: [PATCH] VCM: increase safe range to 2s --- src/vcm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/vcm.c b/src/vcm.c index 9100d84..e080912 100644 --- a/src/vcm.c +++ b/src/vcm.c @@ -26,8 +26,8 @@ static int are_vehicles_intersecting( A2[0] = tA[a+1].latitude; A2[1] = tA[a+1].longitude; for (int b = 0; b < tB_len-1; ++b) { - if (tA[a].timestamp > tB[b].timestamp + 1000 || - tA[a].timestamp < tB[b].timestamp - 1000) { + if (tA[a].timestamp > tB[b].timestamp + 2000 || + tA[a].timestamp < tB[b].timestamp - 2000) { continue; }