paparazzi-devel
[Top][All Lists]
Advanced

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

Re: [Paparazzi-devel] pan-tilt camera control


From: Felix Ruess
Subject: Re: [Paparazzi-devel] pan-tilt camera control
Date: Fri, 5 Apr 2013 13:44:23 +0200

Hi Refik,

yes, unfortunately the cam code still expects these defines in degrees and not radians (because the preprocessor can't handle floats).
With the automatic unit conversion we have had for a while now, unit="deg" will convert it to radians (as that is the default unit for angles in the code).
So you either have to remove the unit so it won't be touched, or also specify code_unit="deg"
See http://paparazzi.enac.fr/wiki/Units

Would be great if you could update the wiki page accordingly.

Cheers, Felix


On Fri, Apr 5, 2013 at 1:19 PM, refik <address@hidden> wrote:

Hello,

 

We are trying to control a pan-tilt camera. We added the lines in http://paparazzi.enac.fr/wiki/Pan_Tilt_Camera

 to our Aircraft.xml file to the right place.

 

<section name="CAM" prefix="CAM_">

   <define name="TILT_MAX"      value="30" unit="deg"/>

   <define name="TILT_NEUTRAL"  value="0" unit="deg"/>

   <define name="TILT_MIN"      value="-30"  unit="deg"/>

   <define name="TILT0"        value="0" unit="deg"/>

 

   <define name="PAN_MAX"     value="45" unit="deg"/>

   <define name="PAN_NEUTRAL" value="0" unit="deg"/>

   <define name="PAN_MIN"     value="-45"  unit="deg"/>

   <define name="PAN0"          value="0" unit="deg"/>

 </section>

 

<modules main_freq="60">
   <load name="cam_point.xml">
     <define name="POINT_CAM_PITCH_ROLL"  value="1"/>
     <define name="SHOW_CAM_COORDINATES" value="1"/>
   </load>
 </modules>

 

 

It gives  an error duing build but when  “unit="deg" “ parts are removed, it builds successfully. It seems that the wiki must be updated.


Now we have 2 questions:

1.       How can we change the X_Y targets during flight?

 

2.       We want to control the camera with a menu (button,...) on GCS simulation window. We want to send commands through uart or i2c port.
How can we add new buttons for camera control on GCS simulation window ? How can we add these commands to the datalink?

Cheers,

Refik



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