Skip to content

Commit

Permalink
change power sensor names.
Browse files Browse the repository at this point in the history
  • Loading branch information
dboulware committed Dec 1, 2023
1 parent 3fcefb3 commit 690e147
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions scos_actions/actions/acquire_sea_data_product.py
Original file line number Diff line number Diff line change
Expand Up @@ -835,18 +835,18 @@ def add_temperature_and_humidity_sensors(self, all_switch_status: dict, switch_d

def add_power_sensors(self, all_switch_status: dict, switch_diag: dict ):
switch_diag["power_sensors"] = []
if "5vdc_monitor" in all_switch_status:
if "power_monitor5v" in all_switch_status:
switch_diag["power_sensors"].append(
{"name": "5v Monitor", "value": all_switch_status["5vdc_monitor"], "expected_value": 5.0})
if "15vdc_monitor" in all_switch_status:
{"name": "5v Monitor", "value": all_switch_status["power_monitor5v"], "expected_value": 5.0})
if "power_monitor15v" in all_switch_status:
switch_diag["power_sensors"].append(
{"name": "15v Monitor", "value": all_switch_status["15vdc_monitor"], "expected_value": 15.0})
if "24vdc_monitor" in all_switch_status:
{"name": "15v Monitor", "value": all_switch_status["power_monitor15v"], "expected_value": 15.0})
if "power_monitor24v" in all_switch_status:
switch_diag["power_sensors"].append(
{"name": "24v Monitor", "value": all_switch_status["24vdc_monitor"], "expected_value": 24.0})
if "28vdc_monitor" in all_switch_status:
{"name": "24v Monitor", "value": all_switch_status["power_monitor24v"], "expected_value": 24.0})
if "power_monitor28v" in all_switch_status:
switch_diag["power_sensors"].append(
{"name": "28v Monitor", "value": all_switch_status["28vdc_monitor"], "expected_value": 28.0})
{"name": "28v Monitor", "value": all_switch_status["power_monitor28v"], "expected_value": 28.0})

def add_heating_cooling(self, all_switch_status: dict, switch_diag: dict):
if "heating" in all_switch_status:
Expand Down

0 comments on commit 690e147

Please sign in to comment.