Adding packet parsing for status and error#119
Merged
Conversation
EliasJRH
requested changes
Aug 8, 2025
config.json
Outdated
Comment on lines
+16
to
+34
| "parsing_params": { | ||
| "error_codes": { | ||
| "0x00": "A general error has occurred", | ||
| "0x01": "The process in proc_id has died" | ||
| }, | ||
| "status_codes": { | ||
| "0x00": "All systems nominal", | ||
| "0x01": "The telemetry system just changed to the idle state", | ||
| "0x02": "The telemetry system just changed to the airborne state", | ||
| "0x03": "The telemetry system just changed to the ascent state", | ||
| "0x04": "The telemetry system just detected apogee", | ||
| "0x05": "The telemetry system just changed to the landed state", | ||
| "0x06": "The telemetry system is still in the idle state", | ||
| "0x07": "The telemetry system is still in the airborne state", | ||
| "0x08": "The telemetry system is still in the ascent stage", | ||
| "0x09": "The telemetry system is still in the descent stage", | ||
| "0x0A": "The telemetry system is still in the landed state" | ||
| } | ||
| }, |
Member
There was a problem hiding this comment.
These can probably be hardcoded as enums in the packet spec files. In the case that we want to dynamically update these, we'll need to reboot anyway. This would also leave this file as radio configs, and if sometime in the future we want more configs for things like anomalous faults, we can have that be a new file.
Contributor
Author
There was a problem hiding this comment.
are you sure? I was told in the chat to put it in the config
Comment on lines
+233
to
+234
| def output_formatted(self, into: dict[str, Any]): | ||
| add_to_dict(into, ["flight_status", "flight_status"], self.config.parsing_parameters["status_codes"][self.flight_status]) |
Member
There was a problem hiding this comment.
Don't forget to add the mission time to the dict as well, the identifier for the status itself can just be "status"
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.