arduino-libraries / MadgwickAHRS

Arduino implementation of the MadgwickAHRS algorithm
465 stars 196 forks source link

Issues on how to use ur code to process data from cell phone's inner sensors #26

Open dtneverdie opened 3 years ago

dtneverdie commented 3 years ago

I m now working on heading estimation and trying to use madgwick algo in ur project processing cell phone's acceleration ,magnetometer and gyroscope data to get heading information. I tried inputing raw data into update() function and the result of ypr angle seems pretty strange. I m not sure if i use the ax = convertRawAcceleration(aix); ay = convertRawAcceleration(aiy); az = convertRawAcceleration(aiz); gx = convertRawGyro(gix); gy = convertRawGyro(giy); gz = convertRawGyro(giz); code after getting my raw data, and i also wanna know how to transfer the ypr angle result to pedestrian‘s heading.

dtneverdie commented 3 years ago

1609847716985 The pic behind shows the trajectory,74 and 175 means the orientation i measured at the start point of each straight line 20210105 This one shows the graph from the trajectory while x axis stands for timestamp and y axis stands for the result of getYaw(),which seems weird.