Skip to content

Commit

Permalink
NAMES: Added command aliases for control of names and messages.
Browse files Browse the repository at this point in the history
  • Loading branch information
zCoCo committed Apr 8, 2023
1 parent 7105a4f commit 4195199
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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."
)
}
Original file line number Diff line number Diff line change
@@ -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
"""
Expand Down
2 changes: 1 addition & 1 deletion Apps/GroundSoftware/scripts/utils/__command_aliases.py
Original file line number Diff line number Diff line change
Expand Up @@ -996,7 +996,7 @@ class Parameter(Enum):
DataPathway.WIRELESS
),

'roll_credits': (
'roll-credits': (
DataPathway.WIRED,
Magic.COMMAND,
'GroundInterface_RollCredits',
Expand Down

0 comments on commit 4195199

Please sign in to comment.