How to make the Gyro work

Well after not being able to get the accelerometer to work, I’m going to try the gyro. But of course its not that easy. I just get a bunch of numbers that increment up. (Ex:2.97922e+087) Code and Pictures:


Gyro *gyro;
...
gyro = new Gyro (1);
...
gyro->Reset();
...
std::cout<<gyro->GetAngle()<<endl;

Wait, am I looking at it correctly? It seems you are connecting to channel one of the analog bumper, but the analog bumper is inserted into the solenoid module. It also looks like your “solenoid bumper” is inserted into your analog module. In other words, you have swapped your analog and solenoid bumpers.

Yep, came here to post that very thing… I got it working now… We totally know what we’re doing…

Where did you get that cable you’re using to connect the sensor to the Analog input pins? The wiring scheme is decidedly nonstandard, with power on the black wire and common on the red. That’s likely to cause some confusion if you ever need to troubleshoot it.

I got if from the KOP. It was the only f-f 3 pin cable.