Skip to content

Commit 78b9af9

Browse files
committed
tweak constants
1 parent 48472e2 commit 78b9af9

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

src/main/java/frc/robot/constants/BattMonConstants.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
public class BattMonConstants {
44
// All of these aren't right and will need to be determined
5+
public static final int kBattCurrentID = 1;
6+
public static final int kBattVoltID = 1;
7+
public static final int kBattTempID = 1;
58

69
// Battery Voltage Conversion
710
public static final double kBattVolt1 = 12;

src/main/java/frc/robot/subsystems/battMon/BattMonSubsystem.java

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,8 @@ public void periodic() {
3939
safeAlert.set(false);
4040
recoveryTempThreshold = curWarnThreshold - BattMonConstants.kHysteresis;
4141
curState = battMonState.WARNING;
42-
}
43-
break;
44-
42+
}
43+
break;
4544

4645
case WARNING:
4746
if (inputs.breakerTemp > curDangerThreshold) {
@@ -52,9 +51,8 @@ public void periodic() {
5251
highTempAlert.set(false);
5352
safeAlert.set(true);
5453
curState = battMonState.NORMAL;
55-
}
56-
break;
57-
54+
}
55+
break;
5856

5957
case DANGER:
6058
if (inputs.breakerTemp <= recoveryTempThreshold) {
@@ -63,7 +61,7 @@ public void periodic() {
6361
curState = battMonState.WARNING;
6462
}
6563
}
66-
64+
}
6765

6866
public battMonState getState() {
6967
return curState;

0 commit comments

Comments
 (0)