code:
while (1) // Loop forever
{
updateChannels();
// Every 100 ms display the pulse timings on the LCD
// this is good for debugging your RC 3pi but not necessary if
// you remove the LCD
long position = ch[1].pulse / 10;
//position = position * 255 / minPulseTime;
if(get_ms() % 100)
{
lcd_goto_xy(0,0);
print("CH1 ");
print_unsigned_long(position);
if(position == position+2) PORTC = 0x01; // LED OUT 1 ?
if(position == position+4) PORTC = 0x03; // LED OUT 2 ?
}
}
help me…