[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Paparazzi-devel] module cam added succesfully (solved)
From: |
Felix Ruess |
Subject: |
Re: [Paparazzi-devel] module cam added succesfully (solved) |
Date: |
Mon, 30 Aug 2010 21:25:41 +0200 |
Hi Chris,
I made cam a module and committed it. I put it under sw/airborne/modules/vision/
Just load the module like so:
<modules main_freq="60">
<load name="cam_point.xml">
<param name="POINT_CAM_YAW_PITCH" value="1"/>
<param name="SHOW_CAM_COORDINATES" value="1"/>
</load>
</modules>
These flags are already defined in the module xml:
<flag name="CAM"/>
<flag name="MOBILE_CAM"/>
<flag name="POINT_CAM"/>
Set the others as needed in the modules section of your airframe file
as shown in funjet_cam_example.xml or above.
Let us know if it works as expected :-)
Cheers, Felix
On Mon, Aug 30, 2010 at 9:08 PM, Chris <address@hidden> wrote:
> Hi Antoine
> I did manage to get the cam module loaded, the only problem is that the
> cam.h file needs to be
> also in the /sw/airborne/directory as various files need it by default.
> Here is the module that works when i place all the files in the
> /sw/airborne/modules/cam/" directory:
>
> <!DOCTYPE module SYSTEM "module.dtd">
>
> <module name="cam" >
> <header>
> <file name="cam.h"/>
> </header>
> <init fun="cam_init()"/>
> <periodic fun="cam_periodic()" freq="10."/>
> <makefile>
> <raw>
> #Example of RAW makefile part
> </raw>
>
> <flag name="CAM"/>
> <flag name="MOBILE_CAM"/>
> <flag name="POINT_CAM"/>
> <flag name="POINT_CAM_YAW_PITCH_NOSE"/>
> <flag name="SHOW_CAM_COORDINATES"/>
> <file name="cam.c"/>
> <file name="point.c"/>
> </makefile>
> </module>
>
> Also in the airframe file i added those lines:
> <modules main_freq="60">
> <load name="cam.xml"/>
> </modules>
>
> Chris
>
>
> _______________________________________________
> Paparazzi-devel mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/paparazzi-devel
>