Scouting: Remove submit balancing button
Combine the submit balancing and start teleop buttons to simply user
interface.
Signed-off-by: Filip Kujawa <filip.j.kujawa@gmail.com>
Change-Id: Ie37947e71d371083ab62a37089a68d2d50667254
diff --git a/scouting/www/entry/entry.component.ts b/scouting/www/entry/entry.component.ts
index 50d0cd9..edb1cf8 100644
--- a/scouting/www/entry/entry.component.ts
+++ b/scouting/www/entry/entry.component.ts
@@ -207,6 +207,13 @@
this.mobilityCompleted = true;
}
+ if (action.type == 'autoBalanceAction') {
+ // Timestamp is a unique index in the database so
+ // adding one makes sure it dosen't overlap with the
+ // start teleop action that is added at the same time.
+ action.timestamp += 1;
+ }
+
if (
action.type == 'pickupObjectAction' ||
action.type == 'placeObjectAction'