- #1
hoddy
- 4
- 0
Hi
I have collected data from a IMU on a boat. Currently I am using the angular velocity measurement vector ##\omega^b_{imu} = \begin{pmatrix} p\\q\\r\end{pmatrix} ## for use in kalman filter, where superscript ##b## is BODY frame. The BODY frame is given be x-axis pointing forward, y-axis pointing starboard (right), and z-axis downwards. But I noticed that the IMU's orientation is not aligned with the BODY frame. The IMU axis is pointing: x forward, y left, and z upwards. The measurement vector is therefore denoted ##\omega^m_{imu} = \begin{pmatrix} p\\q\\r\end{pmatrix} ##, instead of the above, where ##m## is measurement frame. Can I then rotate 180 degrees about x-axis as follows:
##\omega^b_{imu} = R_x(\phi)\omega^m_{imu} = \begin{pmatrix}1 & 0 & 0\\0 & cos(\phi) & -sin(\phi)\\0 & sin(\phi) & cos(\phi)\end{pmatrix}\begin{pmatrix}p\\q\\r\end{pmatrix} = = \begin{pmatrix}1 & 0 & 0\\0 & -1 & 0\\0 & 0 & -1\end{pmatrix}\begin{pmatrix}p\\q\\r\end{pmatrix}##
to obtain the correct measurement data?
Thanks for any replies!
I have collected data from a IMU on a boat. Currently I am using the angular velocity measurement vector ##\omega^b_{imu} = \begin{pmatrix} p\\q\\r\end{pmatrix} ## for use in kalman filter, where superscript ##b## is BODY frame. The BODY frame is given be x-axis pointing forward, y-axis pointing starboard (right), and z-axis downwards. But I noticed that the IMU's orientation is not aligned with the BODY frame. The IMU axis is pointing: x forward, y left, and z upwards. The measurement vector is therefore denoted ##\omega^m_{imu} = \begin{pmatrix} p\\q\\r\end{pmatrix} ##, instead of the above, where ##m## is measurement frame. Can I then rotate 180 degrees about x-axis as follows:
##\omega^b_{imu} = R_x(\phi)\omega^m_{imu} = \begin{pmatrix}1 & 0 & 0\\0 & cos(\phi) & -sin(\phi)\\0 & sin(\phi) & cos(\phi)\end{pmatrix}\begin{pmatrix}p\\q\\r\end{pmatrix} = = \begin{pmatrix}1 & 0 & 0\\0 & -1 & 0\\0 & 0 & -1\end{pmatrix}\begin{pmatrix}p\\q\\r\end{pmatrix}##
to obtain the correct measurement data?
Thanks for any replies!