Users Guide

$ cat in_temp_offset
$ cat in_temp_raw
$ cat in_temp_scale
要从运动传感器检索数据请运行命令。
$ cat in_accel_scale_available
$ cat in_accel_*_scale
$ cat in_accel_*_raw
要从压力传感器检索数据请运行命令。
$ cat in_pressure_raw
$ cat in_pressure_scale
转换原始数据以供使用
在表格中应用公式以将收集的原始数据转换为可使用的测量值。
. 17: 转换相对湿度和温度传感器的原始数据
相对湿度和温度传感器
ST Micro HTS221
相对湿度 (%) = (in_humidityrelative_raw + in_humidityrelative_offset) * in_humidityrelative_scale
温度摄氏度= (in_temp_raw + in_temp_offset) * in_temp_scale
. 18: 转换运动传感器原始数据
运动传感器 - 加速计 ST Micro LNG2DMTR
accel_{x/y/z} (m/s^2) = in_accel_{x/y/z}_raw * in_accel_{x/y/z}_scale
. 19: 转换压力传感器原始数据
压力传感器
ST Micro LPS22HB
Pressure (hPa) = in_pressure_raw * in_pressure_scale * 10
温度 (m degC) = in_temp_raw * in_temp_scale
点火针
点火针可用于从 S3S4 S5 状态电源状态唤醒系统。用户可以使用操作系统电源管理来配置 S3S4 S5 电源状态并关机。
: 有关配置点火针使用 system.power-key-action 命令的更多信息请参阅 https://docs.ubuntu.com/core/en/
reference/core-configuration
指定按下电源按钮时要采取的操作。
. 20: 点火针的值和配置选项
ignore
不执行任何操作
poweroff默认设置
关闭系统
reboot
重新引导系统
halt
停止系统
kexec
直接引导新内核
suspend
暂挂系统
hibernate
休眠系统
hybrid-sleep 暂挂两个磁盘和 RAM
设置操作系统
63