If you are using sim racing studio for your motion platform, you can use their virtual tracker. More info:
https://www.simracingstudio.com/post/motion-compensation
https://docs.google.com/document/d/1s6fO0yozde4gNjl38UmMG8_8KgbZP053V8UyxU1x2jg/edit