Drivetrain not working coding help

So I’m trying to program the drive train. I have a differential drive system with the 4 motors plugging into PWM 1, 2, 3, and 4. The motor controllers are a solid orange which means they brain sees them but they aren’t being controlled by the controller. I have attached my GitHub to this thread if anyone could help.

I don’t see where you are setting your Drive command to run automatically. Where is that set up?

1 Like

Also, noticed a pretty obvious paste-o here: https://github.com/jdrevnyak5/test2/blob/master/src/main/java/frc/robot/Robot.java#L43.

Oh thanks for the catch but that still wouldn’t cause the error not moving.

1 Like

Where would I have to call that? I have the subsystem and commands set up, how would I go about putting that in the robot.java or robotcontainer.java

While you could technically do it in either, I think it is typically done in RobotContainer. Look at the examples. The RomiReference is nice and clear.

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