![]() |
Gyro Heading always zero, yet operating?
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.
|
Re: Gyro Heading always zero, yet operating?
I had to look up the printTextToGD function call from WPLib.
Quote:
Other things to check: Is your color valid? Is your gyro type set correctly? You have the 300 deg/sec gyro? What affect does the wait(200) have on your program? I always prefer to wrap my print statements in a if block for what you are trying to do: if (time%$200 == 0) { printTextToGD..... } That way the program can continue to process gyro data, although WPLib documentation implies that sensor data is still processed during the wait. |
Re: Gyro Heading always zero, yet operating?
Quote:
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. |
Re: Gyro Heading always zero, yet operating?
Hey guys, I finally got the gyro to work. It help's if you actually Start the thing.
Thread can be deleted, if desired by moderator. Thanks for CD help. |
| All times are GMT -5. The time now is 23:17. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi