Hi again, my team is trying to engage with the charge station in autonomous, but we are having some issues. I am mainly wondering if the way I have this command set up is a valid way to control our swerve modules.
The setDesiredState method is the same one that is called when driving in teleop, but all that happens when enabling the code is a slight lurch forward. This happens a few times before the timer ends the command. I think the navX pitch based speed control will work, but I am unsure of how to proceed with getting the robot to move forward.
Any suggestions or example code would be appreciated. Thanks!
You can do that I think but if you don’t want to use some more advanced way to follow a trajectory (e.g. pathplanner), I would probably use your swerve subsystem’s drive method.