|
Re: Programming the Spark Motor Controller C++
Are you pushing the button corresponding to rawButton4?
Is the talon plugged into port 0?
If you think you are and it is, put in some code next to those two set commands (inside the if-then) to send feedback to the driver station (just turning a light red/yellow/green should be enough). This will tell you if you are actually executing that bit of code or not.
If you are executing that code, check your cable and/or try replacing the spark with another one or a talonSR or VictorSP (all close enough to each other for this test).
If you are not executing that code when you push the button, check for a problem on the joystick side. (wrong button, broken wire, etc.) or continue looking for a software problem.
__________________
If you can't find time to do it right, how are you going to find time to do it over?
If you don't pass it on, it never happened.
Robots are great, but inspiration is the reason we're here.
Friends don't let friends use master links.
|