Commit Graph

183 Commits

Author SHA1 Message Date
Felix Ruess 0d5f6063e5 [tests] simplify test targets
no more moving and restoring of the conf.xml
Test targets available now:
- test_math: doesn't care about conf nor needs any other pprz code built
- test_examples: compiles all aircrafts in conf_tests.xml, doesn't care about conf.xml
- test_sim: needs a valid conf.xml with the appropriate aircrafts (Microjet for now)
- test: only calls test_math and test_examples for now (no X needed, conf.xml is not read)
2015-03-12 18:53:19 +01:00
Felix Ruess 7be1f5d652 [tests] fix verbose output if TEST_VERBOSE=1, add test_examples target 2015-03-12 18:03:35 +01:00
Felix Ruess 3f3db735ac [build] improve build version stuff
- always save build version when updating anything that depends on libpprz, so it will also be updated on e.g. make tmtc
- only warn if the version number (major.minor.patch) is different, disregard the label, sha1, dirty postfixes in the string...
2014-12-22 12:12:30 +01:00
Gautier Hattenberger d3f9e39533 [build] add build version to the log and print warning if not matching runtime version 2014-12-21 19:32:50 +01:00
Felix Ruess 075c43ef26 make cleanspaces also for python files 2014-08-20 11:51:49 +02:00
Felix Ruess c8432fe18f [build] only set PAPARAZZI_SRC if not already externally set
closes #800
2014-08-17 23:41:01 +02:00
Felix Ruess 401dd2a9ef [build] build in var/aircrafts/<ac_name> instead of var/<ac_name>
closes #649
2014-04-14 13:07:05 +02:00
Felix Ruess 974d966065 [tools] move generators into subdir 2014-02-27 20:18:33 +01:00
Gautier Hattenberger 73a801c3d3 [messages] add char, fixed size array and int64 support to transports and gen_messages.ml 2013-11-18 15:08:56 +01:00
Felix Ruess f9a3c2f18d Merge pull request #525 baro_abi
Baro event handling using ABI interface

Main benefits:

less crappy handler functions in main.c files
possibility to use multiple sources of sensors (integrated to the board or not)
the filters don't need to know who is sending the raw values (not completely true with the old alt_float filter yet)

the pressure are now standardized in Pascal and the standard atmosphere model is used

The INS_BARO_SENS is hence not needed anymore.
onboard baros are automatically available in fixedwing firmware as well (use same code as rotorcraft now)

disable onboard baro with <configure name="USE_BARO_BOARD" value="FALSE"/>
Some stuff to do before using: find the default conversion factor to convert ADC values to Pascal
(mostly older boards/baro, recent digital sensors can output pressure in Pascal already)

Also all baro_board implementations use the same BARO_BOARD_SENDER_ID,
since there can only be one baro_board at the same time and this provides a good default for INS_BARO_ID.
So if you want to use an onboard baro the INS_BARO_ID is already ok (also if you have additional baro modules).
To use a baro module for INS: <define name="INS_BARO_ID" value="BARO_x_SENDER_ID"/>

closes #525
2013-10-11 15:25:14 +02:00
Gautier Hattenberger b2814e7169 [abi] split abi messages from telemetry messages
currently, the dtd is the same, but it can be changed in the future to
be more adapted to ABI messages
2013-10-10 17:48:09 +02:00
Felix Ruess 80a007f155 [conf] rename from *.xml.example to *_example.xml
- select_conf: personal conf file is conf_personal.xml
2013-09-14 00:04:00 +02:00
Felix Ruess b1eb25e4f0 [dox] create dox makefile target to easily create doxygen docs 2013-08-30 14:58:01 +02:00
Gautier Hattenberger 03c4527290 [cleaning] remove some f***ing names and comments 2013-08-13 15:21:58 +02:00
Felix Ruess 84ab3bde4c [Makefile] ground_segment.opt target to build native gcs/server 2013-04-25 11:29:46 +02:00
Felix Ruess 90a76e8195 remove unmaintained debian and install files/rules 2013-03-29 23:29:57 +01:00
Felix Ruess de13525fd3 Merge branch 'ocamlfind_no_custom'
- Use findlib (ocamlfind) for ocaml packages.
- Create META file for pprz ocaml lib.
- Link dynamically instead of statically (no -custom), which also results in faster build times.
- Use mktemp to properly create temporary files.
- More makefile cleanup...

closes #274
2013-03-29 20:18:09 +01:00
Stephen Dwyer e06a57717a [makefile] on os x the default mktemp doesn't behave the same (older version), need to use gmktemp from the coreutils macport 2013-03-26 14:10:16 -06:00
Felix Ruess 77cd732702 [makefile] use mktemp to create unique temp files
This assumes that mktemp is available, but should provide a better solution for issue #229.

