My Samsung galaxy S2 has an accelerometer and gyroscope. With these 2 sensors I need to determine a man's falling. How do I implement it in the best way?
Relevant data is here: SensorEvent values.
Acceleration coordinates are relative to phone. So if phone is turning while falling than acceleration vector would "rotate". To normalize it you'd need to also use gyroscope data.
You trying to detect speed in some direction. Look at motion equations. You'd basically need to integrate acceleration over time. (You'd already need to have normalized acceleration as described above).
I don't know the context of your "man falling", but you might also look at Free Fall info.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With