Hello, basically we’re really having problems with our SparkMaxs.
When we enable our code, the SparkMaxs should simply be set to a 50% percent output speed. However, instead, the SparkMaxs simply stay a solid magenta (indicating a valid signal, we are using NEOs). They do not show any signs of outputting. We just ran this same code 10 minutes ago and the SparkMaxs were working fine, but all of a sudden, the SparkMaxs are not responding to anything. This is the bare code we are using to test:
‘’
private static CANSparkMax leftSparkMaster, otherSparker;
@Override
public void robotInit() {
leftSparkMaster = new CANSparkMax(4, CANSparkMaxLowLevel.MotorType.kBrushless);
otherSparker = new CANSparkMax(2, CANSparkMaxLowLevel.MotorType.kBrushless);
}
@Override
public void robotPeriodic() {
}
@Override
public void disabledInit() {
}
@Override
public void disabledPeriodic() {
}
@Override
public void autonomousInit() {
}
@Override
public void autonomousPeriodic() {
}
@Override
public void teleopInit() {
}
@Override
public void teleopPeriodic() {
System.out.println("RUNNING");
leftSparkMaster.set(.5);
otherSparker.set(.5);
}
@Override
public void testInit() {
}
@Override
public void testPeriodic() {
}
}
‘’
This should simply set the sparks to 50% but they instead do nothing, but indicate they have a valid signal. I see all my print statements running inside teleopPeriodic(), but the sparks just don’t move, despite the same code having worked 10 minutes ago.
Nothing electrically has changed between now and then, and the wiring appears to be fine. This was something sudden that happened we have no idea what to do to fix this issue.
We can see the SparkMaxs on the Rev Spark Client and we have blinked them to ensure that we have the right IDs in the code.
Any help would be very much appreciated.