using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Wit.SDK.Modular.Sensor.Utils { /// /// 9轴倾角传感器帮助类 /// public class MWT925Helper { /// /// 解锁命令 /// /// public static byte[] Unlock(byte addr) { return Modbus16Utils.GetWrite(addr, 0x69, 0xB588); } /// /// 加计校准 /// /// public static byte[] AccelerationCalibration(byte addr) { return Modbus16Utils.GetWrite(addr, 0x01, 0x01); } /// /// 开始磁场校准 /// /// public static byte[] BeginFieldCalibration(byte addr) { return Modbus16Utils.GetWrite(addr, 0x01, 0x07); } /// /// 结束磁场校准 /// /// public static byte[] EndFieldCalibration(byte addr) { return Modbus16Utils.GetWrite(addr, 0x01, 0x00); } /// /// 波特率调整 /// /// public static byte[] SetBaudRate(byte addr, ushort value) { return Modbus16Utils.GetWrite(addr, 0x04, value); } /// /// 设置输出内容 /// /// /// public static byte[] SetBackContent(byte addr, ushort value) { return Modbus16Utils.GetWrite(addr, 0x02, value); } // 带宽调整 // 量程调整 // 滤波参数 } }