Display only pitch angle

Hi,

I'm very new to coding in this space so please go easy on me if my question has a very simple answer.

I'm looking to restrict the direction in which my sensor reads an angle. By this, I mean that I am currently measuring pitch and roll of the sensor by extracting obj.r from the Euler Angle data (as in Sample iOS App). For my application, however, I really only want to account for pitch. Therefore as the device rolls sideways I do not want my data output to change. Is there a way for me to make it so that only motion forward and backward is accounted for?

Thank you in advance for your help.

Comments

  • You'll probably want to set an initial reference point then compute the Euler angles as offsets from that reference point.

Sign In or Register to comment.