Motor issues with programming

Hi, we are a rookie team for FIRST, and we are using a NEO brushless motor for the extension of our manipulator. The issue is that it can go in reverse, but not forward. We have done some testing and come to the conclusion that the issue has to be with our program, which is linked here. We have discovered that the motor and motor controller are fine, and the controller itself has no issues. We know all of this due to the REV hardware client and our own testing in the code. We also removed the section of our code which stopped the motor at one point, which enabled it to move both directions, but then it wouldn’t stop (go figure). We think the issue is somewhere in Robot.java, probably where we use the extendLadder() function. We are still updating our code, but we don’t know if it will work. Any and all advice is appreciated, thank you. :slight_smile:

Well, I did a stupid and fixed the issue right after I posted this. Turns out we just needed to create an if statement to stop the motors if neither of the triggers are pressed.

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.