TI SensorTag 2 CC2650 服务计算(IR 温度 - MPU9250)

TI SensorTag 2 CC2650 Servis Calculations (IR temperature - MPU9250)

如何计算 CC2650 中的 IR 温度。

TI 温度:F000AA00-0451-4000-B000-000000000000

温度数据:f000aa01-0451-4000-b000-000000000000

我尝试根据温度数据特性中的数据计算物体和环境。对象数据高于 TI 应用程序中显示的红外温度。

Swift代码:

 static func calculateObjectAndAmbient(objectRaw:Int16, ambientRaw:Int16) -> (Double, Double)
    {
        let ambient = Double(ambientRaw)/128.0;
        let vObj2 = Double(objectRaw)*0.00000015625;
        let tDie2 = ambient + 273.15;
        let s0 = 6.4*pow(10,-14);
        let a1 = 1.75*pow(10,-3);
        let a2 = -1.678*pow(10,-5);
        let b0 = -2.94*pow(10,-5);
        let b1 = -5.7*pow(10,-7);
        let b2 = 4.63*pow(10,-9);
        let c2 = 13.4;
        let tRef = 298.15;
        let s = s0*(1+a1*(tDie2 - tRef)+a2*pow((tDie2 - tRef),2));
        let vOs = b0 + b1*(tDie2 - tRef) + b2*pow((tDie2 - tRef),2);
        let fObj = (vObj2 - vOs) + c2*pow((vObj2 - vOs),2);
        let object = pow(pow(tDie2,4) + (fObj/s),0.25) - 273.15;
        return (object, ambient)
    }

我也想计算MPU9250的服务数据

服务="F000AA80-0451-4000-B000-000000000000"

特征数据="F000AA81-0451-4000-B000-000000000000"

特征配置="F000AA82-0451-4000-B000-000000000000"

有说明书吗?我想访问 Gyro., Accel., Magn., data.

对不起我的英语。

提前致谢。

对象和环境的计算在 CC2650 中发生了变化。

如此新的 swift 计算,如果有人需要的话;

   static func calculateObjectAndAmbient(objectRaw:Int16, ambientRaw:Int16) -> (Double, Double)
    {
        let SCALE_LSB = 0.03125;
        let a = objectRaw >> 2;
        let Obj = Double(a) * SCALE_LSB

        let b = ambientRaw >> 2;
        let Amb = Double(b) * SCALE_LSB
        return (Obj, Amb)
   }

更多详情:sensortag2015

更多详情:TI Wiki