Problem with the arms

Currently, we are using two Falcon 500s to control our robot arm. The arm is designed to move between 0 and 115 degrees with the vertical axis of the left joystick. Last week, they were working fine, spinning in the same direction and in sync. The robot was rewired a few days ago. We double-checked the wiring and everything was plugged in where it was supposed to go. However, the motors began spinning in opposite directions. We have tried altering the setInverted between true and false, but nothing happens. Are there any ideas on what could be causing the issue?

Link to our code: GitHub - EvanWang07/BaseTalonFXSwerveV2024: This is the current code for the 2023-2024 robot for FRC team 6934

You can use DutyCycleOutput

Sometimes Spark Max methods that cause changes in their hardware state like setInverted and the constructor parameter for motor type don’t do anything, so I would just make the change manually in the client.

Thank you, we tried that. Your solution worked, but we are going for a solution that incoorporates the encoder. Right now, the encoder doesn’t adjust. We also tried a factory reset on the motor, and it still didn’t work.

Yuo can use “talon”.getsensorposition.getvalue()

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