paparazzi-devel
[Top][All Lists]
Advanced

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

Re: [Paparazzi-devel] configuration for apogee


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

Great! Thank's a lot, Gautier, it works now!

Using the SD-card record is a great feature for us since we want to record temperature, humidity and wind (and may be more) at high frequency for climatic research.

I tried to reproduce the error with extra_dl and meteo_france_DAQ modules with the old version, but it works now too. May be it was just a consecutive fault ...

The tarball thing is not very relevant, since the direct git checkout is documented in an excellent way at the wiki. I just thought to report it since some new users not using git might find a problem with that ...

Thanks again, this is really a brilliant project!
Andreas



Am 22.04.2014 13:13, schrieb Gautier Hattenberger:
Hi,

This airframe file should compile now for ap and sim (update master
branch).

Just a side note: the board type "apogee_1.0_chibios" is only needed if
you want to use the onboard SD log. If you just need to fly the
autopilot without SD support, you should use "apogee_1.0" instead.

What was the error when compiling extra_dl and meteo_france_DAQ modules
? You don't need them anyway, so you should remove these modules.

For the tarballs issue, I'm not sure, maybe some extenal git subprojects
and not included there, so it won't compile properly.

Gautier

Le 22/04/2014 11:58, Andreas Philipp a écrit :

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?

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