sparkfun / SparkFun_ICM-20948_ArduinoLibrary

Arduino support for ICM_20948 w/ portable C backbone
Other
160 stars 69 forks source link

How to find Drift Angle? #123

Closed fenilGhoghari closed 8 months ago

fenilGhoghari commented 1 year ago

Hi,

I am using ICM20498 with Sparfun library and now i am able to get appropriate coordinators of Accelerometer, Gyroscope and Magnetometer one Level of calibration is okay and it's working.

Now i have tried roll,Pitch and Yaw example to find Drift Angle for my skateboard but i am not able to found.

So my issue with Drift Angle can you please give some idea of formula to drive Drift Angle using this all parameter.

I have try with the Vector Formation to drive Angle but i not able to drive this i juse able to drive only heading angle so,

Please suggest me some formula or tutorial for this.

Thanks

fenilGhoghari commented 1 year ago

Hi, @PaulZC can you please help me to find Drift Angle?

PaulZC commented 1 year ago

Hi Fenil (@fenilGhoghari ),

I am sorry. I do not understand what "drift angle" is, for a skateboard. Can you send me a better description?

Best wishes, Paul

fenilGhoghari commented 1 year ago

Hello pailZC (@PaulZC )

Sorry for the short description actually i have one skateboard and i have placed ICM20948 sensor those provide me raw data like Magnetometer, Gyroscope and Accelerate of the skateboard.

So when my skateboard running in state forward at a time my drift should be zero or when my skateboard change the running direction at a time my drift should be calculated for better drift understand here i am attaching one article.

Drift Angle Article

Also you can consider Electric Scooter drift

Video Refrence

Here in video skateboard is moving another direction and change the instead direction so i want to maser this kind of the Drift.

Thanks a lot!!!

Regards, Fenil

PaulZC commented 1 year ago

Hi Fenil,

If I understand correctly, the drift angle is the difference between the direction the skateboard is pointing and the direction it is travelling in (its heading)?

I do not think you can measure that with an IMU. I think you will need to combine the IMU with GNSS (GPS)? Or use a dead-reckoning GNSS receiver - which includes an IMU? Or use GNSS Relative Positioning (Moving Base)? See https://content.u-blox.com/sites/default/files/ZED-F9P-MovingBase_AppNote_%28UBX-19009093%29.pdf

Best wishes, Paul

PaulZC commented 8 months ago

I think this issue is stale. Closing... Please re-open if you need more help with this.