Antenna Calibration - Reference Device Generation

Does anyone have sample code for the TWR Antenna Delay Calibration Reference Device Generation algorithm which is described in APS014 Application Note: Antenna Delay Calibration of DW1000-based Products and Systems.? My intention is to calibrate the antenna delay for multiple DWM1001 dev boards.