@alexth https://duet3d.dozuki.com/Wiki/Pressure_advance
or
https://forum.duet3d.com/topic/25764/pressure-advance-tuning-with-conditional-g-code?_=1635840827943