So we have been having some problems with our drive code. Last week the code was working flawlessly, and since this weekend it has fallen apart. The only changes we made was switching in a new victor to replace one that stopped working. This problem has been reduced to something that I cannot figure out how to fix in code. The arcade drive code works like its supposed to when going forward or backwards, but when I try turning, all the signal lights on the victors go to the same color as opposed to half being one color and half being the opposite color.
All the victors are wired correctly and do receive signal from the digital sidecar.
If you want any pieces of code, let me know. Thanks for the help.
What colors are the Victor LEDs when driving forward? When driving backward? Does the robot actually turn when you tell it to? If not, what does it do instead?
I’m used to robots that are wired so that motors on the left side spin in the opposite direction from motors on the right side in order for the robot to go straight. That means when turning in place they all spin the same direction, with the LEDs all the same color.
When forward, one side all red, other side all green. Same concept for reverse, just colors swap. Not sure if robot actually turns because we disconnected all the power leads to the motors while we are figuring this out just in case we ran a program that made 2 victors on the same side run opposite of each other.