Fixed lights during endgame.

This commit is contained in:
Patrick Fairbank
2014-08-29 22:23:45 -07:00
parent 9a880b7fa7
commit 1c86b7c877

View File

@@ -526,6 +526,8 @@ func (arena *Arena) handleLighting(alliance string, score *RealtimeScore) {
leftSide := arena.MatchTimeSec() < float64(arena.matchTiming.AutoDurationSec)/2 == arena.leftGoalHotFirst
arena.lights.SetHotGoal(alliance, leftSide)
case TELEOP_PERIOD:
fallthrough
case ENDGAME_PERIOD:
if score.AutoCommitted && score.AutoLeftoverBalls == 0 && score.CurrentCycle.Assists == 0 {
arena.lights.SetPedestal(alliance)
} else {