paparazzi-devel
[Top][All Lists]
Advanced

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

[Paparazzi-devel] configuration for apogee


From: Andreas Philipp
Subject: [Paparazzi-devel] configuration for apogee
Date: Tue, 22 Apr 2014 11:58:16 +0200
User-agent: Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Thunderbird/24.3.0


Hi,

I'm wondering which config should be selected in order to build firmware for "ap" and "sim" for the apogee_v1.0 board in v5.1.0_testing.

starting with the airframe file ENAC/fixedwing/apogee.xml I set:

    <target name="sim" board="pc"/>
    <target name="ap" board="apogee_1.0_chibios"/>

but get the error (v5.1.0_testing-0-gd07cb6f-dirty):
---------------------------------------------------
[...]
Compiling gpio_arch.c
Compiling main_chibios_libopencm3.c
Compiling chibios_init.c
firmwares/fixedwing/chibios-libopencm3/chibios_init.c:34:22: fatal error: airframe.h: No such file or directory
 #include "airframe.h"
                      ^
compilation terminated.
make[1]: *** [/home/ppz/paparazzi/var/aircrafts/MYAC/ap/obj/firmwares/fixedwing/chibios-libopencm3/chibios_init.o] Error 1
make[1]: Leaving directory `/home/ppz/paparazzi/sw/airborne'
make: *** [ap.compile] Error 2
make: Leaving directory `/home/ppz/paparazzi'

FAILED 'make -C /home/ppz/paparazzi -f Makefile.ac AIRCRAFT=MYAC ap.compile' with code 2
---------------------------------------------------

the missing path could be added by editing
conf/Makefile.chibios-libopencm3 and adding an additional variable at line 45:

PPRZ_VAR_GENERATED = $(PAPARAZZI_SRC)/var/aircrafts/$(AIRCRAFT/$(TARGET)/generated

which is included around line 212 to the INCDIR variable.

Doing this, compilation works for target "ap" if the following is commented out in the airframe file:
---------------------------------------------------
[...]
   <!--
    <load name="extra_dl.xml">
      <configure name="EXTRA_DL_PORT" value="UART6"/>
      <configure name="EXTRA_DL_BAUD" value="B57600"/>
    </load>
    <load name="meteo_france_DAQ.xml"/>
-->
[...]
---------------------------------------------------

However, compilation for "sim" still gets stuck:
----------------------------------------------------
[...]
CC /home/philipan/paparazzi_2014_04_22_not_working/var/aircrafts/apogee/sim/subsystems/radio_control/sbus.o
subsystems/radio_control/sbus.c: In function 'radio_control_impl_init':
subsystems/radio_control/sbus.c:54:41: error: expected expression before ')' token
   sbus_common_init(&sbus, &SBUS_UART_DEV);
                                         ^
subsystems/radio_control/sbus.c: In function 'sbus_decode_event':
subsystems/radio_control/sbus.c:67:49: error: expected expression before ')' token
   sbus_common_decode_event(&sbus, &SBUS_UART_DEV);
                                                 ^
make[1]: *** [/home/philipan/paparazzi_2014_04_22_not_working/var/aircrafts/apogee/sim/subsystems/radio_control/sbus.o] Error 1 make[1]: Leaving directory `/home/philipan/paparazzi_2014_04_22_not_working/sw/airborne'
make: *** [sim.compile] Error 2
make: Leaving directory `/home/philipan/paparazzi_2014_04_22_not_working'

FAILED 'make -C /home/philipan/paparazzi_2014_04_22_not_working -f Makefile.ac AIRCRAFT=apogee sim.compile' with code 2
----------------------------------------------------

If commenting out the line:
 <subsystem name="radio_control" type="sbus"/>

it gets stuck at:
----------------------------------------------------
[...]
BUILD autopilot.so
LD /home/philipan/paparazzi_2014_04_22_not_working/var/aircrafts/apogee/sim/simsitl File "/home/philipan/paparazzi_2014_04_22_not_working/var/aircrafts/apogee/sim/simsitl.ml", line 1, characters 0-1: Error: Error while linking /home/philipan/paparazzi_2014_04_22_not_working/sw/simulator/sitl.cma(Sitl):
The external function `send_ppm' is not available
make[1]: *** [/home/philipan/paparazzi_2014_04_22_not_working/var/aircrafts/apogee/sim/simsitl] Error 2 make[1]: Leaving directory `/home/philipan/paparazzi_2014_04_22_not_working/sw/airborne'
make: *** [sim.compile] Error 2
make: Leaving directory `/home/philipan/paparazzi_2014_04_22_not_working'

FAILED 'make -C /home/philipan/paparazzi_2014_04_22_not_working -f Makefile.ac AIRCRAFT=apogee sim.compile' with code 2
----------------------------------------------------

I'm really lost in getting a running apogee ("ap" and "sim") with the recent software. Can someone please help? Thanks!

Andreas


PS. If I download the tar.gz packages for stable and testing from https://github.com/paparazzi/paparazzi/tags and type "make" I get the error: no rule to create "lib", while running make in the git-checkout works for both stable and testing. Any idea?



reply via email to

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