Fix pre-match defense LED state.

This commit is contained in:
Patrick Fairbank
2016-08-28 18:56:03 -07:00
parent bf5102e44d
commit 998cdf782b
2 changed files with 3 additions and 1 deletions

View File

@@ -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:

View File

@@ -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":