Set stack light to green on during the match.

This commit is contained in:
Ed Jordan
2019-10-12 14:25:10 -07:00
committed by GitHub
parent 69d122b99f
commit b57e4b8b7e

View File

@@ -753,10 +753,12 @@ func (arena *Arena) handlePlcOutput() {
arena.Plc.SetCargoShipMagnets(true)
arena.Plc.SetRocketLights(false, false)
case AutoPeriod:
arena.Plc.SetStackLights(false, false, false, true)
fallthrough
case PausePeriod:
arena.Plc.SetCargoShipLights(false)
case TeleopPeriod:
arena.Plc.SetStackLights(false, false, false, true)
if arena.lastMatchState != TeleopPeriod {
arena.Plc.SetSandstormUp(true)
go func() {