[Top][All Lists]

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

Re: [Paparazzi-devel] possible bug when using the cam files

From: Pascal Brisset
Subject: Re: [Paparazzi-devel] possible bug when using the cam files
Date: Tue, 02 Mar 2010 15:59:52 +0100
User-agent: Mozilla-Thunderbird (X11/20090706)

Hi Chris,

the problem is linked to a var/include/cam.h file which has been wrongly generated from the cam.xml settings file.

- update from the subversion server, at least ./ svn update
- clean var/include : rm -fr var/include
- regenerate a proper var/include: make
- select basic.xml AND cam.xml for your settings
and you should be able to compile a simulator with the cam code (it works with slicer1.xml)


Chris wrote:
I encountered a strange behavior when tried to experiment with the pan tilt files. I modified the makefile section of the airframe file to include the cam.c and point.c files plus all the necessary flags for both the simulation and the ap part.
For the simulator i used:
########## video camera
sim.CFLAGS += -DCAM -DMOBILE_CAM -DPOINT_CAM -DPOINT_CAM_PITCH sim.srcs += point.c cam.c

i changed the settings xml file from "basic.xml" to "cam.xml" and tried the simulator, so far so good. Then i changed the settings file from cam.xml to cam_roll.xml or cam_pitch.xml
i don't exactly remember and tried to compile for a simulation.
Then hell broke loose with errors:
In file included from main_ap.c:50:
/home/hendrix/paparazzi3/var/Voyager/settings.h: In function ‘settings_get_value’: /home/hendrix/paparazzi3/var/Voyager/settings.h:35: error: ‘cam_mode’ undeclared (first use in this function) /home/hendrix/paparazzi3/var/Voyager/settings.h:35: error: (Each undeclared identifier is reported only once /home/hendrix/paparazzi3/var/Voyager/settings.h:35: error: for each function it appears in.)
/home/hendrix/paparazzi3/var/Voyager/settings.h:36: e

Strangely the cam.h file is included in the settings.h file and the "cam_mode"
variable is defined but cannot be found.

Now i get those errors when i use any cam related settings xml file
and try to compile for the simulator.
Strangely it compiles just fine for the autopilot.....
I tried reinstalling the software etc but i always get those errors when using any settings file that controls the camera despite the fact that all files and flags are included properly.

Paparazzi-devel mailing list

reply via email to

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