Hello I return to Chief Delphi with yet another error.
In my code, I’m putting a spark max’s get method into the smartdashboard to see what the value is. The motors themselves are moving so there should be a return value, no? But, when I try to put it to the smartdashboard it just returns 0.
This only works if you use the set
method. If you’re using positional, velocity, or voltage control, it will not return a value
1 Like
We’ll need to see some code to see what exactly you’re trying to do. Preferably as a github or similar link
Thank you, I’ve been using the PID to set the motor, so that’s likely the issue.
You can use getAppliedOutput()
to get the applied duty cycle of the motor in all control modes