From 4872bd9a2bea70074973ee0ab34b69b155802a31 Mon Sep 17 00:00:00 2001 From: Kristoffer Richardsson Date: Mon, 28 May 2018 08:20:32 +0200 Subject: [PATCH] #27 Increased accepted clock frequency range --- src/uwb_tdoa_anchor3.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/uwb_tdoa_anchor3.c b/src/uwb_tdoa_anchor3.c index 0b26abf..2401290 100644 --- a/src/uwb_tdoa_anchor3.c +++ b/src/uwb_tdoa_anchor3.c @@ -93,8 +93,8 @@ The implementation must handle #define MIN_TOF ANTENNA_DELAY #define MAX_CLOCK_DEVIATION_SPEC 10e-6 -#define CLOCK_CORRECTION_SPEC_MIN (1.0d - MAX_CLOCK_DEVIATION_SPEC) -#define CLOCK_CORRECTION_SPEC_MAX (1.0d + MAX_CLOCK_DEVIATION_SPEC) +#define CLOCK_CORRECTION_SPEC_MIN (1.0d - MAX_CLOCK_DEVIATION_SPEC * 2) +#define CLOCK_CORRECTION_SPEC_MAX (1.0d + MAX_CLOCK_DEVIATION_SPEC * 2) #define CLOCK_CORRECTION_ACCEPTED_NOISE 0.03e-6 #define CLOCK_CORRECTION_FILTER 0.1d