Hi Pascal,
I tried building with target=ap, and it worked! It still gives me errors when I select the target as Sim :( I'm using slicer1.xml like you suggested.
Thanks,
-Uttam
----- Original Message ----
From: Pascal Brisset <address@hidden>
To: Todd Sandercock <address@hidden>; address@hidden
Sent: Tuesday, 14 October, 2008 11:04:44 PM
Subject: Re: [Paparazzi-devel] Re: CAM_MODE in flightplan missing in DTD
Todd Sandercock wrote:
> There seems to be a problem with the sim, not the cam code. I found
> this in one of the aircraft files:
> ap.CFLAGS +=
-DCAM -DMOBILE_CAM -DPOINT_CAM -DPOINT_CAM_PITCH
> ap.srcs += point.c cam.c
These flags and the extra C source file must also be defined for the
sim target. Example in slicer1.xml airframe file:
sim.CFLAGS += -DCAM -DMOBILE_CAM -DPOINT_CAM -DPOINT_CAM_PITCH_ROLL
sim.srcs += cam.c point.c traffic_info.c
The cam_mode values are described in sw/airborne/cam.h
--Pascal