Skip to content

Commit

Permalink
Corrected type of noise_diode_path_enabled and changed power sensors …
Browse files Browse the repository at this point in the history
…to use capital V.
  • Loading branch information
dboulware committed Dec 1, 2023
1 parent 5c4f89c commit 34f00f6
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 17 deletions.
32 changes: 16 additions & 16 deletions scos_actions/actions/acquire_sea_data_product.py
Original file line number Diff line number Diff line change
Expand Up @@ -858,49 +858,49 @@ def add_temperature_and_humidity_sensors(

def add_power_sensors(self, all_switch_status: dict, switch_diag: dict):
switch_diag["power_sensors"] = []
if "power_monitor5v" in all_switch_status:
if "power_monitor5V" in all_switch_status:
switch_diag["power_sensors"].append(
{
"name": "5v Monitor",
"value": all_switch_status["power_monitor5v"],
"name": "5V Monitor",
"value": all_switch_status["power_monitor5V"],
"expected_value": 5.0,
}
)
else:
logger.warning("No power_monitor5v found in switch status")
logger.warning("No power_monitor5V found in switch status")

if "power_monitor15v" in all_switch_status:
if "power_monitor15V" in all_switch_status:
switch_diag["power_sensors"].append(
{
"name": "15v Monitor",
"value": all_switch_status["power_monitor15v"],
"name": "15V Monitor",
"value": all_switch_status["power_monitor15V"],
"expected_value": 15.0,
}
)
else:
logger.warning("No power_monitor15v found in switch status.")
logger.warning("No power_monitor15V found in switch status.")

if "power_monitor24v" in all_switch_status:
if "power_monitor24V" in all_switch_status:
switch_diag["power_sensors"].append(
{
"name": "24v Monitor",
"value": all_switch_status["power_monitor24v"],
"name": "24V Monitor",
"value": all_switch_status["power_monitor24V"],
"expected_value": 24.0,
}
)
else:
logger.warning("No power_monitor24v found in switch status")
logger.warning("No power_monitor24V found in switch status")

if "power_monitor28v" in all_switch_status:
if "power_monitor28V" in all_switch_status:
switch_diag["power_sensors"].append(
{
"name": "28v Monitor",
"value": all_switch_status["power_monitor28v"],
"name": "28V Monitor",
"value": all_switch_status["power_monitor28V"],
"expected_value": 28.0,
}
)
else:
logger.warning("No power_monitor28v found in switch status")
logger.warning("No power_monitor28V found in switch status")

def add_heating_cooling(self, all_switch_status: dict, switch_diag: dict):
if "heating" in all_switch_status:
Expand Down
2 changes: 1 addition & 1 deletion scos_actions/metadata/structs/ntia_diagnostics.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class Preselector(msgspec.Struct, **SIGMF_OBJECT_KWARGS):
lna_powered: Optional[bool] = None
lna_temp: Optional[float] = None
antenna_path_enabled: Optional[bool] = None
noise_diode_path_enabled: Optional = None
noise_diode_path_enabled: Optional[bool] = None
humidity: Optional[float] = None
door_closed: Optional[bool] = False

Expand Down

0 comments on commit 34f00f6

Please sign in to comment.