Merge pull request #98 from ejordan376/master

Fix stack light so green light stays on during match
This commit is contained in:
Patrick Fairbank
2019-10-12 21:55:49 -07:00
committed by GitHub

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() {