Skip to content

Commit 6156b6d

Browse files
committed
fix up compile warnings
1 parent ea80766 commit 6156b6d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/main/java/frc/robot/subsystems/robotState/RobotStateSubsystem.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,13 +119,13 @@ public RobotStateSubsystem(
119119
this.tagAlignSubsystem = tagAlignSubsystem;
120120
this.visionSubsystem = visionSubsystem;
121121
this.bargeAlignSubsystem = bargeAlignSubsystem;
122-
this.canBus = new CANBus();
122+
this.canBus = new CANBus("CAN FD 25-1");
123123

124124
ledSubsystem.setState(LEDStates.NORMAL);
125125
}
126126

127127
public boolean isCANivoreConnected() {
128-
CANBusStatus status = canBus.getStatus("CAN FD 25-1");
128+
CANBusStatus status = canBus.getStatus();
129129
return status.Status.isOK();
130130
}
131131

src/main/java/frc/robot/subsystems/tagAlign/TagAlignSubsystem.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,7 @@ public void startAuto(
290290
isAuto = true;
291291
this.yAutoOffset = yAutoOffset;
292292
setup(alliance, level, scoreLeft, algae);
293+
setJustAlgae(false);
293294
tagAlign();
294295
}
295296

@@ -402,7 +403,6 @@ public void periodic() {
402403
|| FastMath.abs(driveOmega.getError()) < TagServoingConstants.kAngleCloseEnough) {
403404
switch (curState) {
404405
case DRIVE -> {
405-
//TODO Only look at y error
406406
if (FastMath.abs(driveX.getError()) < driveXCloseEnough
407407
&& FastMath.abs(driveY.getError()) < driveYCloseEnough
408408
// || ignoreX && FastMath.abs(tagRelError.getY()) < driveCloseEnough

0 commit comments

Comments
 (0)