[Top][All Lists]

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

[Paparazzi-devel] Float error in Camera Module

From: Nicolas Quendez
Subject: [Paparazzi-devel] Float error in Camera Module
Date: Tue, 7 Oct 2014 13:38:23 -0300


Trying to implement the camera module, I had a « float error » when applying the wiki :

   <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"/>
  <modules main_freq="60">
    <load name="cam_point.xml">
      <define name="POINT_CAM_PITCH_ROLL"  value="1"/>
      <define name="SHOW_CAM_COORDINATES" value="1"/>

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

reply via email to

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