star tracker commands

This commit is contained in:
Jakob Meier
2022-02-27 16:17:24 +01:00
parent 14c6d7a525
commit aaf8d12662
5 changed files with 389 additions and 297 deletions

View File

@@ -12,17 +12,16 @@ LOGGER = get_console_logger()
class InputHelper:
def __init__(self, menu: dict):
"""
@brief Constructor
@param menu The describing the input options
@param menu The menu describing the input options
"""
self.menu = menu
def get_key(self) -> str:
"""
@brief Ask the user for input and returns the chosen key
@brief Asks the user for input and returns the chosen key
"""
key = self.menu_handler()
while key not in self.menu:
@@ -45,5 +44,3 @@ class InputHelper:
LOGGER.info(f"{key_string} | {description_string}")
key = input("Specify key: ")
return key