paparazzi-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Paparazzi-devel] flight plan block activation from the rc tx


From: Pascal Brisset
Subject: Re: [Paparazzi-devel] flight plan block activation from the rc tx
Date: Thu, 13 Aug 2009 08:50:09 +0200
User-agent: Thunderbird 2.0.0.22 (X11/20090608)

Hi,

you can do a test on a fbw_state->channels[] element in a global exception of your flight plan:

 <exceptions>
<exception cond="MAX_PPRZ/2 < fbw_state->channels[RADIO_GAIN1]" deroute="Standby"/>
 </exceptions>

where GAIN1 is one channel of your radio file. Values are from -MAX_PPRZ to +MAX_PPRZ

Unfortunately, because of the stupid lexical standard of XML, the character ">" is not allowed. So you have to define a macro somewhere else:

#define GetRCChannel(_x) fbw_state->channels[_x]

 <exceptions>
<exception cond="LessThan(5000,GetRCChannel(RADIO_GAIN1))" deroute="Standby"/>
 </exceptions>

--Pascal

chris wrote:
Does anyone knows a way to activate a specific flight plan block from the rc transmitter?
Chris



_______________________________________________
Paparazzi-devel mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/paparazzi-devel





reply via email to

[Prev in Thread] Current Thread [Next in Thread]