mirror of
https://github.com/Team254/cheesy-arena-lite.git
synced 2026-03-09 13:46:44 -04:00
Add functionality to trigger a timeout and show the countdown on the audience display (fixes #51).
This commit is contained in:
@@ -13,7 +13,8 @@ var MatchTiming = struct {
|
||||
PauseDurationSec int
|
||||
TeleopDurationSec int
|
||||
EndgameTimeLeftSec int
|
||||
}{3, 15, 2, 135, 30}
|
||||
TimeoutDurationSec int
|
||||
}{3, 15, 2, 135, 30, 0}
|
||||
|
||||
func GetAutoEndTime(matchStartTime time.Time) time.Time {
|
||||
return matchStartTime.Add(time.Duration(MatchTiming.WarmupDurationSec+MatchTiming.AutoDurationSec) * time.Second)
|
||||
|
||||
Reference in New Issue
Block a user