paparazzi-devel
[Top][All Lists]
Advanced

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

Re: [Paparazzi-devel] While condition with stage_time not working as exp


From: Gautier Hattenberger
Subject: Re: [Paparazzi-devel] While condition with stage_time not working as expected
Date: Mon, 09 May 2011 17:28:43 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.14) Gecko/20110223 Thunderbird/3.1.8

Hi,

It is actually not possible that this code ever worked. The init_stage is called at each loop in the while cond="5 > stage_time", so stage_time is reseted each time. This is not a bug, children of while are stages, so if you have no child, you spend 0s in each of them...
What do you need to do ?

Gautier

On 09/05/2011 10:41, Simon Wilks wrote:
Hi,

I have tried using the following example (taken directly from the Paparazzi user's guide) and can't get it to work. 

<while cond="TRUE"> 
 <go wp="A"/> 
 <go wp="B"/> 
 <go wp="C"/> 
 <while cond="5 > stage_time"/>
</while>

What I have observed in the simulation is that it flies to A and B and at each point the stage time displayed in the GCS resets to zero and starts counting again as expected. As it hits C the stage time is again reset to zero and then while delay loop is hit, however, the stage time in GCS remains at zero and the plane happily keeps flying straight ahead until it hits the max allowed distance from home.

I was using Paparazzi code that was a couple of months old but synced to the latest today without any change in behavior.

Thanks,

Simon 
_______________________________________________ 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]