Quote:
Originally Posted by marccenter
Can I get some help in determining why the gyro heading is always ZERO but the gyro counts change when I swing the device? I have captured screen shots into powerpoint and will zip them, then attach to this message.
|
It sounds like the sensor is recording the change (derivative) and not the elapsed angle (integral).
If you want to get the elapsed angle, you can just add/subtract the difference every time through the loop to keep track of the absolute angle. You may have to do some simple calculations to make the sensor value you are getting back correspond directly with degrees rotated.