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 20:37:43 +0200
User-agent: Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Thunderbird/24.3.0


Hi Gautier,

just in case this is still relevant for debugging, I was now able to reproduce the old error for extra_dl and meteo_france_DAQ, which is already solved with the recent version v5.1.0_testing-2-ge57b228:

the old version v5.1_devel-901-g6b38166-dirty produced the following error when trying to build the "sim" target with apogee.xml:

-----------------------------------------------------
C /home/philipan/paparazzi_2014_04_21a/var/apogee03/sim/subsystems/gps/gps_sim.o CC /home/philipan/paparazzi_2014_04_21a/var/apogee03/sim/modules/datalink/extra_pprz_dl.o CC /home/philipan/paparazzi_2014_04_21a/var/apogee03/sim/modules/meteo/meteo_france_DAQ.o
In file included from modules/meteo/meteo_france_DAQ.c:34:0:
/home/philipan/paparazzi_2014_04_21a/sw/airborne/modules/meteo/meteo_france_DAQ.h:63:1: note: #pragma message: Info: MF_DAQ power pin is not defined
 INFO("MF_DAQ power pin is not defined");
 ^
In file included from modules/meteo/meteo_france_DAQ.c:40:0:
/home/philipan/paparazzi_2014_04_21a/sw/airborne/subsystems/chibios-libopencm3/sdLog.h:4:16: fatal error: ff.h: No such file or directory
 #include "ff.h"
                ^
compilation terminated.
make[1]: *** [/home/philipan/paparazzi_2014_04_21a/var/apogee03/sim/modules/meteo/meteo_france_DAQ.o] Error 1 make[1]: Leaving directory `/home/philipan/paparazzi_2014_04_21a/sw/airborne'
make: *** [sim.compile] Error 2
make: Leaving directory `/home/philipan/paparazzi_2014_04_21a'

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

A said above there is no problem any more with the current version!

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



--
--------------------------------------
Dr. Andreas Philipp
Institute of Geography
University of Augsburg
Universitaetsstrasse 10
D - 86135 Augsburg
Germany

Phone:  ++49/821/598-2266
Fax:    ++49/821/598-2264
Email:  address@hidden
http://www.geo.uni-augsburg.de/lehrstuehle/phygeo/personal/philipp/
--------------------------------------



reply via email to

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