{{/* Copyright 2014 Team 254. All Rights Reserved. Author: pat@patfairbank.com (Patrick Fairbank) UI for controlling match play and viewing team connection and field status. */}} {{define "title"}}Match Play{{end}} {{define "body"}}
Load Test Match

{{range $type, $matches := .MatchesByType}}
{{range $match := $matches}} {{end}}
Match Time Action
{{$match.DisplayName}} {{$match.Time}} Load {{if ne $match.Status ""}} Show Result {{end}}
{{end}}
 
 
 
 
Blue Teams
DS
Rad
Rbt
Byp
{{template "matchPlayTeam" dict "team" .Match.Blue1 "color" "B" "position" 1 "data" .}} {{template "matchPlayTeam" dict "team" .Match.Blue2 "color" "B" "position" 2 "data" .}} {{template "matchPlayTeam" dict "team" .Match.Blue3 "color" "B" "position" 3 "data" .}} {{if eq .Match.Type "elimination" }}
Alliance {{.Match.ElimBlueAlliance}} {{if .BlueOffFieldTeams}} (not on field: {{range $i, $team := .BlueOffFieldTeams}}{{if $i}}, {{end}}{{$team}}{{end}}) {{end}}
{{end}}
Red Teams
DS
Rad
Rbt
Byp
{{template "matchPlayTeam" dict "team" .Match.Red3 "color" "R" "position" 3 "data" .}} {{template "matchPlayTeam" dict "team" .Match.Red2 "color" "R" "position" 2 "data" .}} {{template "matchPlayTeam" dict "team" .Match.Red1 "color" "R" "position" 1 "data" .}} {{if eq .Match.Type "elimination" }}
Alliance {{.Match.ElimRedAlliance}} {{if .RedOffFieldTeams}} (not on field: {{range $i, $team := .RedOffFieldTeams}}{{if $i}}, {{end}}{{$team}}{{end}}) {{end}}
{{end}}

Scoring

Auto
Teleop
Endgame
Auto
Teleop
Endgame
{{if .PlcIsEnabled}}

PLC Status


E-Stop {{range $name, $status := .PlcArmorBlockStatuses}}
{{$name}} {{end}}

{{end}}
Audience Display

Alliance Station Display

Match Sounds

Timeout

{{if eq .Match.Type "test" }}

Match Name

{{end}}
{{end}} {{define "script"}} {{end}} {{define "matchPlayTeam"}}
{{.position}}
{{end}}