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)
- 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...
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
- 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
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.
* 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
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.
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