[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Paparazzi-devel] fly in the loop
From: |
Pascal Brisset |
Subject: |
Re: [Paparazzi-devel] fly in the loop |
Date: |
Mon, 03 Aug 2009 08:12:39 +0200 |
User-agent: |
Thunderbird 2.0.0.22 (X11/20090608) |
Hi,
there is a single "stage_time" variable which is reset at the beginning
of every stage. Here, there is a hidden empty stage inside the while
loop where the variable is reset. It is probably not enough documented.
However, what do you expect of doing nothing during 2s ? Except during
an initialisation phase (or a perch phase with an heli), on the ground,
you probably want to continue to fly ...
So the <attitude/> instruction is a good answer
--Pascal
Steven Wawryk wrote:
> 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
>