mirror of
https://github.com/Team254/cheesy-arena-lite.git
synced 2026-03-10 06:06:47 -04:00
Fix pre-match defense LED state.
This commit is contained in:
2
arena.go
2
arena.go
@@ -539,6 +539,8 @@ func (realtimeScore *RealtimeScore) ScoreFields(opponentFouls []Foul) *RealtimeS
|
||||
// Manipulates the arena LED lighting based on the current state of the match.
|
||||
func (arena *Arena) handleLighting() {
|
||||
switch arena.MatchState {
|
||||
case PRE_MATCH:
|
||||
fallthrough
|
||||
case AUTO_PERIOD:
|
||||
fallthrough
|
||||
case PAUSE_PERIOD:
|
||||
|
||||
@@ -41,7 +41,7 @@ func (lightPacket *LightPacket) setColorFade(channel int, color string, fade byt
|
||||
case "green":
|
||||
lightPacket.setRgbFade(channel, 0, 15, 0, fade)
|
||||
case "yellow":
|
||||
lightPacket.setRgbFade(channel, 15, 11, 0, fade)
|
||||
lightPacket.setRgbFade(channel, 15, 13, 5, fade)
|
||||
case "darkred":
|
||||
lightPacket.setRgbFade(channel, 1, 0, 0, fade)
|
||||
case "darkblue":
|
||||
|
||||
Reference in New Issue
Block a user