Good folk of CD-
Working on some new-to-our-team tech this summer and ran into a stumper. Hoping you all can help us.
4 NEO w/ Spark Max controllers connected into two driving gearboxes
1 Double solenoid used for shifting said gearboxes
BASIC code from LabVIEW - pre-populated example with SPARK MAX chosen as the motor controller. Only changes to specify what axes to operate the left/right side motors of Tank Drive and then a button for the solenoid.
What we want it to do:
Using an XBox gamepad, use Tank Drive via axes 1 and 5 (y-axis of left and right joysticks) to operate left and right side of robot.
Double solenoid fires in reverse unless button 5 is pressed and then fire forward. Reverse is solenoid 1 and forward is solenoid 0 on the PCM.
What it do:
When enabled the Spark Max lights go from blinking Magenta to a solid Magenta.
Solenoid 1 lights up on the PCM along with the corresponding double solenoid wired.
Does not respond to inputs from XBox controller. We can see the driver station showing the action as anticipated (buttons are activating, axes are slewing). However, there is no response from the robot.
So we know the robot knows it is either enabled or disabled and we know the Spark Max controllers know if the robot is enabled and we know the solenoid is defaulting as expected.
What we tried:
(1) Turning it off and on again.
(2) Made sure the XBox controller was in the correct USB slot on the driver station.
(3) Checked PWM wiring for correct polarity.
(4) Updated all fireware and software for Spark Maxes.
(5) Connected via USB.
(6) Sacrificed a CIM as an offering to the robot overlords.
(7) Posted a thread on Chief Delphi.
Any thoughts? Hoping there is a simple solution I just cannot see right now because I sat too close to the TV.