|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
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.
Last edited by marccenter : 06-08-2008 at 09:15. |
|
#2
|
|||
|
|||
|
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. |
|
#3
|
|||||
|
|||||
|
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. |
|
#4
|
||||
|
||||
|
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. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Floating point math zero | flippo | Programming | 3 | 09-02-2007 09:00 |
| Keeping a certain heading using a gyro | DanDon | Programming | 12 | 08-03-2006 14:27 |
| OI and analog: Zero value | Astronouth7303 | Programming | 1 | 02-02-2004 16:00 |
| Community Zero | archiver | 2001 | 1 | 24-06-2002 04:08 |
| Zero Hour | archiver | 2000 | 4 | 23-06-2002 21:59 |