AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Caterpillar hydraulic quick couplers power a wide range of attachments for use in many industries such as construction, landscaping, forestry, waste, mining and agricultural. yaw = %f", degrees(attitude.roll), degrees(attitude.pitch), degrees(attitude.Caterpillar is known worldwide for their heavy duty, reliable and versatile skid steer machin es. The remaining code #define degrees(x) (180.0 * x / M_PI)ĬMDeviceMotion *motion = viceMotion Īttitude = %f. viceMotionUpdateInterval = 1.0/60.0 //60 Hz So, if I am using the default attitude reference, the iPhone considers that the face up resting position is the default and the blue axis (yaw) will always be the vertical one. The only explanation I have for this is, the gyroscope axis don't rotate when you rotate the device. If I am rotating the device anti-clockwise (positive) on X, I should see an increase on the pitch angle, not yaw. If the iPhone is resting on its left side on the table, the green axis (pitch) is vertical. On the iPhone, that would mean a pitch rotation, but as I rotate, pitch remains constant and YAW is the one that changes!!!!! Then I start to rotate the iPhone according to the table's vertical axis in an anti-clockwise fashion, that would be on the positive direction according to the table vertical axis. When I put the iphone on a table resting on its left side (home button on the right), perfectly at 90 degrees in relation to the table plane, these are the values I read for roll, pitch and yaw: -90, 0, 0. According to the picture below and as far as I know, roll, pitch and yaw correspond to the red, green and blue axis, right? I have a very simple application where I am trying to use the gyroscope thru core motion.Īt this point, for test purposes, I am just grabbing the values of roll, pitch and yaw and printing on screen.
0 Comments
Read More
Leave a Reply. |