I checked $RAT_MOT_AX, it is correct.
The program I posted are calculated points. It is the output of a post-processor.
I read something on the forum about slerp. Could it have something to do with that?
I attached an example video of what I want to accomplish.