paparazzi-devel
[Top][All Lists]
Advanced

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

Re: [Paparazzi-devel] Use of State Variables in Flight Plan Exceptions


From: Felix Ruess
Subject: Re: [Paparazzi-devel] Use of State Variables in Flight Plan Exceptions
Date: Thu, 3 Sep 2015 10:50:10 +0200

Hi Luke,

in general you can use the state interface functions like you would expect, e.g.:
<exception cond="stateGetPositionEnu_f()->z > 2.0" deroute="Standby"/>

However for the ground speed it is a bit more tricky, since it returns a pointer to the variable and dereferencing makes the flight plan parser barf:
<exception cond="*stateGetHorizontalSpeedNorm_f() > 15.0" deroute="Standby"/>

@Gautier, any good idea on how to circumvent this?

I guess it would make sense to change the functions that return a single float or int (like stateGetHorizontalSpeedNorm_f) to return the value and not pointer...

Cheers, Felix

On Wed, Sep 2, 2015 at 4:35 AM, Luke Ionno <address@hidden> wrote:

Hello,

I’m sure this is a pretty simple thing to do, but how does one go about using values from state.h in flight plan exceptions?  In particular, I’m interested in using ground speed above/below certain thresholds to trigger particular flight-plan blocks.  Could somebody provide an example of how this would be done?

Thanks!

-Luke


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



reply via email to

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