|
From: | Christophe De Wagter |
Subject: | Re: [Paparazzi-devel] InsideGreen() or non-circular mission boundary? |
Date: | Tue, 4 Mar 2014 10:16:54 +0100 |
Hi Gautier,
thanks for offering help. I did not know that it auto-generates these functions. Interesting.
I tried to use the exception with and without the hight limitation. Still it will jump to "Center" immediately after starting up. If, during simulation, I manually switch to any other block it will jump right back to "Center". It looks as if
!(InsideGreen(GetPosX(),GetPosY()))is TRUE all the time (not InsideGreen).
I am attaching my flight plan. Maybe you can find my mistake.
Simon
Am 04.03.2014 00:06, schrieb Gautier Hattenberger:
Hi,
The InsideXxxx() functions are generated with the flight plan. You can find them in var/<your AC name>/generated/flight_plan.h
For the fact that it immediately turns towards your CENTER waypoint, it all depends on how you have defined the sector and how you are using it, so if you want more help you should provide your flight plan as well.
Gautier
Le 03/03/2014 23:51, Simon Liebold a écrit :
Hello,
yesterday, in the last light of the day, I finally managed to get my plane into the air. Just on AUTO1 so far. I had to navigate it back by looking at the GCS screen and land before it got completely dark. Phew!
AUTO2 is next. And here is my question around failsafe features: Since I have enough space in one direction and not so much in the other I am thinking of not only using the max_dist_from_home but also to define a non-circular mission boundary.
I defined the "Green" sector and the "_CENTER" waypoint within. Now, the example in the wiki shows a function call InsideGreen() but I did not find it in the sources. Without it will (and it does in the simulation) turn towards the "_CENTER" immediately because the function call evaluates to FALSE.
Has anybody implemented this function yet?
Simon
_______________________________________________ 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] |