diff options
author | Bruce Mitchell <bruce.mitchell@linux.vnet.ibm.com> | 2021-06-28 23:33:06 +0300 |
---|---|---|
committer | Bruce Mitchell <bruce.mitchell@linux.vnet.ibm.com> | 2021-06-30 17:13:58 +0300 |
commit | ab155da45cce2b1316de3d1269294376dc9c52a0 (patch) | |
tree | 5fdf3dfbe33e7e7bd688259fbd4a4fd80e36298c /meta-ibm/recipes-phosphor/sensors/phosphor-virtual-sensor/p10bmc/virtual_sensor_config.json | |
parent | fa28a72fff271a78f805b41373f049a12b060fcb (diff) | |
download | openbmc-ab155da45cce2b1316de3d1269294376dc9c52a0.tar.xz |
meta-ibm: Adds virtual Altitude sensor
The Altitude measurement is from the computation of
the DPS310 pressure sensor with this
"Expression": "44330.0 * (1.0 - ((P0/101325.0) ^ (1/5.255)))"
Tested: busctl introspect xyz.openbmc_project.VirtualSensor \
/xyz/openbmc_project/sensors/altitude/Altitude returned
results consistent with location of the Rainier system.
Signed-off-by: Bruce Mitchell <bruce.mitchell@linux.vnet.ibm.com>
Change-Id: I07b83dd6b8f4ccf0755ccbdc81c40976a3e571cd
Diffstat (limited to 'meta-ibm/recipes-phosphor/sensors/phosphor-virtual-sensor/p10bmc/virtual_sensor_config.json')
-rw-r--r-- | meta-ibm/recipes-phosphor/sensors/phosphor-virtual-sensor/p10bmc/virtual_sensor_config.json | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/meta-ibm/recipes-phosphor/sensors/phosphor-virtual-sensor/p10bmc/virtual_sensor_config.json b/meta-ibm/recipes-phosphor/sensors/phosphor-virtual-sensor/p10bmc/virtual_sensor_config.json index df51c66ab..8df08f94e 100644 --- a/meta-ibm/recipes-phosphor/sensors/phosphor-virtual-sensor/p10bmc/virtual_sensor_config.json +++ b/meta-ibm/recipes-phosphor/sensors/phosphor-virtual-sensor/p10bmc/virtual_sensor_config.json @@ -27,5 +27,31 @@ ] }, "Expression": "T0" + }, + { + "Desc": + { + "Name": "Altitude", + "SensorType": "altitude" + }, + "Threshold" : + { + "WarningHigh": 3050 + }, + "Params": + { + "DbusParam": + [ + { + "ParamName": "P0", + "Desc": + { + "Name": "Station_Pressure", + "SensorType": "pressure" + } + } + ] + }, + "Expression": "44330.0 * (1.0 - ((P0/101325.0) ^ (1/5.255)))" } ] |