Hi, I am the only programmer on my team and have run into some issues with the code. Basically when we first got it driving it constantly moved forward when enabled. I tried broadening the deadzones but that didn’t do anything. So I then put the robot into autonomous and it still moved forward constantly even when we had zero code in the autonomous section. I have since added some auto code to see if it can overwrite what is happening but it still kept on going forward. The only error that displays on our driver station is differential drive error output not updated often enough. Does anyone know how to fix this? Our comp is this Thursday. Heres the link to the code on github. https://github.com/7905-NightHawks/Infinite-recharge-2020/tree/master/src/main/java/frc/robot
Edit: We are using Java command based 2020 framework with 4 victor spx motor controllers CAN wired.
Do you make sure to set the motors to 0 when you no longer want to use them? Otherwise when you enable they’ll try to go at the last speed you told them to, even if it was a while ago
A few observations:
You have two copies of DriveSubsytem in RobotContainer. You should probably only have one.
By making the autocommand an empty instant command, you keep running the same default command as teleop, so I would expect the same beavior. Does it happen if you run a command that sets the motors to 0 in autonomous?