paparazzi-devel
[Top][All Lists]
Advanced

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

Re: [Paparazzi-devel] Problem compiling with a custom written subroutine


From: Felix Ruess
Subject: Re: [Paparazzi-devel] Problem compiling with a custom written subroutine (zamboni survey)
Date: Sun, 10 Mar 2013 17:37:40 +0100

Hi Jorn,

What compile error do you get? Still this one?
/home/jorn/paparazzi/var/My_Lisa_Skywalker/ap/subsystems/nav.o: In function `auto_nav':
/home/jorn/paparazzi/var/My_Lisa_Skywalker/generated/flight_plan.h:191: undefined reference to `init_zamboni_survey'
/home/jorn/paparazzi/var/My_Lisa_Skywalker/generated/flight_plan.h:195: undefined reference to `zamboni_survey'

Did you declare those two functions in your subsystems/navigation/zamboni_survey.h file?

Cheers, Felix

On Sun, Mar 10, 2013 at 12:49 AM, Jorn Anke <address@hidden> wrote:

What I did try was (like before) to add; $(TARGET).srcs += $(SRC_SUBSYSTEMS)/navigation/zamboni_survey.c
to the navigation_extra.makefile  :
__________________
# Hey Emacs, this is a -*- makefile -*-

# standard and extra fixed wing navigation

#add these to all targets

$(TARGET).CFLAGS += -DNAV
$(TARGET).srcs += $(SRC_SUBSYSTEMS)/nav.c
$(TARGET).srcs += $(SRC_SUBSYSTEMS)/navigation/common_flight_plan.c
$(TARGET).srcs += $(SRC_SUBSYSTEMS)/navigation/traffic_info.c
$(TARGET).srcs += $(SRC_SUBSYSTEMS)/navigation/nav_survey_rectangle.c $(SRC_SUBSYSTEMS)/navigation/nav_line.c

$(TARGET).srcs += $(SRC_SUBSYSTEMS)/navigation/nav_cube.c
$(TARGET).srcs += $(SRC_SUBSYSTEMS)/navigation/discsurvey.c
$(TARGET).srcs += $(SRC_SUBSYSTEMS)/navigation/OSAMNav.c
$(TARGET).srcs += $(SRC_SUBSYSTEMS)/navigation/snav.c
$(TARGET).srcs += $(SRC_SUBSYSTEMS)/navigation/spiral.c
$(TARGET).srcs += $(SRC_SUBSYSTEMS)/navigation/poly_survey_adv.c
$(TARGET).srcs += $(SRC_SUBSYSTEMS)/navigation/gls.c
$(TARGET).srcs += $(SRC_SUBSYSTEMS)/navigation/border_line.c
$(TARGET).srcs += $(SRC_SUBSYSTEMS)/navigation/zamboni_survey.c
# $(TARGET).srcs += $(SRC_SUBSYSTEMS)/navigation/lawnmover_survey_gt.c
__________________

Then, to add a separate makefile, in paparazzi/conf/firmwares/subsystems/  directory:
__________________
# Hey Emacs, this is a -*- makefile -*-

# standard and extra fixed wing navigation

#add these to all targets

$(TARGET).srcs += $(SRC_SUBSYSTEMS)/navigation/zamboni_survey.c
_________________

Airframe file starts like this:
_________________
<!DOCTYPE flight_plan SYSTEM "flight_plan.dtd">

<flight_plan alt="310" ground_alt="185" lat0="59.81" lon0="10.3578" max_dist_from_home="550" name="Test zamboni" security_height="60" qfu="110">
  <header>
#include "subsystems/navigation/zamboni_survey.h"
#include "subsystems/datalink/datalink.h"
/*
#ifndef VARDECLARED
#define VARDECLARED
float varsweepsize=110;
#endif
*/
#include "modules/digital_cam/dc.h"
//#define LINE_START_FUNCTION dc_autoshoot = DC_AUTOSHOOT_DISTANCE;
//#define LINE_START_FUNCTION dc_Survey(dc_gps_dist);
#define LINE_START_FUNCTION dc_Survey(40);
#define LINE_STOP_FUNCTION dc_autoshoot = DC_AUTOSHOOT_STOP;
</header>
_________________


Cheers, Jorn




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