Skip to content
This repository was archived by the owner on May 5, 2024. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions lib/parts/views/scouting.dart
Original file line number Diff line number Diff line change
Expand Up @@ -506,6 +506,7 @@ class _ScoutingViewState extends State<ScoutingView>
title: "Tele-op"
),
child: form_col(<Widget>[
/*
form_label("Pieces Scored",
child: PlusMinus(
initialValue: context
Expand All @@ -522,6 +523,7 @@ class _ScoutingViewState extends State<ScoutingView>
.add(TeleOpUpdateEvent());
},
)),
*/
form_label("Plays Defense",
child: BasicToggleSwitch(
initialValue: context
Expand Down
6 changes: 3 additions & 3 deletions lib/user/models/team_bloc.dart
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ class TeleOpInfo extends ScoutingInfo
scoredSpeaker: scoredSpeaker,
missedSpeaker: missedSpeaker,
scoredAmp: scoredAmp,
piecesScored: piecesScored,
piecesScored: /*piecesScored*/ scoredSpeaker + scoredAmp + scoredWhileAmped,
missedAmp: missedAmp,
scoredWhileAmped: scoredWhileAmped,
driverRating: driverRating);
Expand All @@ -183,7 +183,7 @@ class TeleOpInfo extends ScoutingInfo
"scoredSpeaker": scoredSpeaker,
"missedSpeaker": missedSpeaker,
"scoredAmp": scoredAmp,
"piecesScored": piecesScored,
"piecesScored": /*piecesScored*/ scoredSpeaker + scoredAmp + scoredWhileAmped,
"missedAmp": missedAmp,
"scoredWhileAmped": scoredWhileAmped,
"driverRating": driverRating
Expand All @@ -208,7 +208,7 @@ class TeleOpInfo extends ScoutingInfo
String toCompatibleFormat() {
return jsonEncode(<String, dynamic>{
"def": playsDefense,
"pieces": piecesScored,
"pieces": /*piecesScored*/ scoredSpeaker + scoredAmp + scoredWhileAmped,
"undSpker": underStage,
"spker": scoredSpeaker,
"missSpker": missedSpeaker,
Expand Down