paparazzi-devel
[Top][All Lists]
Advanced

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

Re: [Paparazzi-devel] Changing IR_PITCH_NEUTRAL_DEFAULT in flightplan?


From: Nicholas Wagner
Subject: Re: [Paparazzi-devel] Changing IR_PITCH_NEUTRAL_DEFAULT in flightplan?
Date: Wed, 25 Mar 2009 17:55:11 -0600

Pascal -

Thanks so much for your help.  I swapped the oval for a multipoint path (a to b, b to c, c to d etc...) encapsulated in a for loop.  The simulation built and ran as expected.

Nick

On Wed, Mar 25, 2009 at 1:44 PM, Pascal Brisset <address@hidden> wrote:
Nicholas,

the variable is named ir_pitch_neutral (sw/airbrone/infrared.c:142), in radians, so

<set var="ir_pitch_neutral" value="ir_pitch_neutral+0.001"/>

and you probably need the corresponding header:

 <header>
...
#include "infrared.h"
</header>

Note that in your example the set instruction is never executed since an oval instruction never ends

--Pascal


Nicholas Wagner wrote:
Changing IR_PITCH_NEUTRAL_DEFAULT in flightplan?  It was suggested to me by a peer to have this done automatically by use of the set command in the flight plan but I am receiving an error on build:

Error:
In file included from nav.c:254:
/home/fcuav/paparazzi/var/TJ1/flight_plan.h: In function ‘auto_nav’:
/home/fcuav/paparazzi/var/TJ1/flight_plan.h:164: error: lvalue required as left operand of assignment

Offending block:
<block name="Oval 1-2" strip_button="Oval (wp 1-2)" strip_icon="oval.png">
     <oval p1="1" p2="2" radius="46"/>
     <set var="IR_PITCH_NEUTRAL_DEFAULT" value="IR_PITCH_NEUTRAL_DEFAULT+0.05"/>
 </block>

I know this appears dangerous but its easier than doing it every time a loop around the oval is complete... Any suggestions?

Nick

--
Nick Wagner
Mechanical Engineering
Colorado State University
C: 970.631.2989
E: address@hidden <mailto:address@hidden>
------------------------------------------------------------------------

_______________________________________________
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



--
Nick Wagner
Mechanical Engineering
Colorado State University
C: 970.631.2989
E: address@hidden

reply via email to

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