mirror of
https://github.com/Team254/cheesy-arena-lite.git
synced 2026-03-09 13:46:44 -04:00
Fixed lights during endgame.
This commit is contained in:
2
arena.go
2
arena.go
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user