Skip to content

Commit

Permalink
add park stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
Shom770 committed Feb 6, 2024
1 parent f23a6f7 commit 98be70e
Show file tree
Hide file tree
Showing 9 changed files with 10,820 additions and 5 deletions.
10 changes: 9 additions & 1 deletion falconscoutcore/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,17 @@ def _convert_string_to_proper_type(value: str) -> Any:
try:
return literal_eval(value)
except (ValueError, SyntaxError):
<<<<<<< HEAD
return value

=======
if value == "false":
return False
elif value == "true":
return True

return value.replace(",", "").replace("'", "").split(":")[0]
>>>>>>> 808c490 (changes to add parked to app)


def _process_data(*data: list[str], status_message_col) -> None:
Expand Down Expand Up @@ -168,7 +177,6 @@ def scan_qrcode(qr_code_col) -> None:
status_message_col=qr_code_col,
)


def write_dataval_errors(data_val_col) -> None:
"""Writes the data validation errors contained in `errors.json` into the column."""
with (
Expand Down
7 changes: 7 additions & 0 deletions falconscoutcore/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,16 @@
"TeleopGrid",
"TeleopMissed",
"TeleopNotes",
<<<<<<< HEAD
"EndgameAttemptedCharge",
"EndgameFinalCharge",
"FinalChargeTime",
=======
"Parked",
"ClimbStatus",
"Harmonized",
"ClimbSpeed",
>>>>>>> 808c490 (changes to add parked to app)
"EndgameNotes",
"Disable",
"Tippy",
Expand Down
Loading

0 comments on commit 98be70e

Please sign in to comment.