This is a problem that a rookie team that I’m long-distance helping is having. I met with them on Saturday to teach the basics of programming in Java. They went home and they haven’t been able to get their Spark speed controllers working. When the robot is enabled, the Sparks continue blinking as if the robot was still disabled. My immediate thought is that it’s a wiring problem, but they’ve checked the wiring like ten times and it all looks fine. One thing I noticed is that they had the PWM cable coming from the roborio Y, so they can control two speed controllers with one pin on the roborio. I asked them to check it again and again, but it’s done correctly. The Sparks are created and used properly in the code, so I know the code (probably) isn’t the issue.
Spark leftSide = new Spark(0);
Spark rightSide = new Spark(1);
The PWM cables are plugged into PWM pins 0 and 1, for left and right. They aren’t plugged in backwards. The PWM cables are correctly plugged into the Sparks. The Y in the PWM cables have been done correctly. The PDP voltage and ground are going into the correct ports on the Sparks. The motor outputs are wired correctly. Am I missing anything physical?
On the programming side: The roborio has been properly imaged. Java has been deployed to the roborio. They are plugged in to the roborio via USB. They can deploy code just fine. They have the latest version of the NI Driver Station. When they enable it, the RSL built into the roborio flashes like it’s supposed to. One thing I noticed is they can’t get the actual big orange light to light up, which makes me wonder if the roborio has something wrong with it. They have JDK 8 and the latest version of the FRC Java plugins. The joystick is working properly. My next step code wise will be dumbing it down as far as possible. Am I missing anything code wise?
Any help is greatly appreciated!