You need to apply the transformation from the sensor frame of reference to the toy frame of reference.
https://www.euclideanspace.com/maths/algebra/realNormedAlgebra/quaternions/transforms/index.htm
You need to apply the transformation from the sensor frame of reference to the toy frame of reference.
https://www.euclideanspace.com/maths/algebra/realNormedAlgebra/quaternions/transforms/index.htm