Demo entry 6352055

123

   

Submitted by anonymous on Mar 23, 2017 at 10:13
Language: C. Code size: 625 Bytes.

	while(1)
	{
		if(tick_1s < 30)
		{
			CarStop(); 	
		}
		if(tick_1s>=30&&tick_1s<70)
		{
		CarGoD();
		}
		if(tick_1s>=70&&tick_1s<73)
		{
		CarStop();
		}
		if(tick_1s>=73&&tick_1s<113)
		{
		CarBack();
		}
		if(tick_1s>=113&&tick_1s<133)
		{
		CarRight();
		}

		if(tick_1s>=133&&tick_1s<=143)
		{
		CarStop();
		}
		if(tick_1s>=143&&tick_1s<161)
		{
		CarGo();
		}
		if(tick_1s>=161&&tick_1s<179)
		{
		CarGoA();
		}
		if(tick_1s>=179&&tick_1s<197)
		{
		CarGoB();
		}
		if(tick_1s>=197&&tick_1s<215)
		{
		CarGoC();
		}
		if(tick_1s>=215)
		{
		CarStop();
		}
		    
	}
}

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).