|
CTS-SAT-1-OBC-Firmware
|
Functions | |
| list|dict | download_json (str url) |
| str | strip_readiness_prefix (str readiness_level) |
| str | escape_md_cell (str|None text) |
| str | render_telecommand_section (list[dict] telecommands) |
| str | render_config_variable_section (dict config_data) |
| None | generate_markdown_file (Path output_path) |
| None | main () |
Variables | |
| str | TELECOMMAND_LIST_URL = "https://raw.githubusercontent.com/CalgaryToSpace/CTS-SAT-1-Ground-Support/refs/heads/main/cts1_ground_support/bundled_data/cts_sat_1_telecommand_list.json" |
| str | CONFIG_VARIABLE_LIST_URL = "https://raw.githubusercontent.com/CalgaryToSpace/CTS-SAT-1-Ground-Support/refs/heads/main/cts1_ground_support/bundled_data/cts_sat_1_config_variable_list.json" |
| str | READINESS_LEVEL_PREFIX = "TCMD_READINESS_LEVEL_" |
| str | MD_FILE_TEMPLATE |
Generate a Markdown file listing all telecommands and configuration variables. The telecommand and configuration variable definitions are downloaded from the CTS-SAT-1-Ground-Support repository's bundled data files (which are themselves auto-generated from the OBC firmware source). Run this script with: ```bash pip install uv uv run docs/generation/build_tcmd_and_config_list.py ``` The `uv` tool automatically installs the required dependencies specified in the `dependencies` section below.
| list | dict download_json | ( | str | url | ) |
Downloads a JSON file from `url` and returns its parsed content.

| str escape_md_cell | ( | str | None | text | ) |
Makes a string safe to put inside a single Markdown table cell. Pipes are escaped, and newlines are replaced with `<br>` so multi-line docstrings render as multi-line cells.

| None generate_markdown_file | ( | Path | output_path | ) |
Downloads source data and writes the assembled Markdown file.


| None main | ( | void | ) |


| str render_config_variable_section | ( | dict | config_data | ) |
Renders the configuration variables section of the Markdown file.


| str render_telecommand_section | ( | list[dict] | telecommands | ) |
Renders the telecommand section of the Markdown file.


| str strip_readiness_prefix | ( | str | readiness_level | ) |
Strips the verbose `TCMD_READINESS_LEVEL_` prefix for nicer display.

| str build_tcmd_and_config_docs.CONFIG_VARIABLE_LIST_URL = "https://raw.githubusercontent.com/CalgaryToSpace/CTS-SAT-1-Ground-Support/refs/heads/main/cts1_ground_support/bundled_data/cts_sat_1_config_variable_list.json" |
| str build_tcmd_and_config_docs.MD_FILE_TEMPLATE |
| str build_tcmd_and_config_docs.READINESS_LEVEL_PREFIX = "TCMD_READINESS_LEVEL_" |
| str build_tcmd_and_config_docs.TELECOMMAND_LIST_URL = "https://raw.githubusercontent.com/CalgaryToSpace/CTS-SAT-1-Ground-Support/refs/heads/main/cts1_ground_support/bundled_data/cts_sat_1_telecommand_list.json" |