[simpits-tech] EPL-code quest

Rod Dale simpits-tech@simpits.org
Fri, 25 Jul 2003 09:01:40 +1000


Sorry Frank, I didn't read your message properly.
You want :

Hit "G"
LED On
3 sec delay
LED Off

Hit "G"
LED On
3 sec delay
LED Off

Is that correct ? If so then your original code should work. Unless there's 
a problem with this part of the code :

 > void Land_Gear.Landing_Gear.On(void)

I should explain that I use the ISA Epic and the syntax is different but 
some things still seem similar.
BTW isn't it unusual for landing gear indication to just flash on for 3 
secs ? All the systems I've seen the indicator/s stay ON when extended and 
OFF when retracted.

Rod


At 08:56 AM 7/24/03 +0200, you wrote:
>Hi Rod !
>Will this code turn on the LED for 3 sec... and turn it off again when i hit
>"G" ??
>
>All the best
>Frank
>
>----- Original Message -----
>From: "Rod Dale" <rodd@castle.net.au>
>To: <simpits-tech@simpits.org>
>Sent: Thursday, July 24, 2003 7:51 AM
>Subject: Re: [simpits-tech] EPL-code quest
>
>
> > Frank,
> > Try :
> >
> > void Land_Gear.Landing_Gear.On(void)
> > {
> >
> > keyhit(G);
> >
> > delay(300);
> >
> > setpoint(0,1,0b10000000);
> >
> > }
> >
> > void Land_Gear.Landing_Gear.Off(void)
> >
> > {
> > keyhit(G);
> >
> > delay(300);
> >
> > clearpoint(0,1,0b10000000);
> >
> > }
> >
> > Rod
> >
> > At 08:50 PM 7/23/03 +0200, you wrote:
> > >Hi All !
> > >
> > >I can't get this to work.... what do i do wrong ?
> > >
> > >void Land_Gear.Landing_Gear.On(void)
> > >
> > >{
> > >
> > >keyhit(G);
> > >
> > >setpoint(0,1,0b10000000);
> > >
> > >delay(300);
> > >
> > >clearpoint(0,1,0b10000000);
> > >
> > >}
> > >
> > >void Land_Gear.Landing_Gear.Off(void)
> > >
> > >{
> > >
> > >keyhit(G);
> > >
> > >setpoint(0,1,0b10000000);
> > >
> > >delay(300);
> > >
> > >clearpoint(0,1,0b10000000);
> > >
> > >}
> > >
> > >
> > >
> > >Frank
> > >
> > >
> > >_______________________________________________
> > >Simpits-tech mailing list
> > >Simpits-tech@simpits.org
> > >http://www.simpits.org/mailman/listinfo/simpits-tech
> > >To unsubscribe, please see the instructions at the bottom of the above
> > >page.  Thanks!
> >
> > _______________________________________________
> > Simpits-tech mailing list
> > Simpits-tech@simpits.org
> > http://www.simpits.org/mailman/listinfo/simpits-tech
> > To unsubscribe, please see the instructions at the bottom of the above
>page.  Thanks!
> >
>
>_______________________________________________
>Simpits-tech mailing list
>Simpits-tech@simpits.org
>http://www.simpits.org/mailman/listinfo/simpits-tech
>To unsubscribe, please see the instructions at the bottom of the above 
>page.  Thanks!