⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 251smallmeterdatatable.h

📁 卡车仪表的单片机程序
💻 H
字号:
//251SmallMeterDataTable.h
//******All Voltage must be arranged in ascending order
//AD0
const unint VoltageOil[]=
{
49, 
284, 
485
}; 

const unint MotorVoltageAngleOil[]=
{
0,
540,
1080
};

//AD1
const unint VoltageTemp[]=
{
165, 
186, 
263, 
603
}; 
const unint MotorVoltageAngleTemp[]=
{
1080, 
990, 
720, 
0 
};

//AD2
const unint VoltageOilP[]=
{
44, 
145, 
198, 
297, 
376, 
440, 
497, 
}; 
const unint MotorVoltageAngleOilP[]=
{
0, 
130, 
216, 
432, 
648, 
864, 
1080, 
};


//AD3
const unint VoltageAir1[]=
{
49, 
133, 
198, 
251, 
297, 
339, 
376, 
410, 
440, 
467, 
490, 
}; 
const unint MotorVoltageAngleAir1[]=
{
0, 
288, 
576, 
864, 
1152, 
1440, 
1728, 
2016, 
2304, 
2592, 
2880, 

};

//AD4
const unint VoltageAir2[]=
{
49, 
133, 
198, 
251, 
297, 
339, 
376, 
410, 
440, 
467, 
490, 
}; 
const unint MotorVoltageAngleAir2[]=
{
0, 
288, 
576, 
864, 
1152, 
1440, 
1728, 
2016, 
2304, 
2592, 
2880, 
};

//AD5
const unint VoltageVolt[]=
{
279, 
496, 
}; 
const unint MotorVoltageAngleVolt[]=
{
0, 
1080, 
};

const unint *VoltageTable[]=
{
VoltageOil,
VoltageTemp,
VoltageOilP,
VoltageAir1,
VoltageAir2,
VoltageVolt
};

const unint *MotorVoltageAngleTable[]=
{
MotorVoltageAngleOil,
MotorVoltageAngleTemp,
MotorVoltageAngleOilP,
MotorVoltageAngleAir1,
MotorVoltageAngleAir2,
MotorVoltageAngleVolt
};

const uchar VoltageTableN[] = //0..7
{
sizeof(VoltageOil)/sizeof(unint)-1,//2,//oil
sizeof(VoltageTemp)/sizeof(unint)-1,//3,//temp
sizeof(VoltageOilP)/sizeof(unint)-1,//6,//oilp
sizeof(VoltageAir1)/sizeof(unint)-1,//10,//air1
sizeof(VoltageAir2)/sizeof(unint)-1,//10,//air2
sizeof(VoltageVolt)/sizeof(unint)-1,//volt
};

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -