This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

F2837xD_TempSensorConv.c



这个文件的一个函数

int16 GetTemperatureK(int16 sensorSample)
{
sensorSample = (int16)((2.5/tempSensor_scaleFactor)*(sensorSample));/* ??公式感觉有错误2.5/tempSensor_scaleFactor要反一下 */

return ((sensorSample - tempSensor_tempOffset)*tempSensor_tempSlope + FP_ROUND + KELVIN_OFF)/FP_SCALE;
}

不知道我提出的是否有问题?