Skip to content

Commit

Permalink
#315 Corrected allowed clock drift
Browse files Browse the repository at this point in the history
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
  • Loading branch information
krichardsson committed May 24, 2018
1 parent 7326432 commit 18104df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/deck/drivers/src/lpsTdoaTagEngine.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 18104df

Please sign in to comment.