Commit Graph

1186 Commits

Author SHA1 Message Date
bresch 06ab8570ab Parameter update - Add parameter_update.py script used to rename the BlockParam variables with the new strict naming convention 2019-04-03 15:38:50 +02:00
Nico van Duijn 0b548fa684 Update submodule sitl_gazebo
This updates the submodule sitl_gazebo to include the iris_obs_avoid
sdf model
2019-04-02 08:17:13 +02:00
Nico van Duijn b7784a1439 Add MAVLink stream and cmake sitl target 2019-04-02 08:17:13 +02:00
Julian Oes be8ad46fc9 px_uploader.py: write timeout workaround
This is a workaround for the write timeout that we have seen for some
host computers trying to flash the firmware.

We don't know the root cause of the problem but we do observed the
following:

- For blocking writes with timeout (Pyserial write_timeout=0.5):
  write() throws SerialTimeoutException. In systrace we see that the
  select() call after write waiting for the write to be finished hangs
  and finally times out.
- For blocking writes without timeout (Pyserial write_timeout=None):
  write() hangs indefinitely. In systrace we see that the
  select() call after write waiting for the write to be finished hangs.
- For non-blocking writes:
  write() works but flush() hangs. In systrace we see that
  ioctl(fd, TCSBRK, 1) which is (correctly) triggered by termios tcdrain
  hangs.

Inspecting USB traffic using usbmon, we can see that the data which is
written actually seems to be sent and looking at responses from the
Pixhawk bootloader and the timings it looks like all the data has
arrived.

This workaround uses non-blocking writes without flushing and this
seemed to prevent the issue from happening so far.

