Hey,
range bias correction was implemented by simple Lagrange interpolation from the points taken from Decawave datasheet charts: range bias error and rx-power non linearity. It gave me suficient correction for my usecase. However, the range bias error compensation was based on rx power measurement from just last one message of SDS-TWR, so there is a place for further improvement
Hope I helped,
Bartosz Kawłatow