Log in

View Full Version : Gyro/Camera Combination Code Problems


cprogrammer
06-06-2006, 18:18
I have combined the gyro and the camera code that will run on the 2006 FRC controller. I tried it out and everything runs perfectly except the FRC will periodically and randomly reset or disable itself. Is this just a registry overflow or is it something else. If anybody has any information on this please give me some feedback.

Astronouth7303
06-06-2006, 18:43
I have combined the gyro and the camera code that will run on the 2006 FRC controller. I tried it out and everything runs perfectly except the FRC will periodically and randomly reset or disable itself. Is this just a registry overflow or is it something else. If anybody has any information on this please give me some feedback.

Is it possible this is from the silicon bugs in the PIC18F8722? Are you using new firmware/libraries?

cprogrammer
21-06-2006, 11:01
I am just using the firmware that came with the 2006 system.

EricS-Team180
21-06-2006, 13:12
I have combined the gyro and the camera code that will run on the 2006 FRC controller. I tried it out and everything runs perfectly except the FRC will periodically and randomly reset or disable itself. Is this just a registry overflow or is it something else. If anybody has any information on this please give me some feedback.

This behavior is similar to what we see when too many interrupts are being generated. The processor ends up getting swamped.

If you can run the gyro with the camera unplugged or the camera with the gyro disabled, that could be the case.

Eric

Donut
21-06-2006, 21:45
Hmm, we got it to work fine, I don't know.

I thought there was a problem mentioned before that you must combine one into the other (it only works one way, like gyro put into camera works, but camera put into gyro doesn't). I believe if you didn't do it right it was completely unusable though, so that's probably not it.

If you're getting overflows, maybe turning down the sample rate on the gyro could help.