Seneca-CDOT / simengine

simengine :: Hardware simulation engine for Alteeve's Anvil! Intelligent Availability platform and similar HA configurations
GNU General Public License v3.0
5 stars 7 forks source link

Fan RPM sensor values not simulated #129

Closed ylei-tsubame closed 4 years ago

ylei-tsubame commented 4 years ago

ScanCore's decision on whether a fan is operational or failing is dependent on the status of the sensor. According to this line, if a sensor doesn't have the ok status, it will gain a health weight. A node is considered to be less healthy as its total health weight increases.

In addition, rename the variable used for power from psu_current to psu_power to eliminate confusion.

ylei-tsubame commented 4 years ago

The RPM value is being simulated in the InputVoltageUp/Down events. Meaning, the RPM is not simulated when the PSU itself is powered down; see here.

Also simulate this in PowerUp/Down events.