Measuring Vertical Acceleration

Hi,

I’m making a (hopefully) simple app, where I can measure how high/low I have thrown/dropped my phone into the air/on the ground. Now here comes my question; how can the app measure that all? :stuck_out_tongue:  Like, is there code for it to measure it? (in Meters, for example 6,4 meters.)

Thanks in Advance.

Hi @politieguy,

The only way I can think of attempting this is to check the “altitude” of the device using the GPS hardware. However, I doubt it will be very accurate, because it won’t likely return the altitude a speed/pace fast enough to measure with any real accuracy.

https://docs.coronalabs.com/api/event/location/altitude.html

Also, I would caution making an app which actually encourages people to drop their phones on the ground, or throw them up in the air. :slight_smile:

Best regards,

Brent

Hi @politieguy,

The only way I can think of attempting this is to check the “altitude” of the device using the GPS hardware. However, I doubt it will be very accurate, because it won’t likely return the altitude a speed/pace fast enough to measure with any real accuracy.

https://docs.coronalabs.com/api/event/location/altitude.html

Also, I would caution making an app which actually encourages people to drop their phones on the ground, or throw them up in the air. :slight_smile:

Best regards,

Brent