xioTechnologies / Gait-Tracking

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Acceleration computation

ricber opened this issue · comments

Hi, can you exaplain why you multiply the earth acceleration by the gravitational acceleration (9.81)?

acceleration[index] = 9.81 * ahrs.earth_acceleration # convert g to m/s/s

To convert from g to m/s/s, as stated in the comment.

Yes, of course, I read the comment. But what does it mean to convert g to m/s/s? g is already in m/s/s and what does it mean to multiply g by the earth acceleration you computed?

"g is already in m/s/s" is like saying miles is already in kilometres. The units of ahrs.earth_acceleration are g. This is converted to m/s/s so that velocity will be in m/s, and position will be in m.

I see, thank you!

hi,how the gyroscope in used in acceleration computation?