paparazzi-devel
[Top][All Lists]
Advanced

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

Re: [Paparazzi-devel] fly in the loop


From: Steven Wawryk
Subject: Re: [Paparazzi-devel] fly in the loop
Date: Mon, 03 Aug 2009 11:16:23 +0930
User-agent: Thunderbird 2.0.0.22 (X11/20090608)

What are you trying to achieve with the inner "while"? It seems to me
it's now doing nothing and can be removed altogether.

Steve


郭 flying pig wrote:
> Hi all
>
>   Thanks for the tip, I want to create the loop that aircraft just continue 
> fly in the loop.
>
>   After reading your e-mail that i also found out the stage_time is reset , 
> so i use  
>
> <block name="loop" strip_button="lop">
>  <while cond="TRUE">
>  <go wp="HOME"/>
>  <go wp="STDBY"/> 
>  <go wp="CLIMB"/>
>  <while cond="0 > stage_time"/>
>  </while>
>  </block>
>
>  then, everything works now.
>
>
>
> Thanks
>
>                                                                               
> Chen
>   
>> Date: Fri, 31 Jul 2009 11:16:41 +0930
>> From: address@hidden
>> To: address@hidden
>> Subject: Re: [Paparazzi-devel] fly in the loop
>>
>>
>> I have noticed previously that stage_time is reset to zero every iteration 
>> of a
>> while loop.  It works fine with "until=" attributes in other elements or
>> "stages", but not while elements.  I think this is a bug.
>>
>> Try another element that has an "until" attribute, like <attitude ... 
>> until="2
>> <= stage_time">
>>
>>
>> 郭 flying pig wrote:
>>     
>>> Hi all
>>>
>>>   I have try to create a loop flight in the basic.xml (from HOME --> STDBY 
>>> --->CLIMB ....repeat),  i use the following 
>>>
>>>
>>>
>>> <block name="loop" strip_button="lop">
>>>         <while cond="TRUE">
>>>         <go wp="HOME"/>
>>>         <go wp="STDBY"/> 
>>>         <go wp="CLIMB"/>
>>>         <while cond="2 > stage_time"/>
>>>         </while>
>>> </block>
>>>
>>>
>>>   The problem i have is that once i call the block, it will fly from HOME 
>>> --->STDBY ---->CLIMB , but after that it will not do anything until i call 
>>> the block again, does anyone one have any idea how to do it right? 
>>>
>>>   I have enclosed my basic2.xml for the flight plan.
>>>
>>>
>>> Thanks
>>>
>>>                                                                             
>>>         Chen
>>>
>>> _________________________________________________________________
>>> 輕鬆分享 – 利用 Windows Live 相簿分享相片
>>>
>>> http://download.live.com/toolbar
>>>
>>>
>>> ------------------------------------------------------------------------
>>>
>>> _______________________________________________
>>> Paparazzi-devel mailing list
>>> address@hidden
>>> http://lists.nongnu.org/mailman/listinfo/paparazzi-devel
>>>       
>> _______________________________________________
>> Paparazzi-devel mailing list
>> address@hidden
>> http://lists.nongnu.org/mailman/listinfo/paparazzi-devel
>>     
>
> _________________________________________________________________
> 用部落格分享照片、影音、趣味小工具和最愛清單,盡情秀出你自己 — Windows Live Spaces
> http://home.spaces.live.com/?showUnauth=1&lc=1028
>   
> ------------------------------------------------------------------------
>
> _______________________________________________
> Paparazzi-devel mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/paparazzi-devel
>   





reply via email to

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