I am using an IMU which provides absolute orientation of the sensors frame S relative to an earth-fixed frame N in quaternion form,
S
N