Update utils/FullDiagnostics.py
This commit is contained in:
@@ -8,6 +8,9 @@ from BatteryDiagnostics import BatteryDiagnostics
|
|||||||
from MotorDiagnostics import MotorDiagnostics
|
from MotorDiagnostics import MotorDiagnostics
|
||||||
battery = BatteryDiagnostics()
|
battery = BatteryDiagnostics()
|
||||||
motor = MotorDiagnostics()
|
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("""
|
print("""
|
||||||
███████████ █████ █████ ██████ █████ █████████ ██████ ██████ █████ █████████ █████████
|
███████████ █████ █████ ██████ █████ █████████ ██████ ██████ █████ █████████ █████████
|
||||||
▒▒███▒▒▒▒▒███▒▒███ ▒▒███ ▒▒██████ ▒▒███ ███▒▒▒▒▒███ ▒▒██████ ██████ ▒▒███ ███▒▒▒▒▒███ ███▒▒▒▒▒███
|
▒▒███▒▒▒▒▒███▒▒███ ▒▒███ ▒▒██████ ▒▒███ ███▒▒▒▒▒███ ▒▒██████ ██████ ▒▒███ ███▒▒▒▒▒███ ███▒▒▒▒▒███
|
||||||
@@ -17,20 +20,13 @@ print("""
|
|||||||
▒███ ▒███ ▒███ ▒▒█████ ▒███ ▒███ ▒███ ▒███ ▒███ ▒▒███ ███ ███ ▒███
|
▒███ ▒███ ▒███ ▒▒█████ ▒███ ▒███ ▒███ ▒███ ▒███ ▒▒███ ███ ███ ▒███
|
||||||
█████ █████ █████ ▒▒█████ █████ █████ █████ █████ █████ ▒▒█████████ ▒▒█████████
|
█████ █████ █████ ▒▒█████ █████ █████ █████ █████ █████ ▒▒█████████ ▒▒█████████
|
||||||
▒▒▒▒▒ ▒▒▒▒▒ ▒▒▒▒▒ ▒▒▒▒▒ ▒▒▒▒▒ ▒▒▒▒▒ ▒▒▒▒▒ ▒▒▒▒▒ ▒▒▒▒▒ ▒▒▒▒▒▒▒▒▒ ▒▒▒▒▒▒▒▒▒
|
▒▒▒▒▒ ▒▒▒▒▒ ▒▒▒▒▒ ▒▒▒▒▒ ▒▒▒▒▒ ▒▒▒▒▒ ▒▒▒▒▒ ▒▒▒▒▒ ▒▒▒▒▒ ▒▒▒▒▒▒▒▒▒ ▒▒▒▒▒▒▒▒▒
|
||||||
|
|
||||||
The free & open-source diagnostics tool for LEGO® Education SPIKE™ Prime
|
The free and open source diagnostics tool for the LEGO® Education SPIKE™ Prime robots, designed for FIRST Lego League.
|
||||||
Designed for FIRST LEGO League teams
|
Developed by Team 65266, Lego Dynamics.
|
||||||
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:
|
while True:
|
||||||
|
|
||||||
|
|
||||||
print("\nWhat diagnostic do you want to perform?")
|
print("\nWhat diagnostic do you want to perform?")
|
||||||
print("Enter 'b' for Battery diagnostics")
|
print("Enter 'b' for Battery diagnostics")
|
||||||
print("Enter 'm' for Motor diagnostics")
|
print("Enter 'm' for Motor diagnostics")
|
||||||
|
|||||||
Reference in New Issue
Block a user