paparazzi-devel
[Top][All Lists]
Advanced

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

Re: [Paparazzi-devel] Mode switch selection?


From: Gautier Hattenberger
Subject: Re: [Paparazzi-devel] Mode switch selection?
Date: Sat, 13 Dec 2014 16:54:07 +0100
User-agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Thunderbird/31.3.0

Hi,

Actually yes, they are the same. The first section has a 'prefix' attibute set to "MODE_", the result is that the generated code will be:
#define MODE_MANUAL ...
The second section just give the full name, resulting in the same generated code.

Gautier

Le 13/12/2014 16:37, Ben Laurie a écrit :
The webpages say to use:

   <section name="MODE" prefix="MODE_">
     <define name="MANUAL" value="AP_MODE_ATTITUDE_DIRECT" />
     <define name="AUTO1" value="AP_MODE_ATTITUDE_Z_HOLD" />
     <define name="AUTO2" value="AP_MODE_NAV" />
   </section>

Example XML files have:

   <section name="AUTOPILOT">
     <define name="MODE_MANUAL" value="AP_MODE_ATTITUDE_DIRECT"/>
     <define name="MODE_AUTO1"  value="AP_MODE_HOVER_Z_HOLD"/>
     <define name="MODE_AUTO2"  value="AP_MODE_NAV"/>
   </section>

Are these actually effectively the same thing?

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