Skip to content

Commit

Permalink
V1.19.04
Browse files Browse the repository at this point in the history
  • Loading branch information
jgyates committed Dec 20, 2024
1 parent 8002dc6 commit 1a304a4
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions genmonlib/custom_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,8 @@ def IdentifyController(self):
self.NominalLineVolts = TempValue
elif self.StringIsInt(TempValue):
self.NominalLineVolts = int(TempValue)
elif type(TempValue) == str and TempValue.lower() == "unknown":
self.NominalLineVolts = 240
else:
self.LogDebug("Nominal Line Volts: " + str(self.NominalLineVolts))

Expand All @@ -291,6 +293,8 @@ def IdentifyController(self):
self.NominalBatteryVolts = TempValue
elif self.StringIsInt(TempValue):
self.NominalBatteryVolts = int(TempValue)
elif type(TempValue) == str and TempValue.lower() == "unknown":
self.NominalBatteryVolts = 24
else:
self.LogDebug("Nominal Battery Volts: " + str(self.NominalBatteryVolts))

Expand All @@ -303,6 +307,8 @@ def IdentifyController(self):
self.NominalFreq = TempValue
elif self.StringIsInt(TempValue):
self.NominalFreq = int(TempValue)
elif type(TempValue) == str and TempValue.lower() == "unknown":
self.NominalFreq = 60
else:
self.LogDebug("Nominal Frequency: " + str(self.NominalFreq))

Expand All @@ -316,6 +322,8 @@ def IdentifyController(self):
self.NominalRPM = TempValue
elif self.StringIsInt(TempValue):
self.NominalRPM = int(TempValue)
elif type(TempValue) == str and TempValue.lower() == "unknown":
self.NominalRPM = 3600 # default for genmon
else:
self.LogDebug("Nominal RPM: " + str(self.NominalRPM))

Expand Down

0 comments on commit 1a304a4

Please sign in to comment.