paparazzi-devel
[Top][All Lists]
Advanced

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

Re: [Paparazzi-devel] Zoom control problems


From: Christophe De Wagter
Subject: Re: [Paparazzi-devel] Zoom control problems
Date: Wed, 13 Mar 2013 13:44:49 +0100

did you not receive my mail with the 3 missing defines?

try adding:

<define name="USE_LED_6" value="1" />
<define name="USE_LED_8" value="1" />
<define name="USE_LED_9" value="1" />

-Christophe 


On Wed, Mar 13, 2013 at 11:53 AM, Uttam Chandrashekhar <address@hidden> wrote:
Dear all,

I have the v4.0 software running on our system and I don't have Digital camera controls working (zoom in and zoom out controls). I have the LED Bank and pins defined in the firmware section, and things don't work still! This used to work on the older code. Has there been any changes to the way things are specified in the airframe file? I have digital_cam module loaded, and have tried putting the bank and pin nos. and the zoom in and zoom out LED defines in both the digital_cam section and the firmware section in the airframe file, no luck.

With the code compiled and working, clicking on the zoom in or zoom out controls on the GCS results in no voltage changes at the LPC I/O ports either, there's just some floating voltage there ( MISO and MOSI pins ). So my guess is the DC defines are not getting compiled, or are in the wrong area.

Here's the firmware section of the airframe file:

<modules>
<load name="cam_point.xml"/> 
<load name="digital_cam.xml">
 <define name="DC_SHUTTER_LED" value="6"/>
      <define name="DC_ZOOM_IN_LED" value="9"/>
      <define name="DC_ZOOM_OUT_LED" value="8"/>
</load>
</modules> 
  

  <firmware name="fixedwing">

<define name="PUSH" value="LED_ON"/>
      <define name="RELEASE" value="LED_OFF"/>
      <define name="LED_6_BANK" value="0"/> 
      <define name="LED_6_PIN" value="17"/>
      <define name="LED_8_BANK" value="0"/> 
      <define name="LED_8_PIN" value="19"/>
      <define name="LED_9_BANK" value="0"/>
      <define name="LED_9_PIN" value="18"/>     
      
    <target name="ap" board="twog_1.0">
     <!-- <define name="STRONG_WIND"/> -->
      <define name="WIND_INFO"/>
      <define name="WIND_INFO_RET"/>


     <!-- <define name="PUSH" value="LED_ON"/>
      <define name="RELEASE" value="LED_OFF"/>
      <define name="LED_6_BANK" value="0"/> 
      <define name="LED_6_PIN" value="17"/>
      <define name="LED_8_BANK" value="0"/> 
      <define name="LED_8_PIN" value="19"/>
      <define name="LED_9_BANK" value="0"/>
      <define name="LED_9_PIN" value="18"/>     
      <configure name="DC_SHUTTER_LED" value="6"/>
      <configure name="DC_ZOOM_IN_LED" value="9"/>
      <configure name="DC_ZOOM_OUT_LED" value="8"/>
-->
      <configure name="PERIODIC_FREQUENCY" value="120"/>
      <configure name="AHRS_PROPAGATE_FREQUENCY" value="100"/>
      <configure name="AHRS_CORRECT_FREQUENCY" value="100"/>
      <define name="AHRS_TRIGGERED_ATTITUDE_LOOP"/>

      <configure name="AHRS_ALIGNER_LED" value="3"/>
      <configure name="CPU_LED" value="3"/>

      
    </target>
    <target name="sim" board="pc"/>
<target name="tunnel" board="twog_1.0"/>

    <define name="AGR_CLIMB"/>
    <define name="LOITER_TRIM"/>
    <define name="ALT_KALMAN"/>

    <!-- Sensors -->
    <!--
    <subsystem name="ahrs" type="int_cmpl_quat">
      <define name="AHRS_GRAVITY_UPDATE_COORDINATED_TURN" />
    </subsystem>
    <subsystem name="imu" type="aspirin_i2c"/>
    -->
    <subsystem name="imu" type="aspirin_i2c"/>
    <subsystem name="ahrs" type="float_dcm">
<!--      <define name="USE_MAGNETOMETER" /> -->
    </subsystem>


    <subsystem name="radio_control" type="ppm"/>

    <!-- Communication -->
    <subsystem name="telemetry" type="transparent">
      <configure name="MODEM_BAUD" value="B9600"/>
    </subsystem>

    <!-- Actuators -->
    <subsystem name="control"/>
    <!-- Sensors -->
    <subsystem name="navigation"/>
    <subsystem name="gps" type="ublox"/>

         
      
</firmware>

--------------------------------------


Any clues?

-Thanks,
Uttam




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