|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
Gyro won't work right =?
We decided that we were going to program an alternate plan for our Autonomous code, so I wrote some code and wired it up today...but I got some strange numbers.
The number was just a really long decimal that slowly incremented or decremented. I'm thinking that the cable must just be soldered badly or something, but I ran out of time, and thought I should ask here so I don't waste too much time on Thursday. Here is the code (stripped down really far ![]() Code:
Gyro* gyro;//Declaration
gyro = new Gyro(1,1);//Inilization - In the robot startup
gyro->Reset();//In AutonomopusInit()
//Code in Autonomous Periodic - int countdown is just to keep the terminal from overflowing.
if (--countdown<=1)
{
echo("Gyro Rotation: "<<gyro->GetAngle()<<" Degrees\n");
countdown=50;
}
|
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| chicklet won't work | bsbllpss | Control System | 3 | 05-02-2008 09:33 |
| Warcraft won't work, don't knwo why | John Gutmann | Chit-Chat | 2 | 27-07-2007 08:52 |
| Encoder, GTS, Gyro, Camera != Work | purduephotog | Programming | 1 | 18-02-2007 17:20 |
| Major CMUcam issues - LabView app won't work, very low-quality picture | scottmso | Programming | 5 | 19-01-2006 17:51 |
| 3D Studio Max won't work | David the bomb | 3D Animation and Competition | 3 | 03-03-2004 17:12 |