From 18104df81913d7f9359c4d5768123292864e24b2 Mon Sep 17 00:00:00 2001 From: Kristoffer Richardsson Date: Thu, 24 May 2018 07:18:48 +0200 Subject: [PATCH] #315 Corrected allowed clock drift Worst case is that one anchor is +MAX_CLOCK_DEVIATION_SPEC off while another is -MAX_CLOCK_DEVIATION_SPEC off. Total acceptable diff is thus 2 * MAX_CLOCK_DEVIATION_SPEC --- src/deck/drivers/src/lpsTdoaTagEngine.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/deck/drivers/src/lpsTdoaTagEngine.c b/src/deck/drivers/src/lpsTdoaTagEngine.c index 248dc18182..486335f3d8 100644 --- a/src/deck/drivers/src/lpsTdoaTagEngine.c +++ b/src/deck/drivers/src/lpsTdoaTagEngine.c @@ -67,8 +67,8 @@ The implementation must handle #define ANCHOR_POSITION_VALIDITY_PERIOD M2T(2 * 1000); #define MAX_CLOCK_DEVIATION_SPEC 10e-6 -#define CLOCK_CORRECTION_SPEC_MIN (1.0 - MAX_CLOCK_DEVIATION_SPEC * 1.5) -#define CLOCK_CORRECTION_SPEC_MAX (1.0 + MAX_CLOCK_DEVIATION_SPEC * 1.5) +#define CLOCK_CORRECTION_SPEC_MIN (1.0 - MAX_CLOCK_DEVIATION_SPEC * 2) +#define CLOCK_CORRECTION_SPEC_MAX (1.0 + MAX_CLOCK_DEVIATION_SPEC * 2) #define CLOCK_CORRECTION_ACCEPTED_NOISE 0.03e-6 #define CLOCK_CORRECTION_FILTER 0.1