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: Pascal Brisset
Subject: Re: [Paparazzi-devel] Changing IR_PITCH_NEUTRAL_DEFAULT in flightplan?
Date: Wed, 25 Mar 2009 20:44:07 +0100
User-agent: Thunderbird 2.0.0.21 (X11/20090318)

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





reply via email to

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