-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
keithmk
authored and
keithmk
committed
Feb 2, 2024
1 parent
93fd1c6
commit 99a7aa6
Showing
2 changed files
with
91 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 42 additions & 0 deletions
42
mil_common/utils/mil_tools/scripts/preflight/preflight_menus.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
from PyInquirer import prompt | ||
from rich.console import Console | ||
|
||
|
||
def display_start_menu(): | ||
console = Console() | ||
|
||
# Title | ||
console.print( | ||
"[bold green]Preflight Program - Autonomous Robot Verification[/bold green]\n", | ||
) | ||
|
||
# Description | ||
console.print( | ||
"Welcome to the Preflight Program, a tool inspired by the preflight checklists used by pilots before " | ||
"flying a plane. This program is designed to verify the functionality of all software and hardware " | ||
"systems on your autonomous robot. It ensures that everything is in working order, allowing you to " | ||
"safely deploy your robot with confidence.\n", | ||
) | ||
|
||
# Authors section | ||
console.print("\n[italic]Authors:[/italic]") | ||
console.print("Keith Khadar") | ||
console.print("Anthony Liao") | ||
console.print("Joshua Thomas\n") | ||
|
||
# Menu options | ||
start_menu = [ | ||
{ | ||
"type": "list", | ||
"name": "mode selection", | ||
"message": "Menu", | ||
"choices": [ | ||
"Run Preflight Full Test", | ||
"View Report", | ||
"Run Specific Test", | ||
"View Documentation", | ||
], | ||
}, | ||
] | ||
option = prompt(start_menu) | ||
return next(iter(option.values())) |