From 663da5ac07896d5e243e01289eb2025c8190e2dc Mon Sep 17 00:00:00 2001 From: Atharv Nagavarapu <30nagava@elmbrookstudents.org> Date: Mon, 8 Dec 2025 23:42:39 +0000 Subject: [PATCH] Update utils/FullDiagnostics.py --- utils/FullDiagnostics.py | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/utils/FullDiagnostics.py b/utils/FullDiagnostics.py index af9737c..591c00b 100644 --- a/utils/FullDiagnostics.py +++ b/utils/FullDiagnostics.py @@ -8,6 +8,9 @@ from BatteryDiagnostics import BatteryDiagnostics from MotorDiagnostics import MotorDiagnostics battery = BatteryDiagnostics() motor = MotorDiagnostics() +clearConfirmation = input("Do you want to clear the console before proceeding? Y/N (default: yes): ") +if(clearConfirmation == "Y" or clearConfirmation == "y" or clearConfirmation == "yes" or clearConfirmation == ""): + print("Clearing console... \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n") print(""" ███████████ █████ █████ ██████ █████ █████████ ██████ ██████ █████ █████████ █████████ ▒▒███▒▒▒▒▒███▒▒███ ▒▒███ ▒▒██████ ▒▒███ ███▒▒▒▒▒███ ▒▒██████ ██████ ▒▒███ ███▒▒▒▒▒███ ███▒▒▒▒▒███ @@ -17,20 +20,13 @@ print(""" ▒███ ▒███ ▒███ ▒▒█████ ▒███ ▒███ ▒███ ▒███ ▒███ ▒▒███ ███ ███ ▒███ █████ █████ █████ ▒▒█████ █████ █████ █████ █████ █████ ▒▒█████████ ▒▒█████████ ▒▒▒▒▒ ▒▒▒▒▒ ▒▒▒▒▒ ▒▒▒▒▒ ▒▒▒▒▒ ▒▒▒▒▒ ▒▒▒▒▒ ▒▒▒▒▒ ▒▒▒▒▒ ▒▒▒▒▒▒▒▒▒ ▒▒▒▒▒▒▒▒▒ - - The free & open-source diagnostics tool for LEGO® Education SPIKE™ Prime - Designed for FIRST LEGO League teams - Developed by Team 65266 — Lego Dynamics - + +The free and open source diagnostics tool for the LEGO® Education SPIKE™ Prime robots, designed for FIRST Lego League. +Developed by Team 65266, Lego Dynamics. """ ) -clearConfirmation = input("Do you want to clear the console before proceeding? Y/N (default: yes): ") -yeses = ["Y", "YES", "Yes", "yes", ""] -if(clearConfirmation in yeses): - print("Clearing console... \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n") while True: - print("\nWhat diagnostic do you want to perform?") print("Enter 'b' for Battery diagnostics") print("Enter 'm' for Motor diagnostics")