The UPS Load dial presents conflicting information, depending on the UPS being monitored. Typically, the load percentage and real value do not line up with what the maximum possible load is. This PR will aim to correct this by:
Disabling post-initialization modification of the UPS Load dial besides setting displayed values. It's a gauge of a percentage, which is always between 0 and 100 percent so there's no need to modify it outside of the Designer (unless the user wants to change dial tick settings - open to discussion)
Similarly remove references to the MinUPSLoad and MaxUPSLoad calibration settings since those were representing the percentage.
Redo how WinNUT determines Load percentage and output power;
Output power can be directly determined with ups.realpower or ups.realpower.nominal
If those options aren't available, calculate the max possible power by multiplying input.current.nominal * input.voltage.nominal and 0.8 to account for loss. To find the current output power, multiply the calculated max by ups.load (the percentage of max load)
Don't plan on having a fallback at this time. May need to allow user-specified max value in the future.
Load percentage can be directly determined with ups.load
This variable seems to be common enough that there's no reason to account for it missing. May need to add an alternative method later.
Closes #41
Related to #24, #69, #74, #100, #101 and #102
The UPS Load dial presents conflicting information, depending on the UPS being monitored. Typically, the load percentage and real value do not line up with what the maximum possible load is. This PR will aim to correct this by:
MinUPSLoad
andMaxUPSLoad
calibration settings since those were representing the percentage.ups.realpower
orups.realpower.nominal
input.current.nominal
*input.voltage.nominal
and 0.8 to account for loss. To find the current output power, multiply the calculated max byups.load
(the percentage of max load)ups.load
Closes #41 Related to #24, #69, #74, #100, #101 and #102