MAX Swerve with Shuffle Board

Hey everyone I was using the MAX Swerve Drive Template and i’m having some issues in getting swerve to move so I wanted to check if the command was running properly. I read on the FRC documentation that you could run commands in shuffleboard and I was wondering if I could run the drive command in shuffle board to see if it was running properly. Heres the command im trying to represent in shuffle board.

What you’re trying to do here isn’t really the right way to do it. The command is a “default” command, meaning that unless another command is scheduled, it’s always running. There’s not really a need to run that through Shuffleboard. Plus, you’d have to hold down that button while driving, which is not ideal.

The better way to debug it would be to put basic print statements or SmartDashboard calls inside of the m_robotDrive.drive method. If your drive command isn’t working, then my first guesses would be: CAN Disconnect, power disconnect, wrong IDs, wrong firmware, and disconnected motors. I would also check the RioLog to make sure no errors are being spat out by REVLib.

Thanks for the help! I spent some time trying to add shuffleboard into the command and so I was wondering how I would get the shuffleBoard to show the joystick Left X, joystick Left Y, and the joystick Right X inside the command itself. Could I just add the lines in the new RunCommand segment of code?

Ah, I see. Add those to the drive method of the driveRobot class.

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