@@ -51,17 +51,17 @@ public Drive() {
5151 throw new RuntimeException ("Failed to create SwerveDrive" , e );
5252 }
5353
54- faultManager .addDevice ((SparkMax ) swerveDrive .getModules ()[0 ].getDriveMotor ().getMotor (), "Front Left Drive Spark" , "Main CAN" );
55- faultManager .addDevice ((SparkMax ) swerveDrive .getModules ()[0 ].getAngleMotor ().getMotor (), "Front Left Turn Spark" , "Main CAN" );
54+ faultManager .addDevice ((SparkMax ) swerveDrive .getModules ()[2 ].getDriveMotor ().getMotor (), "Back Left Drive Spark" , "Main CAN" );
55+ faultManager .addDevice ((SparkMax ) swerveDrive .getModules ()[2 ].getAngleMotor ().getMotor (), "Back Left Turn Spark" , "Main CAN" );
5656 //faultManager.addDevice(swerveDrive.getModules()[0].getAbsoluteEncoder(), (SparkMax) swerveDrive.getModules()[0].getAngleMotor().getMotor(), "Front Left CANcoder", "Main CAN");
57- faultManager .addDevice ((SparkMax ) swerveDrive .getModules ()[1 ].getDriveMotor ().getMotor (), "Front Right Drive Spark" , "Main CAN" );
58- faultManager .addDevice ((SparkMax ) swerveDrive .getModules ()[1 ].getAngleMotor ().getMotor (), "Front Right Turn Spark" , "Main CAN" );
57+ faultManager .addDevice ((SparkMax ) swerveDrive .getModules ()[3 ].getDriveMotor ().getMotor (), "Back Right Drive Spark" , "Main CAN" );
58+ faultManager .addDevice ((SparkMax ) swerveDrive .getModules ()[3 ].getAngleMotor ().getMotor (), "Back Right Turn Spark" , "Main CAN" );
5959 //faultManager.addDevice(swerveDrive.getModules()[1].getAbsoluteEncoder(), (SparkMax) swerveDrive.getModules()[1].getAngleMotor().getMotor(), "Front Right CANcoder", "Main CAN");
60- faultManager .addDevice ((SparkMax ) swerveDrive .getModules ()[2 ].getDriveMotor ().getMotor (), "Back Left Drive Spark" , "Main CAN" );
61- faultManager .addDevice ((SparkMax ) swerveDrive .getModules ()[2 ].getAngleMotor ().getMotor (), "Back Left Turn Spark" , "Main CAN" );
60+ faultManager .addDevice ((SparkMax ) swerveDrive .getModules ()[0 ].getDriveMotor ().getMotor (), "Front Left Drive Spark" , "Main CAN" );
61+ faultManager .addDevice ((SparkMax ) swerveDrive .getModules ()[0 ].getAngleMotor ().getMotor (), "Front Left Turn Spark" , "Main CAN" );
6262 //faultManager.addDevice(swerveDrive.getModules()[2].getAbsoluteEncoder(), (SparkMax) swerveDrive.getModules()[2].getAngleMotor().getMotor(), "Back Left CANcoder", "Main CAN");
63- faultManager .addDevice ((SparkMax ) swerveDrive .getModules ()[3 ].getDriveMotor ().getMotor (), "Back Right Drive Spark" , "Main CAN" );
64- faultManager .addDevice ((SparkMax ) swerveDrive .getModules ()[3 ].getAngleMotor ().getMotor (), "Back Right Drive Spark" , "Main CAN" );
63+ faultManager .addDevice ((SparkMax ) swerveDrive .getModules ()[1 ].getDriveMotor ().getMotor (), "Front Right Drive Spark" , "Main CAN" );
64+ faultManager .addDevice ((SparkMax ) swerveDrive .getModules ()[1 ].getAngleMotor ().getMotor (), "Front Right Turn Spark" , "Main CAN" );
6565 //faultManager.addDevice(swerveDrive.getModules()[3].getAbsoluteEncoder(), (SparkMax) swerveDrive.getModules()[3].getAngleMotor().getMotor(), "Back Right Drive Spark", "Main CAN");
6666
6767
0 commit comments