Advertisement

Gyro + Accel values into useful values.

Started by January 28, 2019 12:12 AM
10 comments, last by CombatWombat 5 years, 11 months ago

I think you need to break this down a bit before trying to jump into detecting certain motion paths.

Use the gyro and accel data together to form a reliable estimator of orientation and orientation rate of change.  Unfortunately this is non-trivial, because it involves things like Kalman or complementary filtering to combine the data, so I'd have to second Nagle's suggestion of investigating a ready made solution from the drone community.  You might want to look into using an IMU board designed for drones that also give you magnetometer data for 9 DOF.  This can make your orientation estimate better. 

Some of the drone algorithms will likely have position estimation as well, since they typical do things like "return to take-off point" and enforce "no fly zones" (via GPS, though).  Possibly you could plot position estimates over time (essentially the "path") and then check if those points are within some geometry to determine if you are doing "the sweep" motion.  Maybe keep a rolling log of the last 100 positions (or however many) and compare that path to a known path that represents the sweep you want to trigger on.

Sorry if this is kind of "hand wavy" and general.

 

 

This topic is closed to new replies.

Advertisement