File tree Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change 22
33public 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 ;
Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments