diff --git a/Apps/GroundSoftware/config/command_aliases/basic_command_aliases.py b/Apps/GroundSoftware/config/command_aliases/basic_command_aliases.py index f8d83551..4cf2a118 100644 --- a/Apps/GroundSoftware/config/command_aliases/basic_command_aliases.py +++ b/Apps/GroundSoftware/config/command_aliases/basic_command_aliases.py @@ -76,5 +76,48 @@ def ALIASES(standards: DataStandards) -> CommandAliases: DataPathway.WIRED, Magic.WATCHDOG_COMMAND, comment="Tell WD to STOP monitoring Herc to see if it's unresponsive." + ), + + 'roll-credits': PreparedCommand( + 'GroundInterface_RollCredits', + OrderedDict(on=True), + DataPathway.WIRED, + Magic.COMMAND, + comment="Tell the Rover it's allowed to emit names and messages." + ), + 'names-start': PreparedCommand( + 'GroundInterface_RollCredits', + OrderedDict(on=True), + DataPathway.WIRED, + Magic.COMMAND, + comment="Tell the Rover it's allowed to emit names and messages." + ), + 'names-stop': PreparedCommand( + 'GroundInterface_RollCredits', + OrderedDict(on=False), + DataPathway.WIRED, + Magic.COMMAND, + comment="Tell the Rover it's NOT allowed to emit names and messages." + ), + 'names-1s': PreparedCommand( + 'GroundInterface_SetNameAndMessagePeriod', + OrderedDict(seconds=1), + DataPathway.WIRED, + Magic.COMMAND, + comment="Tell the Rover to emit a new name or message NO FASTER THAN once every 1s." + ), + 'names-5s': PreparedCommand( + 'GroundInterface_SetNameAndMessagePeriod', + OrderedDict(seconds=5), + DataPathway.WIRED, + Magic.COMMAND, + comment="Tell the Rover to emit a new name or message NO FASTER THAN once every 5s." + ), + 'names-10s': PreparedCommand( + 'GroundInterface_SetNameAndMessagePeriod', + OrderedDict(seconds=10), + DataPathway.WIRED, + Magic.COMMAND, + comment="Tell the Rover to emit a new name or message NO FASTER THAN once every 10s." ) } diff --git a/Apps/GroundSoftware/config/command_aliases/standard_command_aliases.py b/Apps/GroundSoftware/config/command_aliases/standard_command_aliases.py index 39d6b160..8f62fb68 100644 --- a/Apps/GroundSoftware/config/command_aliases/standard_command_aliases.py +++ b/Apps/GroundSoftware/config/command_aliases/standard_command_aliases.py @@ -1,9 +1,8 @@ """ Shorthand aliases for common ground commands used during testing. -(A quick hack for EMI/EMC testing). If you want to explore the Data Standards to build new commands, run: -`pyenv exec python datastandards_lookup.py`. +`make standards` from `Apps/GroundSoftware`. Last Update: 03/10/2023 """ diff --git a/Apps/GroundSoftware/scripts/utils/__command_aliases.py b/Apps/GroundSoftware/scripts/utils/__command_aliases.py index 52e1146c..ef4c8906 100644 --- a/Apps/GroundSoftware/scripts/utils/__command_aliases.py +++ b/Apps/GroundSoftware/scripts/utils/__command_aliases.py @@ -996,7 +996,7 @@ class Parameter(Enum): DataPathway.WIRELESS ), - 'roll_credits': ( + 'roll-credits': ( DataPathway.WIRED, Magic.COMMAND, 'GroundInterface_RollCredits',