Objective C: Accelerometer directions -


i'm trying detect shaking motion in , down direction this:

          / \            | ________________________________ |                              | |                              | |                              | |o                             | |                              | |                              | |______________________________|             |           \ /  -(void) bounce:(uiacceleration *)acceleration  {     nslog(@"%f",acceleration.x); } 

i thinking it's x axis responds if turn parallel floor. how detect this?

i don't have direct answer you, great experiment make quick app spews numbers out onto screen or file (or both). shake way want detect, , see set has greatest change.


Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -