paparazzi-devel
[Top][All Lists]
Advanced

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

[Paparazzi-devel] how to use digital_cam_i2c module


From: Refik Sever
Subject: [Paparazzi-devel] how to use digital_cam_i2c module
Date: Fri, 10 May 2013 12:23:18 +0000

Hello,

I am trying to use digital_cam_i2 module in master branch. I added these lines in my airframe xml file:

<modules main_freq="60">
   <load name="digital_cam_i2c.xml" >
   </load>  
 </modules> 

I also changed digital_cam_i2c.xml file to use I2C1:

 <makefile target="ap">
    <file name="atmega_i2c_cam_ctrl.c"/>
    <file name="dc.c"/>
      <define name="ATMEGA_I2C_DEV" value="i2c1"/>
      <define name="USE_I2C1" value="1"/>
      <define name="SENSOR_SYNC_SEND" value="1" />
  </makefile>

When I upload the code and run the GCS, in the settings>modules window start and stop buttons are activated. I commit these buttons and I observe the I2C SCL pin with oscilloscope, but there is no activity in SCL pin of I2C1.

Do I need to add a settings file and put the commands which I want to send to the camera in this file?

Could you please send sample airframe and settings xml files which uses digital_cam_i2c module?

Cheers,
Refik


reply via email to

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