ROS脚本代码
- #定义温度报警阀值比如30度
- :local tempbeep 30
- #定义电压报警阀值比如23.2V
- :local volbeep 232
- :if (([/system health get temperature]>$tempbeep) || ([/system health get voltage]>$volbeep)) do={
- :beep length=200ms frequency=3000
- :delay 200ms
- :beep length=200ms frequency=3500
- :delay 200ms
- :beep length=200ms frequency=3000
- :delay 200ms
- :beep length=200ms frequency=3500
- :delay 200ms
- :beep length=200ms frequency=3000
- :delay 200ms
- }
首先你的RB设备必须具备温度传感器和电压传感器,否则请不要使用。