Debugging was done in collaboration with Beat Küng and David Sidrane.
2019-03-27 14:53:00 +01:00
Julian Oes 7be05396ba px_uploader.py: check for pyserial
If we dont explicitly check for pyserial, we can have the case where the
import works but the Serial object creation fails. However, we don't see
this because we have this huge try/catch block which swallows
everything.
2019-03-27 07:55:05 +01:00
johannes 53effd5005 Tools/upload_log: change default upload to public flightreport 2019-03-18 09:52:18 -04:00
Daniel Agar 471e1bc866
serial/generate_config.py specify full loader (#11667)
- fixes #11666
2019-03-16 11:19:01 -04:00
Beat Küng bfa0a4a8f1 sitl_gazebo: update submodule (hil fix) 2019-03-15 08:54:42 +01:00
Beat Küng 898664d919 jmavsim: fix HIL, don't add -lockstep by default 2019-03-15 08:54:42 +01:00
Beat Küng 8692d72501 jmavsim: update submodule
Brings https://github.com/PX4/jMAVSim/pull/97.
2019-03-15 08:50:05 +01:00
Anthony Lamping 84c52439e9 jenkins: update all image tags to 2019-03-08 2019-03-08 23:17:06 -05:00
Daniel Agar 37cda4e264
Update submodule jMAVSim to latest Wed Mar 6 00:38:35 UTC 2019 (#11597)
- jMAVSim in PX4/Firmware (a97151feed): 0c25b7c189
    - jMAVSim current upstream: 8b2f4568e0
    - Changes: 0c25b7c189...8b2f4568e0

    8b2f456 2019-02-28 Julian Oes - Merge pull request #95 from PX4/shell-style
3d0174a 2019-02-27 Matthias Grob - Fix shell script style
2019-03-05 23:57:25 -05:00
Matthias Grob bee1835831 Tools: fix style consistency in shell scripts "if [...]; then" 2019-02-24 11:20:38 -05:00
PX4 Build Bot d835d122dc Update submodule sitl_gazebo to latest Fri Feb 22 12:38:23 UTC 2019
- sitl_gazebo in PX4/Firmware (4e792b2487): b34a96e7e5
    - sitl_gazebo current upstream: 2e80474653
    - Changes: b34a96e7e5...2e80474653

    2e80474 2019-02-18 Elia Tarasov - fix comment for mag strength table unit
9a9a137 2019-02-18 Elia Tarasov - fix comment for the file name
7c49b2f 2019-02-18 Elia Tarasov - add units to mag variables
c004d94 2019-02-18 Elia Tarasov - fix magnetic field calculation by using geo lookup table
e9a3940 2019-02-18 Elia Tarasov - fix comment on magnetic data source and properties
c76ac17 2019-02-18 Elia Tarasov - copy magnetic data tables and functions from ecl/geo_lookup
28f59c5 2019-02-18 Elia Tarasov - add constrain function
8c869ed 2019-02-18 Elia Tarasov - fix linker complain on multiple definitions
b5213a7 2019-02-18 Elia Tarasov - add getters for mag inclination and strength
d311233 2019-02-15 Elia Tarasov - fix D-component of magnetic field for Zurich according to WMM2015
2019-02-22 21:32:20 +00:00
Beat Küng 64f29fdff8 Tools/sitl_gazebo: update submodule
Includes https://github.com/PX4/sitl_gazebo/pull/283
2019-02-19 08:43:42 +01:00
Julian Oes 18f7ee2d50 jMAVSim: update submodule, use -lockstep CLI arg
This updates the jMAVSim submodule which includes a fix for HITL.
In order to fix HITL, a CLI argument `-lockstep` was required to enable
lockstep. This has now been added to the command in jmavsim_run.sh.
2019-02-18 20:25:50 +00:00
JohannesBrand b01e470ff9
refactor ecl ekf analysis (#11412)
* refactor ekf analysis part 1: move plotting to functions

* add plot_check_flags plot function

* put plots in seperate file

* use object-oriented programming for plotting

* move functions for post processing and pdf report creation to new files

* add in_air_detector and description as a csv file

* refactor metrics and checks into separate functions

* refactor metrics into seperate file, seperate plotting

* ecl-ekf tools: re-structure folder and move results table generation

* ecl-ekf-tool: fix imports and test_results_table

* ecl-ekf tools: bugfix output observer tracking error plot

* ecl-ekf-tools: update batch processing to new api, fix exception handling

* ecl-ekf-tools: use correct in_air_detector

* ecl-ekf-tools: rename csv file containing the bare test results table

* ecl-tools: refactor for improving readability

* ecl-ekf tools: small plotting bugfixes

* ecl-ekf tools: small bugfixes in_air time, on_ground_trans, filenames

* ecl-ekf-tools: fix amber metric bug

* ecl-ekf-tools: remove custom function in inairdetector

* ecl-ekf-tools: remove import of pandas

* ecl-ekf-tools: add python interpreter to the script start

* ecl-ekf-tools pdf_report: fix python interpreter line

* px4-dev-ros-kinetic: update container tag to 2019-02-13

* ecl-ekf-tools python interpreter line: call python3 bin directly

* ecl-ekf-tools: change airtime from namedtuple to class for python 3.5

* ecl-ekf-tools: update docker image px4-dev-ros-kinetic

* ecl-ekf-tools: fix memory leak by correctly closing matplotlib figures
2019-02-18 16:52:02 +01:00
Daniel Agar 05dc2ba3ec
update px4 dev containers to 2019-02-09
- this updates all containers except for px4-dev-snapdragon
2019-02-10 17:33:17 -05:00
Daniel Agar 7c3999e00e
update mavlink and sitl_gazebo to latest with odometry velocity covariance 2019-02-10 16:32:59 -05:00
Beat Küng 4452669614 module documentation: add support for subcategories 2019-02-08 09:29:46 +01:00
Beat Küng d8b013355c PRINT_MODULE_USAGE_PARAM_{INT,FLOAT}: add support to ignore the default value 2019-02-08 09:29:46 +01:00
Daniel Agar 25b4b63364 check_submodules.sh don't force update in CI 2019-02-05 14:47:58 -05:00
Daniel Agar 205b0d94ca
Update submodule sitl_gazebo to latest Tue Feb 5 12:38:27 UTC 2019 (#11377)
- sitl_gazebo in PX4/Firmware (6178ead6ea): 12fb19ac6e
    - sitl_gazebo current upstream: 34d06e042c
    - Changes: 12fb19ac6e...34d06e042c

34d06e0 2019-02-05 Tully Foote - create plane_cam world
93159f3 2019-02-01 TSC21 - CMakeLists: install package.xml
c5882f7 2019-01-31 Anthony Lamping - models: plane: split up, adding plane_cam
38fe49a 2019-02-01 TSC21 - Travis CI: do not pass user id env var to the container
0f1221b 2019-02-01 TSC21 - Travis CI: update Ubuntu container tags
bab0de9 2019-01-31 Anthony Lamping - models: remove matrice 100 opt flow meshes
0efbe69 2019-01-23 Oleg Kalachev - Fix building on macOS
2019-02-05 11:58:22 -05:00
Lorenz Meier 3d3a98c803 Add script to set the correct ulimit on Mac OS (#11247) 2019-02-05 10:19:55 -05:00
Julian Oes 027d7e632e sitl_multiple_run.sh: fix port description
This has changed as we changed to TCP with the lockstep implementation.
2019-01-30 09:51:30 +01:00
Daniel Agar 0f386ee52a
update all docker containers to latest 2019-01-27
- Jenkins compile drop arch until container is updated and maintained
 - clang-tidy disable for now, the new version isn't respecting the existing configuration
2019-01-28 13:08:58 -05:00
Angel 7097c0a1b8 Fixed small bug in batch_process_metadata_ekf.py 2019-01-28 08:09:26 +01:00
Daniel Agar e89779364e Jenkins update px4-dev-base to 2019-01-26 2019-01-27 21:10:48 -05:00
PX4 Build Bot cc68775def Update submodule jMAVSim to latest Wed Jan 23 00:37:45 UTC 2019
- jMAVSim in PX4/Firmware (3a7deefe6e): 5150bbab6e
    - jMAVSim current upstream: 00bdf6d92b
    - Changes: 5150bbab6e...00bdf6d92b

    00bdf6d 2019-01-21 Beat Küng - jMAVLib: update submodule
2019-01-23 08:23:25 +01:00
Daniel Agar 843443248e move modules/systemlib to lib/systemlib 2019-01-23 08:23:03 +01:00
Beat Küng b6ba7b655a sitl_run.sh: fix for debugger & valgrind invocation: use eval
Because $sitl_command contains quotes
2019-01-14 11:08:48 +01:00
Julian Oes 2e3fa30c83 sitl_gazebo: update to revision that doesn't abort on timeout (#11196)
* this should fix the CI failures where we intermittently saw SIGABRT. (fixes #11144)
2019-01-11 10:23:16 -05:00
Julian Oes b0dd55e80b jMAVSim: update submodule
This should fix:
- HITL regression (Init MAVLink forever).
- Starting using default arguments.
2019-01-08 09:49:47 -05:00
PX4 Build Bot 2a7fe22a04 Update submodule sitl_gazebo to latest Wed Dec 26 12:37:45 UTC 2018
- sitl_gazebo in PX4/Firmware (1f9b833342): c90e8ad2b2
    - sitl_gazebo current upstream: e945745021
    - Changes: c90e8ad2b2...e945745021

    e945745 2018-12-26 Julian Oes - worlds: fix rate for tailsitter and plane
46a3d27 2018-12-14 Jörg Schmidt - Fix bug in groundtruth altitude calculation
2018-12-26 11:06:26 -05:00
Julian Oes dd54b3a511 jMAVSim: update submodule
Now that this is merged to master in jMAVSim.
2018-12-22 10:32:18 +01:00
Julian Oes 736599f362 sitl_gazebo: updated submodule
This is just because the branch got merged.
2018-12-22 10:32:18 +01:00
Julian Oes 2d7299043d sitl_gazebo: update submodule
This should fix a race because the use of future/promise wasn't done in
a thread-safe way.
2018-12-22 10:32:18 +01:00
Julian Oes 6435db37c6 sitl_gazebo: update submodule
An include was missing.
2018-12-22 10:32:18 +01:00
Julian Oes 73c22bd60e sitl_gazebo: updated submodule
This fixes a HITL bug and uses promise/future instead of sleeping.
2018-12-22 10:32:18 +01:00
Julian Oes 8faf28918c sitl_gazebo: update submodule
This brings build fixes for Gazebo 7.
2018-12-22 10:32:18 +01:00
Julian Oes f03e938953 sitl_gazebo: updated submodule
This fixes all world files at 250 Hz simulation rate.
2018-12-22 10:32:18 +01:00
Julian Oes a7c2adc877 sitl_gazebo: update submodule
This brings support for TCP and lockstep.
2018-12-22 10:32:18 +01:00
Julian Oes 23acb77e2d Tools: add PX4_SIM_SPEED_FACTOR as env variable
This adds the env variable PX4_SIM_SPEED_FACTOR to set the speed factor
to run SITL at.
2018-12-22 10:32:18 +01:00
Julian Oes b436f3dd56 ROMFS/Tools: switch to TCP connection for SITL
This switches from UDP to TCP to connect to jMAVSim.
2018-12-22 10:32:18 +01:00
Julian Oes 7c93578b8b jMAVSim: updated submodule 2018-12-22 10:32:18 +01:00
Julian Oes 6a78212a6b jMAVSim: update submodule 2018-12-22 10:32:18 +01:00
Julian Oes d295320e82 sitl_run.sh: lower rate for jMAVSim to 250 Hz
This should be enough for now, especially when we want to raise the
speed of the simulation.
2018-12-22 10:32:18 +01:00
Julian Oes 82a88d6a53 jMAVSim: update submodule for new -f argument
This adds the argument -f for a speed factor to speed up the simulation.
2018-12-22 10:32:18 +01:00
David Sidrane 11f9925b02 rcS,rc.serial.jinja:ensure proper unset hygiene
Delete auto generated vars, and others that were missed.
2018-12-12 15:14:11 -05:00
Daniel Agar dbee6380ee cmake move custom upload helpers to boards/ 2018-12-04 19:45:46 -05:00