How should we handle the 'Final Adelay' values?

I don’t use the decawave drivers and so don’t use dwt_setrxantennadelay or dwt_settxantennadelay. I did however have similar functionality.
After calculating the antenna delay using DS TWR over a known distance to a unit with the correct delay value already set I set both the transmit and receive delay to the same calculated value.
While this value needs to be set on start up each time you don’t then need to allow for it during normal operation. The firmware stores it in the eeprom for each unit and automatically configures the value as part of the startup code.

My system also allows for an on site fine tuning delay calibration. But rather than update all the anchors that is then applied by the tag adjusting the measured ranges before calculating a position.

Due to the board layout and antenna type used my antenna delay is generally in the 55 meter region (I always think of it in terms of distance effect rather than time, 55 meters has more intuitive meaning than 11000 clock ticks) so that number is hard coded into the firmware, I only ever store the difference from that for a given unit. This means that even with the calibration value set to 0 the numbers are roughly correct.

1 Like