Hello, my team is new to using swerve drive this competition season. We are using Mk4i modules with NEOs, SparkMax motor controllers, CANCoders, and a Pigeon 2.0. We are planning to control the robot with a Xbox controller, but are having issues with the robot not doing anything when we enable with the deployed code. Our code is linked here and is updated to run with Phoenix6 methods. We have configured the IDs and other values to match our robot. If anyone would be willing to offer assistance, it would be much appreciated.
It appears that you do not have your RobotContainer initialized anywhere in your Robot file: SwerveCode3329/src/main/java/frc/robot/Robot.java at main · Ethanctuttle/SwerveCode3329 · GitHub
This would explain why it’s not doing anything.
Thanks for the help! I’m not honestly sure how I missed that, but that should fix the issue.
We now have motors running based off input from our controller, but we are receiving response that is not matching our intention. We have good forward and backward translation, but inverted motion for our left and right translation. When we try to rotate the bot, we have our wheels turn perpendicular, making an x instead of tangentially rotating to rotate the bot. We believe that the offsets are properly set for when we have our wheels with the bevel gears to the right. If someone could take a look and see if we are doing something wrong and provide some insight into how to fix the issue, it would be much appreciated.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.