@@ -44,93 +44,103 @@ class QrcodeHelper {
44
44
/// Computes all autonomous values and returns them as a single string separated by a caret
45
45
static String computeAutonomousValues () {
46
46
return computeValues ([
47
+ // other
48
+ parseString (AutonomousValues .autoStartPosition.text), // index 5
49
+ parseString (AutonomousValues .autoMobility.text), // index 6
50
+ parseInt (AutonomousValues .coralMissed.text), // index 7
51
+ parseInt (AutonomousValues .coralField.text), // index 8
52
+ parseInt (AutonomousValues .coralHP.text), // index 9
53
+ parseInt (AutonomousValues .algaeRemoved.text), // index 10
54
+ parseInt (AutonomousValues .algaeProcessor.text), // index 11
55
+ parseInt (AutonomousValues .algaeBarge.text), // index 12
56
+
47
57
// L1 Coral Values
48
- parseInt (AutonomousValues .l1NW.text), // index 4
49
- parseInt (AutonomousValues .l1NE.text), // index 5
50
- parseInt (AutonomousValues .l1W.text), // index 6
51
- parseInt (AutonomousValues .l1E.text), // index 7
52
- parseInt (AutonomousValues .l1SW.text), // index 8
53
- parseInt (AutonomousValues .l1SE.text), // index 9
58
+ parseInt (AutonomousValues .l1NW.text), // index 13
59
+ parseInt (AutonomousValues .l1NE.text), // index 14
60
+ parseInt (AutonomousValues .l1W.text), // index 15
61
+ parseInt (AutonomousValues .l1E.text), // index 16
62
+ parseInt (AutonomousValues .l1SW.text), // index 17
63
+ parseInt (AutonomousValues .l1SE.text), // index 18
54
64
55
65
// L2 Coral Values
56
- parseInt (AutonomousValues .l2A.text), // index 10
57
- parseInt (AutonomousValues .l2B.text), // index 11
58
- parseInt (AutonomousValues .l2C.text), // index 12
59
- parseInt (AutonomousValues .l2D.text), // index 13
60
- parseInt (AutonomousValues .l2E.text), // index 14
61
- parseInt (AutonomousValues .l2F.text), // index 15
62
- parseInt (AutonomousValues .l2G.text), // index 16
63
- parseInt (AutonomousValues .l2H.text), // index 17
64
- parseInt (AutonomousValues .l2I.text), // index 18
65
- parseInt (AutonomousValues .l2J.text), // index 19
66
- parseInt (AutonomousValues .l2K.text), // index 20
67
- parseInt (AutonomousValues .l2L.text), // index 21
66
+ parseInt (AutonomousValues .l2A.text), // index 19
67
+ parseInt (AutonomousValues .l2B.text), // index 20
68
+ parseInt (AutonomousValues .l2C.text), // index 21
69
+ parseInt (AutonomousValues .l2D.text), // index 22
70
+ parseInt (AutonomousValues .l2E.text), // index 23
71
+ parseInt (AutonomousValues .l2F.text), // index 24
72
+ parseInt (AutonomousValues .l2G.text), // index 25
73
+ parseInt (AutonomousValues .l2H.text), // index 26
74
+ parseInt (AutonomousValues .l2I.text), // index 27
75
+ parseInt (AutonomousValues .l2J.text), // index 28
76
+ parseInt (AutonomousValues .l2K.text), // index 29
77
+ parseInt (AutonomousValues .l2L.text), // index 30
68
78
69
79
// L3 Coral Values
70
- parseInt (AutonomousValues .l3A.text), // index 22
71
- parseInt (AutonomousValues .l3B.text), // index 23
72
- parseInt (AutonomousValues .l3C.text), // index 24
73
- parseInt (AutonomousValues .l3D.text), // index 25
74
- parseInt (AutonomousValues .l3E.text), // index 26
75
- parseInt (AutonomousValues .l3F.text), // index 27
76
- parseInt (AutonomousValues .l3G.text), // index 28
77
- parseInt (AutonomousValues .l3H.text), // index 29
78
- parseInt (AutonomousValues .l3I.text), // index 30
79
- parseInt (AutonomousValues .l3J.text), // index 31
80
- parseInt (AutonomousValues .l3K.text), // index 32
81
- parseInt (AutonomousValues .l3L.text), // index 33
80
+ parseInt (AutonomousValues .l3A.text), // index 31
81
+ parseInt (AutonomousValues .l3B.text), // index 32
82
+ parseInt (AutonomousValues .l3C.text), // index 33
83
+ parseInt (AutonomousValues .l3D.text), // index 34
84
+ parseInt (AutonomousValues .l3E.text), // index 35
85
+ parseInt (AutonomousValues .l3F.text), // index 36
86
+ parseInt (AutonomousValues .l3G.text), // index 37
87
+ parseInt (AutonomousValues .l3H.text), // index 38
88
+ parseInt (AutonomousValues .l3I.text), // index 39
89
+ parseInt (AutonomousValues .l3J.text), // index 40
90
+ parseInt (AutonomousValues .l3K.text), // index 41
91
+ parseInt (AutonomousValues .l3L.text), // index 42
82
92
83
93
// L4 Coral Values
84
- parseInt (AutonomousValues .l3A.text), // index 34
85
- parseInt (AutonomousValues .l3B.text), // index 35
86
- parseInt (AutonomousValues .l3C.text), // index 36
87
- parseInt (AutonomousValues .l3D.text), // index 37
88
- parseInt (AutonomousValues .l3E.text), // index 38
89
- parseInt (AutonomousValues .l3F.text), // index 39
90
- parseInt (AutonomousValues .l3G.text), // index 40
91
- parseInt (AutonomousValues .l3H.text), // index 41
92
- parseInt (AutonomousValues .l3I.text), // index 42
93
- parseInt (AutonomousValues .l3J.text), // index 43
94
- parseInt (AutonomousValues .l3K.text), // index 44
95
- parseInt (AutonomousValues .l3L.text), // index 45
94
+ parseInt (AutonomousValues .l3A.text), // index 43
95
+ parseInt (AutonomousValues .l3B.text), // index 44
96
+ parseInt (AutonomousValues .l3C.text), // index 45
97
+ parseInt (AutonomousValues .l3D.text), // index 46
98
+ parseInt (AutonomousValues .l3E.text), // index 47
99
+ parseInt (AutonomousValues .l3F.text), // index 48
100
+ parseInt (AutonomousValues .l3G.text), // index 49
101
+ parseInt (AutonomousValues .l3H.text), // index 50
102
+ parseInt (AutonomousValues .l3I.text), // index 51
103
+ parseInt (AutonomousValues .l3J.text), // index 52
104
+ parseInt (AutonomousValues .l3K.text), // index 53
105
+ parseInt (AutonomousValues .l3L.text), // index 54
96
106
]);
97
107
}
98
108
99
109
/// Computes all teleoperated values and returns them as a single string separated by a caret
100
110
static String computeTeleopValues () {
101
111
return computeValues ([
102
- parseInt (TeleoperatedValues .coralNearL1.text), // index: 46
103
- parseInt (TeleoperatedValues .coralNearL2.text), // index: 47
104
- parseInt (TeleoperatedValues .coralNearL3.text), // index: 48
105
- parseInt (TeleoperatedValues .coralNearL4.text), // index: 49
106
- parseInt (TeleoperatedValues .coralFarL1.text), // index: 50
107
- parseInt (TeleoperatedValues .coralFarL2.text), // index: 51
108
- parseInt (TeleoperatedValues .coralFarL3.text), // index: 52
109
- parseInt (TeleoperatedValues .coralFarL4.text), // index: 53
110
- parseInt (TeleoperatedValues .coralMissed.text), // index: 54
111
- parseInt (TeleoperatedValues .algaeRemoved.text), // index: 55
112
- parseInt (TeleoperatedValues .algaeProcessor.text), // index: 56
113
- parseInt (TeleoperatedValues .algaeBarge.text), // index: 57
114
- parseInt (TeleoperatedValues .humanPlayerMisses.text),// index: 58
115
- parseInt (TeleoperatedValues .fieldCrosses.text), // index: 59
112
+ parseInt (TeleoperatedValues .coralNearL1.text), // index: 55
113
+ parseInt (TeleoperatedValues .coralNearL2.text), // index: 56
114
+ parseInt (TeleoperatedValues .coralNearL3.text), // index: 57
115
+ parseInt (TeleoperatedValues .coralNearL4.text), // index: 58
116
+ parseInt (TeleoperatedValues .coralFarL1.text), // index: 59
117
+ parseInt (TeleoperatedValues .coralFarL2.text), // index: 60
118
+ parseInt (TeleoperatedValues .coralFarL3.text), // index: 61
119
+ parseInt (TeleoperatedValues .coralFarL4.text), // index: 62
120
+ parseInt (TeleoperatedValues .coralMissed.text), // index: 63
121
+ parseInt (TeleoperatedValues .algaeRemoved.text), // index: 64
122
+ parseInt (TeleoperatedValues .algaeProcessor.text), // index: 65
123
+ parseInt (TeleoperatedValues .algaeBarge.text), // index: 66
124
+ parseInt (TeleoperatedValues .humanPlayerMisses.text), // index: 67
125
+ parseInt (TeleoperatedValues .fieldCrosses.text), // index: 68
116
126
]);
117
127
}
118
128
119
129
/// Computes all endgame values and returns them as a single string separated by a caret
120
130
static String computeEndgameValues () {
121
131
return computeValues ([
122
- parseString (EndgameValues .endgame.text), // index: 60
123
- parseString (EndgameValues .climbTime.text), // index: 61
132
+ parseString (EndgameValues .endgame.text), // index: 69
133
+ parseString (EndgameValues .climbTime.text), // index: 70
124
134
]);
125
135
}
126
136
127
137
/// Computes all comment values and returns them as a single string separated by a caret
128
138
static String computeCommentValues () {
129
139
return computeValues ([
130
- parseString (stripEmoji (CommentValues .autoComments.text)), // index: 62
131
- parseString (stripEmoji (CommentValues .autoOrder.text)), // index: 63
132
- parseString (stripEmoji (CommentValues .teleopComments.text)), // index: 64
133
- parseString (stripEmoji (CommentValues .endgameComments.text)) // index: 65
140
+ parseString (stripEmoji (CommentValues .autoComments.text)), // index: 71
141
+ parseString (stripEmoji (CommentValues .autoOrder.text)), // index: 72
142
+ parseString (stripEmoji (CommentValues .teleopComments.text)), // index: 73
143
+ parseString (stripEmoji (CommentValues .endgameComments.text)) // index: 74
134
144
]);
135
145
}
136
146
@@ -139,7 +149,7 @@ class QrcodeHelper {
139
149
return computeValues ([
140
150
parseString (OptionConstants .availableDriverstations
141
151
.indexOf (SettingValues .selectedDriverStation.text)
142
- .toString ()) // index: 66
152
+ .toString ()) // index: 75
143
153
]);
144
154
}
145
155
0 commit comments