-
Notifications
You must be signed in to change notification settings - Fork 0
/
calc_sim_precision_schema.yml
155 lines (150 loc) · 5.05 KB
/
calc_sim_precision_schema.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
# Schema for scout precisions in individual matches
#
# Example:
#
# {
# "scout_name": "Joe",
# "match_number": 8,
# "team_number": "1928",
# "alliance_color_is_red": true,
# "sim_precision": 6.5321
# }
#
# Contains information about this schema file
schema_file:
# Version of schema file
# Incremented every merged schema change
version: 3
# TODO: Add collection information to data fields once schema is implemented
# Non-calculated data
data:
scout_name:
type: str
match_number:
type: int
team_number:
type: str
alliance_color_is_red:
type: bool
# our_data: {weight: value of our_data, calculation: how to get our_data for entire alliance from tba}
calculations:
sim_precision:
type: float
requires:
unconsolidated_totals.auto_cube_high:
weight: 6
calculation: ["autoCommunity", "T", +6*count=Cube]
unconsolidated_totals.auto_cube_mid:
weight: 4
calculation: ["autoCommunity", "M", +4*count=Cube]
unconsolidated_totals.auto_cube_low:
weight: 3
calculation: ["autoCommunity", "B", +3*count=Cube]
unconsolidated_totals.tele_cube_high:
weight: 5
calculation: [["autoCommunity", "T", -5*count=Cube], ["teleopCommunity", "T", +5*count=Cube]]
unconsolidated_totals.tele_cube_mid:
weight: 3
calculation: [["autoCommunity", "M", -3*count=Cube], ["teleopCommunity", "M", +3*count=Cube]]
unconsolidated_totals.tele_cube_low:
weight: 2
calculation: [["autoCommunity", "B", -2*count=Cube], ["teleopCommunity", "B", +2*count=Cube]]
unconsolidated_totals.auto_cone_high:
weight: 6
calculation: ["autoCommunity", "T", +6*count=Cone]
unconsolidated_totals.auto_cone_mid:
weight: 4
calculation: ["autoCommunity", "M", +4*count=Cone]
unconsolidated_totals.auto_cone_low:
weight: 3
calculation: ["autoCommunity", "B", +3*count=Cone]
unconsolidated_totals.tele_cone_high:
weight: 5
calculation: [["autoCommunity", "T", -5*count=Cone], ["teleopCommunity", "T", +5*count=Cone]]
unconsolidated_totals.tele_cone_mid:
weight: 3
calculation: [["autoCommunity", "M", -3*count=Cone], ["teleopCommunity", "M", +3*count=Cone]]
unconsolidated_totals.tele_cone_low:
weight: 2
calculation: [["autoCommunity", "B", -2*count=Cone], ["teleopCommunity", "B", +2*count=Cone]]
unconsolidated_totals.intakes_high_row:
weight: -5
calculation: ["-0*constant"]
unconsolidated_totals.intakes_mid_row:
weight: -3
calculation: ["-0*constant"]
unconsolidated_totals.intakes_low_row:
weight: -2
calculation: ["-0*constant"]
auto_cone_low_precision:
type: float
requires:
unconsolidated_totals.auto_cone_low:
weight: 1
calculation: ["autoCommunity", "B", +1*count=Cone]
tele_cone_low_precision:
type: float
requires:
unconsolidated_totals.tele_cone_low:
weight: 1
calculation: [["teleopCommunity", "B", +1*count=Cone], ["autoCommunity", "B", -1*count=Cone]]
auto_cone_mid_precision:
type: float
requires:
unconsolidated_totals.auto_cone_mid:
weight: 1
calculation: ["autoCommunity", "M", +1*count=Cone]
tele_cone_mid_precision:
type: float
requires:
unconsolidated_totals.tele_cone_mid:
weight: 1
calculation: [["teleopCommunity", "M", +1*count=Cone], ["autoCommunity", "M", -1*count=Cone]]
auto_cone_high_precision:
type: float
requires:
unconsolidated_totals.auto_cone_high:
weight: 1
calculation: ["autoCommunity", "T", +1*count=Cone]
tele_cone_high_precision:
type: float
requires:
unconsolidated_totals.tele_cone_high:
weight: 1
calculation: [["teleopCommunity", "T", +1*count=Cone], ["autoCommunity", "T", -1*count=Cone]]
auto_cube_low_precision:
type: float
requires:
unconsolidated_totals.auto_cube_low:
weight: 1
calculation: ["autoCommunity", "B", +1*count=Cube]
tele_cube_low_precision:
type: float
requires:
unconsolidated_totals.tele_cube_low:
weight: 1
calculation: [["teleopCommunity", "B", +1*count=Cube], ["autoCommunity", "B", -1*count=Cube]]
auto_cube_mid_precision:
type: float
requires:
unconsolidated_totals.auto_cube_mid:
weight: 1
calculation: ["autoCommunity", "M", +1*count=Cube]
tele_cube_mid_precision:
type: float
requires:
unconsolidated_totals.tele_cube_mid:
weight: 1
calculation: [["teleopCommunity", "M", +1*count=Cube], ["autoCommunity", "M", -1*count=Cube]]
auto_cube_high_precision:
type: float
requires:
unconsolidated_totals.auto_cube_high:
weight: 1
calculation: ["autoCommunity", "T", +1*count=Cube]
tele_cube_high_precision:
type: float
requires:
unconsolidated_totals.tele_cube_high:
weight: 1
calculation: [["teleopCommunity", "T", +1*count=Cube], ["autoCommunity", "T", -1*count=Cube]]