Skip to content

Commit

Permalink
add diode test card config
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanpdx committed Apr 22, 2024
1 parent 63a42b9 commit 88b4ed9
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 1 deletion.
1 change: 1 addition & 0 deletions oresat_configs/base/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,4 @@
ST_CONFIG_PATH = f"{_CONFIGS_DIR}/star_tracker.yaml"
DXWIFI_CONFIG_PATH = f"{_CONFIGS_DIR}/dxwifi.yaml"
CFC_CONFIG_PATH = f"{_CONFIGS_DIR}/cfc.yaml"
DIODE_CONFIG_PATH = f"{_CONFIGS_DIR}/diode_test.yaml"
2 changes: 2 additions & 0 deletions oresat_configs/base/diode_test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
objects: []
tpdos: []
1 change: 1 addition & 0 deletions oresat_configs/cards.csv
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,4 @@ rw_4,Reaction Wheel 4,0x48,stm32,0x23,false,
dxwifi,DxWiFi,0x4C,octavo,0x1B,false,
cfc_processor,CFC Processor,0x50,octavo,0x1D,false,cfc_sensor
cfc_sensor,CFC Sensor,0x0,none,0x1E,false,
diode_test,Diode Test,0x54,stm32,0x11,false,
2 changes: 2 additions & 0 deletions oresat_configs/oresat0_5/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
BAT_CONFIG_PATH,
C3_CONFIG_PATH,
CFC_CONFIG_PATH,
DIODE_CONFIG_PATH,
DXWIFI_CONFIG_PATH,
FW_COMMON_CONFIG_PATH,
GPS_CONFIG_PATH,
Expand Down Expand Up @@ -40,4 +41,5 @@
"dxwifi": (DXWIFI_CONFIG_PATH, SW_COMMON_CONFIG_PATH),
"cfc_processor": (CFC_CONFIG_PATH, SW_COMMON_CONFIG_PATH),
"cfc_sensor": None,
"diode_test": (DIODE_CONFIG_PATH, FW_COMMON_CONFIG_PATH),
}
6 changes: 5 additions & 1 deletion oresat_configs/scripts/gen_fw_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ def build_parser(parser: ArgumentParser) -> ArgumentParser:
type=lambda x: x.lower().removeprefix("oresat"),
help="oresat mission, defaults to %(default)s",
)
parser.add_argument("card", help="card name; c3, battery, solar, adcs, or reaction_wheel")
parser.add_argument(
"card", help="card name; c3, battery, solar, adcs, reaction_wheel, or diode_test"
)
parser.add_argument("-d", "--dir-path", default=".", help='output directory path, default: "."')
return parser

Expand Down Expand Up @@ -688,6 +690,8 @@ def gen_fw_files(args: Optional[Namespace] = None) -> None:
od = config.od_db["adcs"]
elif arg_card in ["rw", "reaction_wheel"]:
od = config.od_db["rw_1"]
elif arg_card in ["diode", "diode_test"]:
od = config.od_db["diode_test"]
elif arg_card == "base":
od = config.fw_base_od
else:
Expand Down

0 comments on commit 88b4ed9

Please sign in to comment.