Skip to content

Commit

Permalink
add child column to cards.csv
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanpdx committed Dec 10, 2023
1 parent 2c4691d commit f23d2ef
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 23 deletions.
3 changes: 3 additions & 0 deletions oresat_configs/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ class Card:
"""OPD address."""
opd_always_on: bool
"""Keep the card on all the time. Only for battery cards."""
child: str = ""
"""Optional child node name. Useful for CFC cards."""


class OreSatConfig:
Expand Down Expand Up @@ -73,6 +75,7 @@ def __init__(self, oresat_id: OreSatId):
row["processor"],
int(row["opd_address"], 16),
row["opd_always_on"].lower() == "true",
row["child"],
)

self.configs = _load_configs(card_configs_path)
Expand Down
46 changes: 23 additions & 23 deletions oresat_configs/cards.csv
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
name,nice_name,node_id,processor,opd_address,opd_always_on
c3,C3,0x1,octavo,0x0,false
battery_1,Battery 1,0x4,stm32,0x18,true
battery_2,Battery 2,0x8,stm32,0x1F,true
solar_1,Solar 1,0xC,stm32,0x0,false
solar_2,Solar 2,0x10,stm32,0x0,false
solar_3,Solar 3,0x14,stm32,0x0,false
solar_4,Solar 4,0x18,stm32,0x0,false
solar_5,Solar 5,0x1C,stm32,0x0,false
solar_6,Solar 6,0x20,stm32,0x0,false
solar_7,Solar 7,0x24,stm32,0x0,false
solar_8,Solar 8,0x28,stm32,0x0,false
star_tracker_1,Star Tracker 1,0x2C,octavo,0x1C,false
star_tracker_2,Star Tracker 2,0x30,octavo,0x24,false
gps,GPS,0x34,octavo,0x19,false
adcs,ADCS,0x38,stm32,0x1A,false
rw_1,Reaction Wheel 1,0x3C,stm32,0x20,false
rw_2,Reaction Wheel 2,0x40,stm32,0x21,false
rw_3,Reaction Wheel 3,0x44,stm32,0x22,false
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,0x0,none,0x1E,false
name,nice_name,node_id,processor,opd_address,opd_always_on,child
c3,C3,0x1,octavo,0x0,false,
battery_1,Battery 1,0x4,stm32,0x18,true,
battery_2,Battery 2,0x8,stm32,0x1F,true,
solar_1,Solar 1,0xC,stm32,0x0,false,
solar_2,Solar 2,0x10,stm32,0x0,false,
solar_3,Solar 3,0x14,stm32,0x0,false,
solar_4,Solar 4,0x18,stm32,0x0,false,
solar_5,Solar 5,0x1C,stm32,0x0,false,
solar_6,Solar 6,0x20,stm32,0x0,false,
solar_7,Solar 7,0x24,stm32,0x0,false,
solar_8,Solar 8,0x28,stm32,0x0,false,
star_tracker_1,Star Tracker 1,0x2C,octavo,0x1C,false,
star_tracker_2,Star Tracker 2,0x30,octavo,0x24,false,
gps,GPS,0x34,octavo,0x19,false,
adcs,ADCS,0x38,stm32,0x1A,false,
rw_1,Reaction Wheel 1,0x3C,stm32,0x20,false,
rw_2,Reaction Wheel 2,0x40,stm32,0x21,false,
rw_3,Reaction Wheel 3,0x44,stm32,0x22,false,
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,

0 comments on commit f23d2ef

Please sign in to comment.