Quote:
Originally Posted by samfruth
We are trying to read the "pitch" value that is build into the YPRHfH vi in autonomous but have been unsuccessful so far. We are using it to find when the bot has driven over a defense or has gotten on the batter. We're able to read "yaw" just fine. We enable the sensor in begin as YPRH. Any insight?
|
Can you please clarify what "have been unsuccessful so far" means?
If just starting out using pitch, it's good to review the terminology. As discussed in the
navX-MXP "Terminology" page, pitch is defined as rotation about the "X" axis.
Then, it's good to review the different axes to make sure it's clear which is the X axis and what it means to rotate around that axis. Take a look closely at the navX-MXP; there's indication of the X axis there. As rotation about this axis occurs, the pitch angle will change.
Depending upon how your navX-MXP/RoboRIO are mounted, the pitch angle could be measuring different things.