|
From: | Felix Ruess |
Subject: | Re: [Paparazzi-devel] Flightplan call settings handlers |
Date: | Sun, 18 May 2014 14:16:42 +0200 |
Hi Gautier,Thanks. That is what I had for heading in the end, but for flight_altitude I still needed the { ...; FALSE; } trick.add:#define SetHeading(x) {navigation_SetNavHeading((x));FALSE;}#define SetFlightAltitude(x) {navigation_SetFlightAltitude((x));FALSE;}to navigation.h? (and wiki)-ChristopheOn Sun, May 18, 2014 at 10:36 AM, Gautier Hattenberger <address@hidden> wrote:
<set var="nav_heading" value="ANGLE_BFP_OF_REAL(RadOfDeg(180))"/>
a bit long but no dummy variables, nor changes.
Since the return value of the settings handler is not important, we could also change them to return FALSE so they can be used in flight plan call instruction as well.
Gautier
Le 18/05/2014 09:43, Christophe De Wagter a écrit :
How can the flightplan call "handlers" as used in settings?
E.g. navigation_SetNavHeading(x)
<set var="dummy" value="navigation_SetNavHeading(180)" /> needs an ugly dummy.
<call fun="navigation_SetNavHeading(180)" /> does never return as the settings handler does not return FALSE when ready.
<call fun="{navigation_SetNavHeading(180); FALSE; }" /> seems to work, but feels like a weird hack.
Is there another solution that I missed?
-Christophe
_______________________________________________ Paparazzi-devel mailing list address@hidden https://lists.nongnu.org/mailman/listinfo/paparazzi-devel
_______________________________________________
Paparazzi-devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/paparazzi-devel
_______________________________________________
Paparazzi-devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/paparazzi-devel
[Prev in Thread] | Current Thread | [Next in Thread] |