mirror of
https://github.com/Team254/cheesy-arena-lite.git
synced 2026-03-09 13:46:44 -04:00
Send reset signal to PLC on match load and again on match start.
This commit is contained in:
@@ -214,6 +214,7 @@ func (arena *Arena) LoadMatch(match *model.Match) error {
|
||||
arena.FieldVolunteers = false
|
||||
arena.FieldReset = false
|
||||
arena.ScoringPanelRegistry.resetScoreCommitted()
|
||||
arena.Plc.ResetMatch()
|
||||
|
||||
// Notify any listeners about the new match.
|
||||
arena.MatchLoadNotifier.Notify()
|
||||
@@ -404,6 +405,7 @@ func (arena *Arena) Update() {
|
||||
enabled = true
|
||||
sendDsPacket = true
|
||||
}
|
||||
arena.Plc.ResetMatch()
|
||||
case WarmupPeriod:
|
||||
auto = true
|
||||
enabled = false
|
||||
|
||||
Reference in New Issue
Block a user