From 65db670cf484dd79ea49032900ed3fe1674f8966 Mon Sep 17 00:00:00 2001 From: "Allen.Wang" Date: Wed, 13 Apr 2022 17:21:32 +0800 Subject: meta-bletchley: phosphor-virtual-sensor: Update virtual HSC_Input_Power - Virtual_P12V_AUX_HSC_Input_Power Update calibration equation to adjust HSC Input Power, According to latest measurement from Power team update PWR to {68.082,131.899,194.753,256.391,316.721,376.108,433.569,490.850,546.187} ERR to {0.0425,0.0497,0.0537,0.0555,0.0565,0.0577,0.0587,0.0597,0.0603} Also update expression format to array of strings for better readability. related change: https://gerrit.openbmc-project.xyz/c/openbmc/phosphor-virtual-sensor/+/52975 TESTED on Bletchley: Virtual_P12V_AUX_HSC_Input_Power is reporting calibrated value from P12V_AUX_HSC_Input_Power: 'busctl get-property xyz.openbmc_project.VirtualSensor /xyz/openbmc_project/sensors/power/Virtual_P12V_AUX_HSC_Input_Power xyz.openbmc_project.Sensor.Value Value' d 26.9588 'busctl get-property xyz.openbmc_project.PSUSensor /xyz/openbmc_project/sensors/power/P12V_AUX_HSC_Input_Power xyz.openbmc_project.Sensor.Value Value' d 28.1046 Signed-off-by: Allen.Wang Change-Id: If934a3c6a1e5ebb8a9a870202e51953261fb1248 --- .../phosphor-virtual-sensor/virtual_sensor_config.json | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/meta-facebook/meta-bletchley/recipes-phosphor/sensors/phosphor-virtual-sensor/virtual_sensor_config.json b/meta-facebook/meta-bletchley/recipes-phosphor/sensors/phosphor-virtual-sensor/virtual_sensor_config.json index 981d3f5a83..b2fcf0841f 100644 --- a/meta-facebook/meta-bletchley/recipes-phosphor/sensors/phosphor-virtual-sensor/virtual_sensor_config.json +++ b/meta-facebook/meta-bletchley/recipes-phosphor/sensors/phosphor-virtual-sensor/virtual_sensor_config.json @@ -123,6 +123,22 @@ } ] }, - "Expression": "var PWR[9]:={71.786,130.828,193.845,255.12,315.468,374.183,427.233,486.983,545.588};var ERR[9]:={0.1002,0.04141,0.04927,0.05102,0.05308,0.05359,0.04437,0.05245,0.06011};switch { case HSC_PWR