|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
gyro not working
I'm programming in easy-C with a gyro. I had a simple autonomous function initialize the gyro, wait 1200 milliseconds, start the gyro, then go to a loop where it got the gyro value and printed it to screen. No matter how I turned the gyro, it only gave a readout of zero. I then downloaded the same code but without the 1.2 second wait, and it worked fine. When I try to embed this code into the rest of my autonomous code, it does not work. Can anyone help me?
|
|
#2
|
|||
|
|||
|
Re: gyro not working
Quote:
I'm not sure why adding it changes anything, but you can look at a pretty simple sample program here that does work: http://users.wpi.edu/~bamiller/WPILib/Samples.html Please let us know if you find a bug in something that is causing your problem. |
|
#3
|
|||
|
|||
|
Re: gyro not working
Quote:
|
|
#4
|
|||
|
|||
|
Re: gyro not working
Quote:
|
|
#5
|
|||
|
|||
|
well, there doesn't appear to be a short in our wires....
If we add a few lines of code in autonomous that initailize and start the gyro, then inside a whileloop that will be constantly running (While 1) that gets the gyro and prints it to screen, then the gyro works. For some reason, it is only working in this scenario, we have the same settings for the start and initalize, and the same port, it still does not work. This is very frustrating ![]() Last edited by johnsmith11111 : 14-02-2008 at 17:16. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Subscriptions not working? | Jeff Waegelin | CD Forum Support | 2 | 07-02-2007 14:11 |
| Gyro not working in Autonomous? | kaszeta | Programming | 7 | 11-02-2006 01:28 |
| CMUCam not working | Inverted | Programming | 10 | 04-02-2005 19:32 |
| Radios not working... | E Jones 234 | Control System | 3 | 21-01-2005 21:58 |
| Radios not working... | E Jones 234 | Electrical | 3 | 21-01-2005 21:58 |