-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Robot configuration #24
Conversation
Not 100% sure what they are, but the merge conflicts need to be fixed. Be careful to not delete code that we need. The following commands should help:
And then go through the process from last week of using git status to view the conflicting files, resolve conflicts in vscode, and use git add . And git rebase --continue when you're done fixing a particular commit |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewing code on the plane, lmk if I'm totally off base
|
||
public RobotContainer() { | ||
drive.setDefaultCommand(new TankDrive(drive, | ||
drive.setDefaultCommand(new TankDrive(drive, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The default command should match the drive mode
@@ -25,9 +18,9 @@ public enum DriveMode { | |||
|
|||
public DriveSubsystem(ChassisMode chassisMode, DriveMode driveMode) { | |||
if (chassisMode == ChassisMode.B_TEAM) { | |||
driveHardware = new DriveSparkMAX(DriveConstants.frontLeftID, DriveConstants.frontRightID, DriveConstants.backLeftID, DriveConstants.backRightID); | |||
driveHardware = new DriveSparkMAX(B_Configs.frontLeftID, B_Configs.frontRightID, B_Configs.backLeftID, B_Configs.backRightID); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't all these configs be passed in via the robot configuration class rather than these constants
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should the DriveSubsystem constructor have all of the motor controller ids then?
No description provided.