Decawave / mynewt-dw1000-core

[DEPRECATED] Use https://github.com/Decawave/uwb-core for new designs.
Apache License 2.0
57 stars 34 forks source link

About the skew calculation in rng.c #13

Closed ftianf closed 5 years ago

ftianf commented 5 years ago

In rng.c there are two ways to calculate the skew (https://github.com/Decawave/mynewt-dw1000-core/blob/master/lib/rng/src/rng.c#L648-L653) , if WCS is enabled then skew calculation is based on prediction from timescale lib, otherwise it's based on instantaneous register value. Is the timescale one more accurate than the register one?

ncasaril commented 5 years ago

The WCS is more accurate and the register value (carrier integrator) isn't available when using double buffered rx.