[Top][All Lists]

[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 (X11/20090608)


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

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

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]

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


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

Paparazzi-devel mailing list

reply via email to

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