-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Restrict command parameters to configured states #1471
Comments
If we're talking just about Command Sender then I think that's reasonable. We'll always allow the user to override the command parameter in a script because that's really useful for edge case testing in the UUT software. If we disable the MANUALLY_ENTERED field in Command Sender they would still be able to go into the script output and edit it manually to send whatever. |
Disabling the MANUALLY_ENTERED in Command Sender sounds like a good near term solution. Could we add a flag that enforces the state enumeration? |
We can add a RANGE_CHECK_STATES flag |
We already have variations on cmd: |
The default behavior can't change until COSMOS 6, but we could add the new feature flag before then. |
First check out our main documentation site at https://openc3.com.
Is your feature request related to a problem? Please describe.
For a command parameter that has a set of states (i.e. an enumeration), would it be possible to restrict the user to only sending a parameter that is one of the states?
Describe the solution you'd like
The user cannot set a value via MANUALLY_ENTERED that is not a valid state.
Additional context
Cosmos allows the manually entering of a non-valid state, e.g., 777, and the sending the command with this parameter.
The text was updated successfully, but these errors were encountered: