01-28-2022 09:35 AM
Bob_Schor thanks for your answer it was an instructive answer. I think I understood what the Gyroscope, Accelerometer and Magnetometer do, although not much. But I still have a problem. I am reading the 3 Axis information of the Accelerometer and Gyroscop, but I cannot read the information of the magnetometer and I almost never used I2C communication. Currently I am trying to solve the Shared code and I2C communication.
Another problem is pitch, yaw, roll calculation.
I think the pitch and roll can be calculated from the 3 axis information of the Accelerometer. I don't know how accurately it can work.
For yaw calculation, I think it is necessary to use pitch, roll and magnotemeter 3 axis information.
I'm just thinking and I have no idea how to do this on labview.
01-28-2022 04:02 PM
The mathematics of 3-D Geometry can be "challenging", as there are multiple "conventions". But here is a common one that should get you started:
Bob Schor
01-29-2022 12:26 AM
Thanks for your answer.I did some research on the XYZ axis information of MPU. I think I understood a little bit. I cannot read the magnetometer information at the moment. How can I read this? Only accelerometer and gyroscope outputs can be read in the shared code.I am using the MPU-9250 product.
01-29-2022 08:54 AM - edited 01-29-2022 09:18 AM
I think it would be better if I opened a new topic, this topic is both old and seems like I will go out of the topic.New topic