09-19-2023, 01:28 AM
(This post was last modified: 09-19-2023, 01:28 AM by pietropicerno.)
Hi Jens,
yes, you got it right! I've actually decided to use the phone's inclination about the y-axis to make things smoother. I created a simple experiment using atan2(ax,az) that outputs the inclination of the phone in degrees in the xz plane. Now, let's say that I want a sound when the inclination goes over 10° and it quits playing the sound when the inclination returns below 10°.
Unfortunately, I didn't really get your advices. Would a "threshold" module be ok rather than using "max" module? I tried to make the "if" module work but without succes. Would you please try to add some control to the attached experiment? Many thanks, Pietro.
feedback inclinometer.phyphox (Size: 2.08 KB / Downloads: 221)
yes, you got it right! I've actually decided to use the phone's inclination about the y-axis to make things smoother. I created a simple experiment using atan2(ax,az) that outputs the inclination of the phone in degrees in the xz plane. Now, let's say that I want a sound when the inclination goes over 10° and it quits playing the sound when the inclination returns below 10°.
Unfortunately, I didn't really get your advices. Would a "threshold" module be ok rather than using "max" module? I tried to make the "if" module work but without succes. Would you please try to add some control to the attached experiment? Many thanks, Pietro.
feedback inclinometer.phyphox (Size: 2.08 KB / Downloads: 221)