Im using spark max’s and NEO motors and one of my sparks is giving a negative power rather than a positive im looking to reverse just one motor in the code any help?
What programming language are you using?
For Java, you can do something along the lines of
motor.setInverted(true);
im using java i will try that now
I have a follow up question to this and feel I should know the answer, but do not. If you invert the motor in code (or through the software), is the max smart enough to invert the sensor as well (automatically), or do we need to do that seperately?
If you’re using the encoder (hall-effect) built-in to NEO motors, then yes, it will automatically match the controllers direction. If using an alternate encoder, you will (likely) have to invert it manually
Yes, sorry, I meant for the included hall effect sensor. Thank you. That is so cool.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.