Kraken x60 refuses to run from code but will run from Tuner X

I need help :sob: we are trying to run our kraken x60 and can control it from phoenix tuner but when we use the following code it won’t run at all. We are using VoltageOut with setControl to try and set a voltage of 10 volts which when we test VoltageOut in Tuner X we see the motor behaving as expected and moving. We disabled FOC and the limit switches in the motor config thinking maybe that was the issue, but that hasn’t helped either.

I’m sure its something really dumb but we have looked at other team’s code and the example code for multiple meetings and I’m not sure what else to do at this point.

This is just from quickly looking through the code, but do you ever run Orchestra.stop() before trying to run the motor.

Also, this might have been fixed, but I have had issues in the past having the same motor in different orchestras

2 Likes

We just tried stop orchestra as well as just using setVoltage directly and it worked! That was our last test of the day, so not sure which fixed it but thank you regardless :))) I’ll post an update as to which it was monday.