Also create a variable holding the tempfile name which is unique to each target.
This should prevent problems with parallel builds, since these variables are global.
2013-03-21 16:46:58 +01:00
Felix Ruess 9d44b45da5 [makefile] rename target lib to libpprz for clarity 2013-03-21 15:11:49 +01:00
Stephen Dwyer 37b791ef8b [build system] delete the paparazzi ocaml executable in ~/paparazzi on make clean to ensure any PATH changes for ocaml and ocamlrun are caught after a make clean; make 2013-02-25 18:53:39 -07:00
Gautier Hattenberger 446231949b [makefile] more makefile cleaning and dynamic loading 2013-02-23 12:31:59 +01:00
Felix Ruess f90a9b687f [build system] honor TMPDIR environment variable
closes #229
2013-02-08 18:58:59 +01:00
Felix Ruess 043cf7246d [build system] more makefile cleanup for lpc stuff
- removed usb_lib target, not used anywhere
- fix lpc bootloader makefile
2013-02-08 15:12:34 +01:00
Felix Ruess 17c6cf2cac [sim] removed launchsitl and replaced it with symlink to pprzsim-launch 2013-01-24 13:01:44 +01:00
Felix Ruess 535e9b054b added ground_segment make target 2013-01-04 14:00:13 +01:00
Felix Ruess 8bff1b46c9 [build system] clean up makefiles and fix dependencies, parallel build with make -j 8 seems to work now 2012-11-10 19:45:22 +01:00
Felix Ruess 0bacd14eae [dox] generated doxygen html docs go to doc/generated/html by default, removed useless make target 2012-10-16 12:17:27 +02:00
Felix Ruess 8e1f66d72b [build] mark some targets as phony 2012-09-29 13:45:22 +02:00
Felix Ruess 34e10040e2 [build] print paparazzi version when building 2012-09-28 10:52:11 +02:00
Felix Ruess 1873297098 [conf][tests] make a new tests_conf.xml 2012-09-19 18:07:02 +02:00
Felix Ruess 3345e0e896 add Makefiles to cleanspaces target 2012-09-13 14:59:30 +02:00
Felix Ruess 52ede424df update cleanspaces target, to clean all c files in sw (except for sw/ext) 2012-09-13 14:43:33 +02:00
Felix Ruess bf89a36a1d fix building of abi_messages.h 2012-08-24 20:29:54 +02:00
Gautier Hattenberger c2b4bd1ca1 Merge remote-tracking branch 'gautier/abi' into abi_merge
Conflicts:
	conf/airframes/ENAC/fixed-wing/weasel.xml
	conf/autopilot/setup.makefile
	sw/tools/Makefile
2012-08-24 14:37:03 +02:00
Felix Ruess 9e663f2ef5 [build system] prefer compiler/toolchain found in path
fixes #231
also use a common makefile for finding the toolchain
see #244
2012-07-25 22:50:46 +02:00
Felix Ruess b189804be9 Merge fixes from branch 'v3.9'
* fix SaveSettings to deal with units properly: #238
* implicit unit conversions are now described in conf/units.mxl
* fix aspirin2 driver: only update on new measurements: #239
* fix order of message fields in the server
2012-07-20 02:07:07 +02:00
Bernard Davison 527837e87c Moving the conf/conf.xml file back from the packup after the tests have run. 2012-07-16 22:46:37 +10:00
Felix Ruess 7a8d0eb5fc Merge branch 'dev' into locm3
* this also brings all changes from 4.0_beta
2012-03-26 19:31:58 +02:00
Bernard Davison 975c8a9c1b Cleaning up make errors when running make clean.
Not cleaning up the test results multiple times.
2012-03-21 15:43:45 +11:00
Bernard Davison 2c9f962523 Changing the testing to not run hardware tests by default.
Started to create some sim testing for the Microjet.
Removed the test_all_examples target.
2012-03-21 13:56:33 +11:00
Piotr Esden-Tempski 4c45cd2a17 Merge branch 'dev' into locm3 2012-03-19 13:00:06 -07:00
Piotr Esden-Tempski 3db6365ede Merge branch 'dev' into locm3
Conflicts:
	sw/airborne/arch/stm32/mcu_periph/i2c_arch.c
	sw/airborne/arch/stm32/mcu_periph/spi_arch.c
2012-03-14 22:39:12 -07:00
Bernard Davison 3ef96b1003 Adding more perl modules
Adding more support modules that are needed by XML::Simple to read the
conf/conf.xml.example.
Adding these files into the repository means that users don't need to
install them on their computers.
2012-03-05 19:50:44 +11:00
Bernard Davison 6dbf1183bd Adding JUnit result output
The JUnit results can be added by specifying JUNIT=1 from the make
command line.

This is important as the Bamboo server can read JUnit results and
include them in the build reports.

This requires that the Perl module TAP::Formatter::JUnit is installed
on the host that the command is run on.
The JUnit results are created under tests/results and have the name
ABC.junit.xml
2012-03-05 15:08:23 +11:00
Bernard Davison 49dcc05093 Some basic tests to check that Paparazzi compiled.
Some tests that check that the compile of the airframe config works as well as the upload of that airframe to a target board.
2012-03-05 12:11:05 +11:00
Bernard Davison 73c5f52f86 Merge branch 'dev' of github.com:paparazzi/paparazzi into hardware_test 2012-03-05 08:24:25 +11:00
Gautier Hattenberger dc7eed2304 remove old srtm makefiles 2012-03-04 19:14:48 +01:00
Bernard Davison debabf1697 Started adding a Perl test framework. Need to work out how to print JUnit test results though... 2012-03-04 23:11:18 +11:00
Felix Ruess aaecb3f36f test_all_example_airframes: move conf.xml to backup if it exists and copy conf.xml.example 2012-02-25 15:39:59 +01:00