Skip to content

Adding packet parsing for status and error#119

Merged
EliasJRH merged 4 commits intomainfrom
radio_status_and_error
Aug 16, 2025
Merged

Adding packet parsing for status and error#119
EliasJRH merged 4 commits intomainfrom
radio_status_and_error

Conversation

@bskdany
Copy link
Copy Markdown
Contributor

@bskdany bskdany commented Aug 8, 2025

No description provided.

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"
}
},
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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])
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't forget to add the mission time to the dict as well, the identifier for the status itself can just be "status"

@EliasJRH EliasJRH marked this pull request as ready for review August 16, 2025 03:32
@EliasJRH EliasJRH merged commit 8f183e6 into main Aug 16, 2025
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants