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

📄 bit.c

📁 源程序是在VisualDSP环境下开发出来的
💻 C
📖 第 1 页 / 共 2 页
字号:
}

////////////////////////////////////////////////////////////
void CHKWPNTproc()
{
	StringOut("DST",LEFT,TOP,YELLOW,BFINALRESULT);
	StringOut("LAT",ROW1+50,TOP,YELLOW,BFINALRESULT);
	STARBITproc(ROW1+50,TOP+20);
	StringOut("MAV",ROW1+50,TOP+30,YELLOW,BFINALRESULT);
	StringOut("LON",ROW3,TOP,YELLOW,BFINALRESULT);
	STARBITproc(ROW3,TOP+20);
	StringOut("NEXT No.",ROW3,TOP+30,YELLOW,BFINALRESULT);
	StringOut("H",ROW5,TOP,YELLOW,BFINALRESULT);

	///////////////////////////////////////////////////////LINE1
	StringOut("00",LEFT,LINE1+20,GREEN1,BFINALRESULT);
	StringOut("N35$15.3",ROW1+50,LINE1+20,GREEN1,BFINALRESULT);
	StringOut("04.00$",ROW1+50,LINE1+40,GREEN1,BFINALRESULT);
	StringOut("E130$10.1",ROW3,LINE1+20,GREEN1,BFINALRESULT);
	StringOut("01",ROW3,LINE1+40,GREEN1,BFINALRESULT);
	StringOut("1800",ROW5,LINE1+20,GREEN1,BFINALRESULT);
	///////////////////////////////////////////////////////END OF LINE1

	///////////////////////////////////////////////////////LINE2
	StringOut("00",LEFT,LINE1+70,GREEN1,BFINALRESULT);
	StringOut("N35$15.3",ROW1+50,LINE1+70,GREEN1,BFINALRESULT);
	StringOut("04.00$",ROW1+50,LINE1+90,GREEN1,BFINALRESULT);
	StringOut("E130$10.1",ROW3,LINE1+70,GREEN1,BFINALRESULT);
	StringOut("01",ROW3,LINE1+90,GREEN1,BFINALRESULT);
	StringOut("1800",ROW5,LINE1+70,GREEN1,BFINALRESULT);
	///////////////////////////////////////////////////////END OF LINE2
	StringOut("RTN",RIGHT,LINE5,GREEN1,BFINALRESULT);
	StringOut("STP",ROW4,BOTTOM,GREEN1,BFINALRESULT);
	StringOut("BACK",ROW5,BOTTOM,GREEN1,BFINALRESULT);
}
////////////////////////////////////////////////////////////
void CHKDATAproc(void)
{
	int i;
	StringOut("DATA",(LEFT+ROW1)/2,TOP,YELLOW,BFINALRESULT);
	StringOut("WSPAN",ROW1,LINE1,GREEN1,BFINALRESULT);
	StringOut("DH",ROW1,LINE1+50,GREEN1,BFINALRESULT);
	StringOut("WIND SPEED",ROW1,LINE1+100,GREEN1,BFINALRESULT);
	StringOut("WIND DIRECTION",ROW1,LINE1+150,GREEN1,BFINALRESULT);
	StringOut("ALP",ROW1,LINE1+200,GREEN1,BFINALRESULT);
	StringOut("R-CRS",ROW1,LINE1+250,GREEN1,BFINALRESULT);
	for(i=0;i<=5;i++)
	{	
		Int2Str(g_nParameters[11+i],ROW4,LINE1+i*50,CAMBLUE,BFINALRESULT,0);
	}
	StringOut("RTN",RIGHT,LINE5,GREEN1,BFINALRESULT);
}
///////////////////////////////////////////////////////////////////////
void NDLproc(void)
{
	int color1=GREEN1,color2=GREEN1;
	bool bISPwpnt=false,bISPdata=false,bNOTisp=false;
	switch(g_nParameters[3])
	{
		case 0:		bNOTisp=true;break;
		case 28:	{bNOTisp=true;bISPwpnt=true;bISPdata=true;}break;
		case 29:	{bNOTisp=true;bISPwpnt=true;}break;
		case 30:	{bNOTisp=true;bISPdata=true;}break;
		case 50:	CHKWPNTproc();break;
		case 51:	CHKDATAproc();break;
		default:	break;
	}
	if(bNOTisp)
	{
		if(bISPwpnt||bISPdata)
		{
			if((g_nParameters[7]&0x20)==0x20)
			StringOut("Loading",ROW3,LINE3,CAMBLUE,BFINALRESULT|BIGFONT);//STARBITproc(int x,int y);
			if(bISPwpnt)
			{
				if((g_nParameters[7]&0x80)==0x80)
					color1=CAMBLUE;
				else
					STARBITproc(LEFT,LINE1+20);
			}
			if(bISPdata)
			{
				if((g_nParameters[7]&0x40)==0x40)
					color2=CAMBLUE;
				else
					STARBITproc(LEFT,LINE2+20);
			}
		}
		StringOut("PFL",(LEFT+ROW1)/2,TOP,YELLOW,BFINALRESULT);
		StringOut("RTN",RIGHT,LINE5,GREEN1,BFINALRESULT);
		Int2Str(g_nParameters[11],ROW3,LINE2,GREEN1,BFINALRESULT|BIGFONT,0);
		StringOut("WPNT",LEFT,LINE1,color1,BFINALRESULT);
		StringOut("DATA",LEFT,LINE2,color2,BFINALRESULT);
		StringOut("ALL",RIGHT,LINE4,GREEN1,BFINALRESULT);
	}
	return;
}

void HANDISPproc()
{
	StringOut("DST",LEFT,TOP,YELLOW,BFINALRESULT);
	StringOut("LAT",ROW1+50,TOP,YELLOW,BFINALRESULT);
	STARBITproc(ROW1+50,TOP+20);
	StringOut("MAV",ROW1+50,TOP+30,YELLOW,BFINALRESULT);
	StringOut("LON",ROW3,TOP,YELLOW,BFINALRESULT);
	STARBITproc(ROW3,TOP+20);
	StringOut("NEXT No.",ROW3,TOP+30,YELLOW,BFINALRESULT);
	StringOut("H",ROW5,TOP,YELLOW,BFINALRESULT);

	///////////////////////////////////////////////////////LINE1
	StringOut("00",LEFT,LINE1+20,GREEN1,BFINALRESULT);
	StringOut("N35$15.3",ROW1+50,LINE1+20,GREEN1,BFINALRESULT);
	StringOut("04.00$",ROW1+50,LINE1+40,GREEN1,BFINALRESULT);
	StringOut("E130$10.1",ROW3,LINE1+20,GREEN1,BFINALRESULT);
	StringOut("01",ROW3,LINE1+40,GREEN1,BFINALRESULT);
	StringOut("1800",ROW5,LINE1+20,GREEN1,BFINALRESULT);
	///////////////////////////////////////////////////////END OF LINE1

	///////////////////////////////////////////////////////LINE2
	StringOut("00",LEFT,LINE1+70,GREEN1,BFINALRESULT);
	StringOut("N35$15.3",ROW1+50,LINE1+70,GREEN1,BFINALRESULT);
	StringOut("04.00$",ROW1+50,LINE1+90,GREEN1,BFINALRESULT);
	StringOut("E130$10.1",ROW3,LINE1+70,GREEN1,BFINALRESULT);
	StringOut("01",ROW3,LINE1+90,GREEN1,BFINALRESULT);
	StringOut("1800",ROW5,LINE1+70,GREEN1,BFINALRESULT);
	///////////////////////////////////////////////////////END OF LINE2
	StringOut("RTN",RIGHT,LINE5,GREEN1,BFINALRESULT);
	StringOut("STP",ROW4,BOTTOM,GREEN1,BFINALRESULT);
	StringOut("BACK",ROW5,BOTTOM,GREEN1,BFINALRESULT);
}
////////////////////////////////////////////////////////////
void 	MAINMODEproc(void)
{
	StringOut("ARTE",LEFT,LINE1,GREEN1,BFINALRESULT);
	StringOut("PPUC",LEFT,LINE2,GREEN1,BFINALRESULT);
	StringOut("SCRS",LEFT,LINE3,GREEN1,BFINALRESULT);
	StringOut("VPNT",LEFT,LINE4,GREEN1,BFINALRESULT);
	StringOut("HEP",LEFT,LINE5-30,GREEN1,BFINALRESULT);
	StringOut("MODE",(LEFT+ROW1)/2,TOP,YELLOW,BFINALRESULT);
	StringOut("TCN FAF",RIGHT,LINE1,GREEN1,BFINALRESULT);
	StringOut("SCA FAF",RIGHT,LINE2,GREEN1,BFINALRESULT);
	StringOut("SCA RWY",RIGHT,LINE3,GREEN1,BFINALRESULT);
	StringOut("ILS RWY",RIGHT,LINE4,GREEN1,BFINALRESULT);
	StringOut("TCN RWY",RIGHT,LINE5,GREEN1,BFINALRESULT);
	StringOut("SET",ROW5,TOP,GREEN1,BFINALRESULT);
	StringOut("HUD",ROW1,BOTTOM,GREEN1,BFINALRESULT);
}
////////////////////////////////////////////////////////////////////
void MODESETproc(void)
{

	
	StringOut("DEST",ROW1,LINE1,GREEN1,BFINALRESULT);
	StringOut("03",ROW1,LINE1+30,CAMBLUE,BFINALRESULT);
	StringOut("LAT",ROW1,LINE2,GREEN1,BFINALRESULT);
	StringOut("N35$15.3",ROW1,LINE2+30,CAMBLUE,BFINALRESULT);
	StringOut("LON",ROW1,LINE3,GREEN1,BFINALRESULT);
	StringOut("E130$10.0",ROW1,LINE3+30,CAMBLUE,BFINALRESULT);
	StringOut("H",ROW1,LINE4,GREEN1,BFINALRESULT);
	StringOut("1800",ROW1,LINE4+30,CAMBLUE,BFINALRESULT);
	
	StringOut("SET",(LEFT+ROW1)/2,TOP,YELLOW,BFINALRESULT);

	StringOut("MAV",ROW5,LINE2,GREEN1,BFINALRESULT);
	StringOut("02$30",ROW5,LINE2+30,CAMBLUE,BFINALRESULT);
	StringOut("TOT",ROW5,LINE3,GREEN1,BFINALRESULT);
	StringOut("1005.40",ROW5,LINE3+30,CAMBLUE,BFINALRESULT);
	
	StringOut("RTN",RIGHT,LINE5,GREEN1,BFINALRESULT);
	StringOut("PROG No.",ROW2-30,TOP,GREEN1,BFINALRESULT);
}
////////////////////////////////////////////////////////////////////
void DESTSETproc(void)
{
	HollowRect(ROW1-5,LINE1-5,ROW1+60,LINE1+25,PURPLE1,BFINALRESULT);
	StringOut("DEST",ROW1,LINE1,GREEN1,BFINALRESULT);
	StringOut("03",ROW1,LINE1+30,CAMBLUE,BFINALRESULT);
	Line(ROW1+12,LINE1+30+20,ROW1+12+12,LINE1+30+20,PURPLE1,BFINALRESULT);
	StringOut("LAT",ROW1,LINE2,GREEN1,BFINALRESULT);
	StringOut("N35$15.3",ROW1,LINE2+30,CAMBLUE,BFINALRESULT);
	StringOut("LON",ROW1,LINE3,GREEN1,BFINALRESULT);
	StringOut("E130$10.0",ROW1,LINE3+30,CAMBLUE,BFINALRESULT);
	StringOut("H",ROW1,LINE4,GREEN1,BFINALRESULT);
	StringOut("1800",ROW1,LINE4+30,CAMBLUE,BFINALRESULT);
	
	StringOut("SET",(LEFT+ROW1)/2,TOP,YELLOW,BFINALRESULT);

	StringOut("MAV",ROW5,LINE2,GREEN1,BFINALRESULT);
	StringOut("02$30",ROW5,LINE2+30,CAMBLUE,BFINALRESULT);
	StringOut("TOT",ROW5,LINE3,GREEN1,BFINALRESULT);
	StringOut("1005.40",ROW5,LINE3+30,CAMBLUE,BFINALRESULT);
	
	StringOut("CLR",ROW4,TOP,GREEN1,BFINALRESULT);
	StringOut("ENT",ROW5,TOP,GREEN1,BFINALRESULT);
	StringOut("N",ROW4,BOTTOM,GREEN1,BFINALRESULT);
	StringOut("E",ROW5,BOTTOM,GREEN1,BFINALRESULT);
	StringOut("1",LEFT,LINE1,GREEN1,BFINALRESULT);
	StringOut("2",LEFT,LINE2,GREEN1,BFINALRESULT);
	StringOut("3",LEFT,LINE3,GREEN1,BFINALRESULT);
	StringOut("4",LEFT,LINE4,GREEN1,BFINALRESULT);
	StringOut("5",LEFT,LINE5,GREEN1,BFINALRESULT);
	StringOut("6",RIGHT,LINE1,GREEN1,BFINALRESULT);
	StringOut("7",RIGHT,LINE2,GREEN1,BFINALRESULT);
	StringOut("8",RIGHT,LINE3,GREEN1,BFINALRESULT);
	StringOut("9",RIGHT,LINE4,GREEN1,BFINALRESULT);
	StringOut("0",RIGHT,LINE5,GREEN1,BFINALRESULT);
	
}
////////////////////////////////////////////////////////////////////
void RMFDMODEproc(void)
{
	switch(g_nParameters[3])
	{
		case 	0:	 	MAINMODEproc();break;
		case 	65:	 	MODESETproc();break;
		case 	66:	 	DESTSETproc();break;
		default	 :	break;
	}
	return;
}
////////////////////////////////////////////////////////////////////
void 	MANSETMAINproc(void)
{
	StringOut("WSPAN",ROW1,LINE1,GREEN1,BFINALRESULT);
	StringOut("060.0",ROW1,LINE1+30,CAMBLUE,BFINALRESULT);
	StringOut("ft.",ROW2,LINE1+30,CAMBLUE,BFINALRESULT);

	StringOut("DH",ROW1,LINE2,GREEN1,BFINALRESULT);
	StringOut("200.0",ROW1,LINE2+30,CAMBLUE,BFINALRESULT);
	StringOut("ft.",ROW2,LINE2+30,CAMBLUE,BFINALRESULT);

	StringOut("WIND SPEED",ROW1,LINE3,GREEN1,BFINALRESULT);
	StringOut("10.0",ROW1,LINE3+30,CAMBLUE,BFINALRESULT);
	StringOut("kn",ROW2,LINE3+30,CAMBLUE,BFINALRESULT);
	
	StringOut("MAN SET",(LEFT+ROW1)/2,TOP,YELLOW,BFINALRESULT);

	StringOut("BARD SET",ROW4,LINE1,GREEN1,BFINALRESULT);
	StringOut("780.0",ROW4,LINE1+30,CAMBLUE,BFINALRESULT);
	StringOut("mb",ROW5,LINE1+30,CAMBLUE,BFINALRESULT);

	StringOut("R-CRS",ROW4,LINE2,GREEN1,BFINALRESULT);
	StringOut("125.0",ROW4,LINE2+30,CAMBLUE,BFINALRESULT);
	StringOut("$",ROW5,LINE2+30,CAMBLUE,BFINALRESULT);

	StringOut("WIND DIRECTION",ROW4,LINE3,GREEN1,BFINALRESULT);
	StringOut("060.0",ROW4,LINE3+30,CAMBLUE,BFINALRESULT);
	StringOut("$",ROW5,LINE3+30,CAMBLUE,BFINALRESULT);

	
}
////////////////////////////////////////////////////////////////////
void MANSETWSPANproc(void)
{
	StringOut("WSPAN",ROW1,LINE1,GREEN1,BFINALRESULT);
	StringOut("060.0",ROW1,LINE1+30,CAMBLUE,BFINALRESULT);
	StringOut("ft.",ROW2,LINE1+30,CAMBLUE,BFINALRESULT);

	StringOut("DH",ROW1,LINE2,GREEN1,BFINALRESULT);
	StringOut("200.0",ROW1,LINE2+30,CAMBLUE,BFINALRESULT);
	StringOut("ft.",ROW2,LINE2+30,CAMBLUE,BFINALRESULT);

	StringOut("WIND SPEED",ROW1,LINE3,GREEN1,BFINALRESULT);
	StringOut("10.0",ROW1,LINE3+30,CAMBLUE,BFINALRESULT);
	StringOut("kn",ROW2,LINE3+30,CAMBLUE,BFINALRESULT);
	
	StringOut("MAN SET",(LEFT+ROW1)/2,TOP,YELLOW,BFINALRESULT);

	StringOut("BARD SET",ROW4,LINE1,GREEN1,BFINALRESULT);
	StringOut("780.0",ROW4,LINE1+30,CAMBLUE,BFINALRESULT);
	StringOut("mb",ROW5,LINE1+30,CAMBLUE,BFINALRESULT);

	StringOut("R-CRS",ROW4,LINE2,GREEN1,BFINALRESULT);
	StringOut("125.0",ROW4,LINE2+30,CAMBLUE,BFINALRESULT);
	StringOut("$",ROW5,LINE2+30,CAMBLUE,BFINALRESULT);

	StringOut("WIND DIRECTION",ROW4,LINE3,GREEN1,BFINALRESULT);
	StringOut("060.0",ROW4,LINE3+30,CAMBLUE,BFINALRESULT);
	StringOut("$",ROW5,LINE3+30,CAMBLUE,BFINALRESULT);	

	StringOut("CLR",ROW4,TOP,GREEN1,BFINALRESULT);
	StringOut("ENT",ROW5,TOP,GREEN1,BFINALRESULT);
	StringOut("N",ROW4,BOTTOM,GREEN1,BFINALRESULT);
	StringOut("E",ROW5,BOTTOM,GREEN1,BFINALRESULT);
	StringOut("1",LEFT,LINE1,GREEN1,BFINALRESULT);
	StringOut("2",LEFT,LINE2,GREEN1,BFINALRESULT);
	StringOut("3",LEFT,LINE3,GREEN1,BFINALRESULT);
	StringOut("4",LEFT,LINE4,GREEN1,BFINALRESULT);
	StringOut("5",LEFT,LINE5,GREEN1,BFINALRESULT);
	StringOut("6",RIGHT,LINE1,GREEN1,BFINALRESULT);
	StringOut("7",RIGHT,LINE2,GREEN1,BFINALRESULT);
	StringOut("8",RIGHT,LINE3,GREEN1,BFINALRESULT);
	StringOut("9",RIGHT,LINE4,GREEN1,BFINALRESULT);
	StringOut("0",RIGHT,LINE5,GREEN1,BFINALRESULT);
	
	Line(ROW1,LINE1+30+20,ROW1+12,LINE1+30+20,PURPLE1,BFINALRESULT);
	HollowRect(ROW1-5,LINE1-5,ROW1+80,LINE1+25,PURPLE1,BFINALRESULT);

}
/////////////////////////////////////////////////////////////////////
void MANSETproc(void)
{
	switch(g_nParameters[3])
	{
		case 	0:	 	MANSETMAINproc();break;
		case 	52:	 	MANSETWSPANproc();break;
//		case 	66:	 	DESTSETproc();break;
		default	 :	break;
	}
	return;
}
////////////////////////////////////////////////////////////////////
void MENUproc(void)
{
	StringOut("CLCK",LEFT,LINE1,GREEN1,BFINALRESULT);
	StringOut("GPS",LEFT,LINE2,GREEN1,BFINALRESULT);
	StringOut("HSD",LEFT,LINE3,GREEN1,BFINALRESULT);
	StringOut("EFIS",LEFT,LINE4,GREEN1,BFINALRESULT);
	StringOut("BIT",RIGHT,LINE1,GREEN1,BFINALRESULT);
	StringOut("PFL",RIGHT,LINE2,GREEN1,BFINALRESULT);
	StringOut("MFL",RIGHT,LINE3,GREEN1,BFINALRESULT);
	StringOut("DST",ROW2,TOP,GREEN1,BFINALRESULT);
	StringOut("APR",ROW3,TOP,GREEN1,BFINALRESULT);
	StringOut("NDL",ROW4,TOP,GREEN1,BFINALRESULT);
	StringOut("HUD",ROW1,BOTTOM,GREEN1,BFINALRESULT);
	StringOut("MENU",NAVCENTERX-50,NAVCENTERY-100,YELLOW,BFINALRESULT|BIGFONT);

}

⌨️ 快捷键说明

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