paparazzi-devel
[Top][All Lists]
Advanced

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

Re: [Paparazzi-devel] Float error in Camera Module


From: Felix Ruess
Subject: Re: [Paparazzi-devel] Float error in Camera Module
Date: Tue, 7 Oct 2014 18:54:26 +0200

Hi Nicolas,

can you please post the actual error output and the paparazzi_version you are using?

Cheers, Felix

On Tue, Oct 7, 2014 at 6:38 PM, Nicolas Quendez <address@hidden> wrote:
Hi,

Trying to implement the camera module, I had a « float error » when applying the wiki : 
http://wiki.paparazziuav.org/wiki/Pan_Tilt_Camera


   <servo name="CAM_PAN"  no="3" min="2000" neutral="1550" max="1000"/>
   <servo name="CAM_TILT" no="6" min="1000" neutral="1550" max="2000"/>
 
   <axis name="CAM_TILT" failsafe_value="0"/>
   <axis name="CAM_PAN"  failsafe_value="0"/>
 
   <set command="CAM_PAN"  value="@YAW"/>
   <set command="CAM_TILT" value="@GAIN1"/>
 
   <set servo="CAM_PAN"  value="@CAM_PAN"/>
   <set servo="CAM_TILT" value="@CAM_TILT"/>
 
 <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>


After reading some old posts, removing the unit=« deg »  solves the problem, but in my case, adding  code_unit=« deg »  did not. 

So perhaps it could be good to remove the unit=« deg » in the wiki ? 

Best regards
Nicolas


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