Gyro Value Problems

We have been using the gyro with success the whole season but now, a couple days before our provincial championship we are running into a problem. The gyro value randomly increases or decreases. Even when the robot is still. We have found out that this not gyrp drift. And we tried with multiple gyros, v5 brains, VCS and pros, weve tried updating and downgrading pros, and weve also tried wire of different lengths. If anyone know whay we can do about this problem we wpuld highly appreciate it

Well, I just tested the gyro in PROS as they asked me to have a look. I don’t see any problems. How much is it drifting (or rather, randomly increasing) ?

It moves up or down by the factor of the gyro multiplier value. Sometimes it changed slowly and sometimes faster.

I don’t think that’s what’s going on, but what happens when you set the multiplier to 1…

Here’s how the multiplier is used in the kernel:

_adi_port_get_value is a wrapper to call VEX API (the same as VCS).

I had them record videos

VCS

PROS

Its the same even when multiplier is one

I assume you realize there’s factor of 10 difference between what you are asking for in VCS (degrees, so gyro goes 0 to 360.0) and PROS (where the value returned is the raw value and goes from 0 to 3600)

Yes, but shouldn’t the gyro value in vcs should change by a degree after some time?

The drift, in absolute terms, should be the same.

Yes, we dont suspect that is the problem either. Though the values continue to change despite our efforts and we are now just desperate for any ideas weve talked to people associated with pros and have still not found a solution.

we’ve had this same problem. what we found to work is (on PROS) running “prosv5 make clean all” in the terminal. we also suspect changing the port works. it doesn’t mean the port is broken, but whenever we change the port, it sometimes works. we are still looking into it.

Ya we tried that it shwed 0 and then went to -0.94500