scouting: Make data scouting RPC eliminations-aware
This patch adds "round" and "comp_level" to the appropriate
flatbuffers so that the web page and the web server can properly
communicate about eliminations matches.
The web page doesn't actually support eliminations matches yet.
Signed-off-by: Philipp Schrader <philipp.schrader@gmail.com>
Change-Id: I798dae12e44bba2fadf66f0063dbc7f660e82b92
diff --git a/scouting/webserver/requests/requests.go b/scouting/webserver/requests/requests.go
index 8132c3d..af52510 100644
--- a/scouting/webserver/requests/requests.go
+++ b/scouting/webserver/requests/requests.go
@@ -144,6 +144,8 @@
stats := db.Stats{
TeamNumber: request.Team(),
MatchNumber: request.Match(),
+ Round: request.Round(),
+ CompLevel: string(request.CompLevel()),
StartingQuadrant: request.StartingQuadrant(),
AutoBallPickedUp: [5]bool{
request.AutoBall1(), request.AutoBall2(), request.AutoBall3(),
@@ -294,6 +296,8 @@
response.StatsList = append(response.StatsList, &request_data_scouting_response.StatsT{
Team: stat.TeamNumber,
Match: stat.MatchNumber,
+ Round: stat.Round,
+ CompLevel: stat.CompLevel,
StartingQuadrant: stat.StartingQuadrant,
AutoBall1: stat.AutoBallPickedUp[0],
AutoBall2: stat.AutoBallPickedUp[1],