Commit Graph

1499 Commits

Author SHA1 Message Date
Julian Oes a8c3944485 setup: select Java 8 after installation 2020-01-30 22:45:29 -05:00
Julian Oes 733e73e185 Tools: check for Java 8 on Linux
This allows us to print an error message instead of a weird Java failure
further down the road.

Better yet would be if this would take down everything, so a user does
not have to scroll up to read the message.
2020-01-30 22:45:29 -05:00
PX4 BuildBot a141e4062b Update submodule sitl_gazebo to latest Thu Jan 30 00:37:59 UTC 2020
- sitl_gazebo in PX4/Firmware (931a3f2684): 029722989e
    - sitl_gazebo current upstream: dfbc28badc
    - Changes: 029722989e...dfbc28badc

    dfbc28b 2020-01-29 kamilritz - Reduce airspeed noise
55d74c3 2020-01-11 JaeyoungLim - Add plane catapult model
2020-01-29 23:31:40 -05:00
kritz 92e75452f5
Flow mockup (#14054)
* Add optical flow mockup model

* Update Tools.sitl_gazebo
2020-01-29 14:06:46 +01:00
Roman Dvořák 497ab07daf airframes: add ThunderFly Auto-G2 autogyro (#14015) 2020-01-27 16:21:52 +01:00
kamilritz 0d2e5f1c50 Update sitl_gazebo: Vision fix 2020-01-27 14:09:45 +00:00
JaeyoungLim 15835ce7a3 Add standard_vtol as supported model for multivehicle sim gazebo
Fix
2020-01-27 09:16:24 +01:00
PX4 BuildBot dedb4e8267 Update submodule sitl_gazebo to latest Tue Jan 21 00:39:16 UTC 2020
- sitl_gazebo in PX4/Firmware (635ceccfdb): a5b33417f7
    - sitl_gazebo current upstream: 2f4b32723c
    - Changes: a5b33417f7...2f4b32723c

    2f4b327 2019-10-21 Martina Rivizzigno - typhoon sonar fix rotation such that the reported orientation metches the gazebo model
7db52d7 2019-10-18 Martina Rivizzigno - typhoon_h480: rotate sonar such that is forward facing
2020-01-20 21:01:45 -05:00
Julian Oes 98f0ba33d2 setup: prevent prompt during install
This should prevent debconf from asking questions during install.
Presumably, the exported env variable DEBIAN_FRONTEND is not taken into
account in a sudo command, hence we need to add it every time.
2020-01-18 11:10:55 +01:00
Julian Oes 09c3fc3e71 setup: add pyros-genmsg, sort list 2020-01-18 11:10:55 +01:00
Julian Oes ca7327056c setup: prevent debconf asking about tzdata 2020-01-18 11:10:55 +01:00
Julian Oes 83ccc4e61e setup: fix script fail if check fails 2020-01-18 11:10:55 +01:00
Julian Oes 7a0ba7f0ca setup: remove duplicate 2020-01-18 11:10:55 +01:00
Julian Oes 26d4169b7c setup: remove unused dependencies 2020-01-18 11:10:55 +01:00
Julian Oes 8353d609cb setup: don't forget to install wheel 2020-01-18 11:10:55 +01:00
Julian Oes d764cfcb6d setup: remove unusual Python dependencies
As far as I know these dependencies are only ever required when doing
analysis in ECL. At that point developers should be confident to add
what is required.
2020-01-18 11:10:55 +01:00
Julian Oes fcbf2e8f9e setup: remove Python 2 requirements for Ubuntu 2020-01-18 11:10:55 +01:00
Julian Oes ac6d7e6730 setup: another try to install pip dependencies 2020-01-18 11:10:55 +01:00
Julian Oes 8112a5c417 setup: fix call to pip/pip3
This should prevent the error:
Traceback (most recent call last):
  File "/usr/bin/pip3", line 9, in <module>
      from pip import main
      ImportError: cannot import name 'main'

As described in:
https://github.com/pypa/pip/issues/5447#issuecomment-407693701
2020-01-18 11:10:55 +01:00
Julian Oes bac4854424 setup: stop on error 2020-01-18 11:10:55 +01:00
Julian Oes 126b7a5642 setup: we need a newer pip 2020-01-18 11:10:55 +01:00
Julian Oes bf62b0f5e6 setup: use pip as user, don't forget python3-dev
In my opinion we should not mess with someones system Python
dependencies.
2020-01-18 11:10:55 +01:00
Julian Oes c77816aef2 cmake: move jinja2 check to Python modules
This removes the cmake check for jinja2 and moves it to the respective
Python scripts.
2020-01-16 16:25:26 +01:00
Julian Oes b04f68553e Tools: use Python 3, improve import checks
In more detail:
- Change shebang to Python 3.
- Suggest installation using pip3 as user.
2020-01-16 16:25:26 +01:00
Daniel Agar 13fc6fa04c Update submodule sitl_gazebo to latest Thu Jan 16 00:39:21 UTC 2020 (#13784)
- sitl_gazebo in PX4/Firmware (d6cff809f3): 5b031e1019
    - sitl_gazebo current upstream: a5b33417f7
    - Changes: 5b031e1019...a5b33417f7

    a5b3341 2019-12-22 Lorenz Meier - MAVLink interface: Fix init
484bc8d 2020-01-15 Lorenz Meier - Only support Mac OS Mojave
62fdd48 2020-01-14 Julian Oes - travis: use pip3 as user
bb9b3f7 2020-01-14 Julian Oes - travis: unlink Python2, install Python3
5d27757 2020-01-13 Lorenz Meier - Fix Mac OS CI
193a4d2 2020-01-13 Gus Grubba - Update gazebo_video_stream_widget.h
7cb9e2e 2020-01-07 Morten Fyhn Amundsen - gazebo_lidar_plugin: Rename class to LidarPlugin
6f5d19b 2020-01-06 bozkurthan - Update typhoon_h480.sdf
32fa459 2020-01-06 bozkurthan - Update gazebo_gst_camera_plugin.h
0058204 2020-01-06 bozkurthan - Change udpDstIP -> udpHost
b443319 2020-01-06 bozkurthan - Update typhoon_h480.sdf
0d98f07 2020-01-06 bozkurthan - Update gazebo_gst_camera_plugin.cpp
1a94d78 2020-01-06 bozkurthan - Update gazebo_gst_camera_plugin.h
57c829c 2020-01-06 bozkurthan - Update typhoon for custom IP

Co-authored-by: PX4 Build Bot <bot@px4.io>
2020-01-16 09:08:28 +01:00
Julian Oes 5aa696839d jMAVSim: link to devguide instead of issue
This should be less confusing and point to a source of truth rather than
a long discussion.
2020-01-14 22:56:20 +01:00
Julian Oes d4d90e0488 jMAVSim: accept AdoptOpenJDK Java version
This should work with AdoptOpenJDK installed via brew:
    brew tap adoptopenjdk/openjdk
    brew cask install adoptopenjdk8
2020-01-14 22:56:20 +01:00
TSC21 13c0c618f3 px4modulesdoc: move to Python3 2020-01-13 21:48:35 +00:00
TSC21 502be605fd update submodule sitl_gazebo 2020-01-13 21:48:35 +00:00
Julian Oes 065fa1244d Update Snapdragon docker tag 2020-01-13 21:48:35 +00:00
Julian Oes 19bd7b29d6 Tools: use Python3 for upload_log.py 2020-01-13 21:48:35 +00:00
Julian Oes 8897c69c8f Tools: use Python 3 in validate_yaml.py 2020-01-13 21:48:35 +00:00
Julian Oes c5fb0e77cd Tools: update sitl_gazebo submodule 2020-01-13 21:48:35 +00:00
TSC21 d447f15ac6 bump Docker container tags to 2019-11-25 2020-01-13 21:48:35 +00:00
TSC21 3ea62ff53b bump Docker container tags to 2019-11-22 2020-01-13 21:48:35 +00:00
Daniel Agar de4f594937 DriverFramework purge
The bulk of this change was tightly coupled and needed to be deleted in one pass. Some of the smaller changes were things that broke as a result of the initial purge and subsequently fixed by further eradicating unnecessary platform differences. Finally, I deleted any dead code I came across in the related files I touched while going through everything.

 - DriverFramework (src/lib/DriverFramework submodule) completely removed
 - added dspal submodule in qurt platform (was brought in via DriverFramework)
 - all df wrapper drivers removed
 - all boards using df wrapper drivers updated to use in tree equivalents
 - unused empty arch/board.h on posix and qurt removed
 - unused IOCTLs removed (pub block, priv, etc)
 - Integrator delete methods only used from df wrapper drivers
 - commander: sensor calibration use "NuttX version" everywhere for now
 - sensors: update to px4_{open, read, close} instead of DevMgr wrapper (adc open for analog differential pressure)
 - battery_status: update to px4_{open, read, close} instead of DevMgr wrapper (adc open for analog differential pressure)
 - cdev cleanup conflicting typedefs and names with actual OS (pollevent_t, etc)
 - load_mon and top remove from linux boards (unused)
 - delete unused PX4_MAIN_FUNCTION
 - delete unused getreg32 macro
 - delete unused SIOCDEVPRIVATE define
 - named each platform tasks consistently
 - posix list_devices and list_topics removed (list_files now shows all virtual files)
2020-01-13 14:07:03 -05:00
romain-chiap ba28ef5809 jmavsim_run.sh: add -o flag for SIH display only 2020-01-13 16:09:40 +01:00
Julian Oes 3527870333 Tools: fix 'Assistive technology not found error'
On Ubuntu we often saw the error
Assistive technology not found AWTError when starting jMAVSim.

This should be fixed by appending this cli argument to java.

As suggested in https://github.com/PX4/containers/issues/206
2020-01-10 17:30:28 -05:00
RomanBapst 4d4481a384 gazebo_sitl_multiple_run.sh: fixed comment
Signed-off-by: RomanBapst <bapstroman@gmail.com>
2020-01-10 16:51:33 +01:00
JaeyoungLim 528141a78e Make more space between vehicles 2020-01-10 16:51:33 +01:00
JaeyoungLim 0324889cf7 Add support for plane 2020-01-10 16:51:33 +01:00
JaeyoungLim eb7cdb4c4e Use sdf files instead of urdf files
Fix
2020-01-10 16:51:33 +01:00
Daniel Agar 44f9de5e37
delete parrot bebop board support
This target was never fully supported and is heavily dependent on a number of DriverFramework drivers that have no in tree equivalents (bebop bus, flow, rangefinder, etc). Deleting this will make it easier to fully drop DriverFramework shortly.
2020-01-05 19:46:51 -05:00
Daniel Agar ce1e9762b0 deprecate df_hmc5883_wrapper and replace with in tree hmc5883
- deprecate DriverFramework hmc5883 driver (df_hmc5883_wrapper)
 - update aerotenna ocpoc and snapdragon flight eagle boards to use in tree hmc5883
2020-01-05 15:17:26 -05:00
Daniel Agar 7241eebd80
cmake merge linux cross compile targets (cross + native) and cleanup
- consolidate cross and native variants (only a single default is needed)
   - beaglebone_blue_cross + beaglebone_blue_native => beaglebone_blue_default
   - emlid_navio2_cross + emlid_navio2_native => emlid_navio2_default
   - px4_raspberrypi_cross + px4_raspberrypi_native => px4_raspberrypi_default
 - move upload helpers to cmake/upload.cmake
2020-01-05 14:03:57 -05:00
Daniel Agar cc7a0cd69d beaglebone blue: build librobotcontrol with cmake 2019-12-29 17:32:06 -05:00
Daniel Agar 30a73416dc mavsdk SITL testing code coverage and upload to codecov.io 2019-12-26 14:31:33 -05:00
JaeyoungLim d5100b10dc Update comments 2019-12-26 12:03:32 +01:00
RomanBapst eeb47f6148 gazebo multiple sim script: cleanup
- make sure to kill all px4 instances and gazebo client when exiting
- add arguments to specify number of vehicles and vehicle model
- exit for now if vehicle model is not iris, since needs changes in
sitl_gazebo submodule

Signed-off-by: RomanBapst <bapstroman@gmail.com>
2019-12-26 12:03:32 +01:00
JaeyoungLim 876f42c171 Source environment inside the script 2019-12-26 12:03:32 +01:00
JaeyoungLim 155a212109 Update comments 2019-12-26 12:03:32 +01:00
JaeyoungLim f653be75c0 gazebo multiple sim: use xacro from the sitl_gazebo repository
Signed-off-by: RomanBapst <bapstroman@gmail.com>
2019-12-26 12:03:32 +01:00
JaeyoungLim 0b649326c3 Support multi vehicle sitl gazebo without ros 2019-12-26 12:03:32 +01:00
Lorenz Meier adf7aee762 Harden autostart logic for non-existent airframe values
This ensures that the user is pushed back to the airframe configuration stage.
2019-12-26 10:16:58 +01:00
Lorenz Meier 2e7221cd22 Style check commit hook: Ensure that formatted files need to be re-added. 2019-12-24 15:16:26 +01:00
Julian Oes a9ca16cafe
Fix a couple of flake8 Python warnings (#13763)
* Tools: fix flake8 error

* platforms: fix flake8 error

This is just guessed.
2019-12-19 07:36:16 -08:00
Christian Clauss 6dc55f97d4 More fixes for Python 3 compatibility (#13008)
* More fixes for Python 3 compatibility

* Workaround if the six module is not pip installed

* Lose the semicolons
2019-12-19 02:05:55 -08:00
Matthias Grob 904ab16558 Fix trailing whitespace, EOF newline, indentation 2019-12-09 13:22:19 +01:00
kamilritz b73c80428e ECL: Clean velPos logging, deprecate ekf2_innovations msg 2019-12-05 11:29:29 +01:00
Daniel Agar 0cc250194d
VTOL: explicitly start all FW & MC controllers in VTOL mode 2019-11-30 12:58:36 -05:00
bresch 09c8c8f706 ekf: use PDOP instead of GDOP as TDOP (part of GDOP) is not given by the GNSS receiver 2019-11-27 10:33:27 +01:00
PX4 BuildBot 4964b633b2 Update submodule sitl_gazebo to latest Tue Nov 26 00:39:55 UTC 2019
- sitl_gazebo in PX4/Firmware (63e99db29b): 2637a94816
    - sitl_gazebo current upstream: 073da14f6e
    - Changes: 2637a94816...073da14f6e

    073da14 2019-11-25 Saifullah - Fix for issue #359. (#362)
2019-11-25 20:30:03 -05:00
PX4 BuildBot 879e4a5b16 Update submodule sitl_gazebo to latest Sat Nov 23 00:38:19 UTC 2019
- sitl_gazebo in PX4/Firmware (3f92bc26ce): ec3a32a604
    - sitl_gazebo current upstream: 2637a94816
    - Changes: ec3a32a604...2637a94816

    2637a94 2019-11-18 JaeyoungLim - Address comments
94d479c 2019-11-15 Jaeyoung-Lim - Handle camera zoom mavlink message
2019-11-23 10:19:24 +00:00
Daniel Agar 8c38176d77 boards: alphabetize and sync common drivers and modules 2019-11-21 18:56:24 -05:00
Daniel Agar 84fe64b1c2
create new multicopter rate controller module (mc_rate_control) split out of mc_att_control 2019-11-19 17:03:11 -05:00
TSC21 d4ddabdf52 SITL: adds 'iris_rtps' target 2019-11-13 18:24:11 +00:00
Matthias Grob 675af4f5f9 uavcan_kinetis: fix flexcan code style
* flexcan: fix code style
* flexcan: exclude from style check to avoid that a different version of astyle breaks indentation again
2019-11-12 20:50:54 -05:00
PX4 BuildBot f0d22d3962 Update submodule sitl_gazebo to latest Fri Nov 8 12:40:23 UTC 2019
- sitl_gazebo in PX4/Firmware (0527f278cb): 169d48217d
    - sitl_gazebo current upstream: 036bcee25f
    - Changes: 169d48217d...036bcee25f

    036bcee 2019-11-06 Jaeyoung-Lim - Add element to set home position from sdf
2019-11-08 11:50:46 -05:00
LP 0527f278cb Update create.py to support Python3.x
file() -> open()
dict_obj_A.keys() + dict_obj_B.keys() -> list(dict_obj_A.keys()) + list(dict_obj_B.keys())
2019-11-08 10:10:17 +01:00
Beat Küng 6622f04feb uavcan drivers: update code style
Pure refactoring, just running 'make format'.
2019-11-07 10:40:03 +01:00
Beat Küng 5dff065ec5 uavcan: move to work queue and use MixingOutput
Main UAVCAN protocol handling and ESC updates run on the same thread/wq as
before. There are 2 WorkItems for separate scheduling of the 2, so that
ESC updates run in sync with actuator_control updates. UAVCAN is scheduled
at a fixed rate of 3ms (previously the poll timeout) and on each UAVCAN
bus event.
This leads to roughly the same behavior as before. CPU & RAM usage are
pretty much the same (tested on Pixhawk 4).

Testing done: Motors still work (with feedback), param changes and a
UAVCAN optical flow sensor.
2019-11-07 10:40:03 +01:00
Beat Küng b7a480b45b refactor uavcan: add stm32 and kinetis drivers directly 2019-11-07 10:40:03 +01:00
Daniel Agar d263811eef Jenkins move raspi and bebop builds to regular armhf toolchain 2019-11-05 15:56:24 -05:00
Daniel Agar 7f930f875e Jenkins store SITL unit test results 2019-11-04 14:04:40 -05:00
CAI Dongcai c804dea914 sitl script: Do NOT kill px4 if debug in IDE 2019-11-02 12:40:36 -04:00
Matthias Grob cc06009932 pre-commit: fix indentation style 2019-11-02 09:49:46 -04:00
Matthias Grob 5c0692e59e pre-commit: add error messages for style issues 2019-11-02 09:49:46 -04:00
Julian Oes 5491f9b8f9 px_uploader.py: increase estimated erase time
The 9 seconds to erase a board probably still come from the FMU-v1 and
Pixhawks with only 1 MB flash. By now, many targets have 2 MB flash and
take a bit longer to erase. Therefore, we can increase the estimated
time a bit and don't need to resort to the timeout notice.
2019-11-02 09:47:54 -04:00
katzfey ff9744b0d3 Fixed typo for extra_args when HEADLESS mode chosen. 2019-11-02 11:35:53 +00:00
PX4 BuildBot 6647a9a762 Update submodule jMAVSim to latest Thu Oct 31 12:39:44 UTC 2019
- jMAVSim in PX4/Firmware (a6a8877463): 3bd51e67e0
    - jMAVSim current upstream: eeb23ef68e
    - Changes: 3bd51e67e0...eeb23ef68e

    eeb23ef 2019-10-30 bresch - magnetometer: update inclination/declination/local mag field strength of default starting locations. Set magnetometer scale factor to 1 (instead of 2) Set local mag field using DEFAULT_MAG_FIELD instead of an estimated one using inclination/declination and a norm of 1
2019-10-31 14:53:45 -04:00
Daniel Agar 47dd312b57
fw_att_control: move to px4::params 2019-10-28 18:08:47 -04:00
PX4 BuildBot 9e309f62a9 Update submodule sitl_gazebo to latest Fri Oct 25 12:40:00 UTC 2019
- sitl_gazebo in PX4/Firmware (ffefd458be): c0634b241e
    - sitl_gazebo current upstream: 169d48217d
    - Changes: c0634b241e...169d48217d

    169d482 2019-10-22 Julian Oes - travis: let's not bother about macOS Sierra
78fef51 2019-10-22 Julian Oes - travis: install gstreamer using brew
764d1b7 2019-10-21 Julian Oes - models: fix reported validation errors
053622b 2019-10-11 TSC21 - Travis CI: Cleanup scripts and add more MacOSX build pipelines
0c8214c 2019-10-21 Julian Oes - cmake: fix Qt prefix path for macOS
bb2c08c 2019-10-06 TSC21 - CMake: fix Qt5 find in MacOS
81f072b 2019-10-14 Julian Oes - travis: install GStreamer using brew
39d4399 2019-10-14 Julian Oes - cmake: link to glib-2.0 and gobject-2.0
fef3ff5 2019-10-14 Julian Oes - cmake: fix GStreamer and Qt deps for macOS
605da22 2019-10-22 Nuno Marques - Update README.md
2a8a54e 2019-10-20 Nuno Marques - README: update install instructions
2019-10-25 15:29:41 +01:00
TSC21 45c320ba8e bump container tags to 2019-10-24 2019-10-24 11:23:24 +01:00
Matthias Grob f317d227ef arch.sh: get rid of ignition-cmake workaround
The AUR repository got fixed upstream after
I reported the issue. I tested on a fresh machine
so we can get rid of the workaround that was necessary. See
https://aur.archlinux.org/packages/ignition-cmake/#comment-712301
2019-10-24 08:50:18 +02:00
Matthias Grob d60e1e2774 ControlMath: switch to gtest for unit tessting 2019-10-23 17:33:47 +02:00
Beat Küng 349469cf75 refactor pwm_out_sim: use mixer_module and run on work queue
Tested with SITL + HITL
2019-10-21 09:42:08 +02:00
Martina Rivizzigno 95dc522b99 update sitl_gazebo submodule 18/10/2019 2019-10-18 11:43:58 +01:00
Matthias Grob cefa7ec5dc arch.sh: use nproc instead of grepping /proc/cpuinfo 2019-10-17 12:48:04 -04:00
Matthias Grob 7e2fb6b4da arch.sh: switch permissions of pip install (again)
after testing the right solution on a fresh installation
2019-10-14 10:54:09 -04:00
Matthias Grob c09ea2a9b0 arch.sh: don't execute pip as root
otherwise packages get installed in
/root/.local/lib/python3.7/site-packages
2019-10-12 08:38:39 +02:00
Matthias Grob 50c5150471 arch.sh: work around gazebo AUR build error and correct comments 2019-10-12 08:38:39 +02:00
Matthias Grob bba464d722 arch.sh: enable multicore gazebo compilation 2019-10-12 08:38:39 +02:00
Matthias Grob 7dd1be65ca arch.sh: add gazebo installation 2019-10-12 08:38:39 +02:00
TSC21 061ee15139 update sitl_gazebo submodule (10/10/2019) 2019-10-10 15:51:09 +02:00
Matthias Grob 7f63ed8202 Arch setup script (#13111)
* ubuntu.sh: fix space and capitalization

* Add setup script for Arch Linux

* arch.sh: remove numerous confirmations, added some base packages

* setup scripts: adjust messages according to review
2019-10-10 08:59:11 +02:00
Matthias Grob 05446c0875 ubuntu.sh: correct output during ccache installation (#13106) 2019-10-07 09:14:00 +02:00
TSC21 91badceb27 Update submodule sitl_gazebo to latest Sun Oct 06 11:02:54 GMT 2019 2019-10-06 11:40:02 +01:00
Nuno Marques 5a8aa04970 CI: bump container tags to 2019-10-04 (#13095)
* bump container tags to 2019-10-04

* docker_run: update container name and tag

* generate_microRTPS_bridge.py: force FastRTPSGen to version 1.0 if the result of 'fastrtpsgen -version' command is not a number

* CI: temporarly disable avoidance and safe landing tests

* CI: try to revive tiltrotor test
2019-10-06 01:21:04 -04:00
Daniel Agar 26364d44c9
px4_work_queue: command line status output and shutdown empty queues
* adds a work_queue systemcmd that will bring a tree view of all active work queues and work items
 * WorkQueues now track attached WorkItems and will shutdown when the last WorkItem is detached
2019-10-02 12:23:17 -04:00
garfieldG cc1d86bc0b @value will be printed with Whitespace in start of line for serial_config parameters 2019-10-02 10:34:10 +02:00
Christian Clauss 41516fbd55 Old style exceptions are Python 3 syntax errors 2019-09-22 17:47:37 -04:00
cclauss c18104d48b Use print() function in both Python 2 and Python 3
Legacy __print__ statements are syntax errors in Python 3 but __print()__ function works as expected in both Python 2 and Python 3.
2019-09-22 13:54:24 -04:00
Daniel Agar c13835c0f0 replay module split replay_main.cpp into separate compilation units 2019-09-17 14:33:04 +02:00
Hamish Willee 0c0b261ff2 ubuntu.sh - remove modemmanager 2019-09-17 00:38:14 -04:00
Hamish Willee fd10220a34 Ubuntu.sh: check for requirements.txt 2019-09-11 09:15:44 -04:00
Hamish Willee eb81f4bce2 ubuntu.sh: Add note to reboot computer 2019-09-06 08:02:02 +02:00
Hamish Willee 0b049fa4d7 Add updated ccache for Ubuntu 16.04 dev scripts 2019-09-06 08:02:02 +02:00
Hamish Willee a77fc9aca9 Add docker gazebo dependencies 2019-09-01 20:18:52 -04:00
Hamish Willee ceaf134092 Change java to openjdk like docker 2019-09-01 20:18:52 -04:00
Hamish Willee 33ae0bb705 ubuntu.py: update to dual install to Python2 2019-09-01 20:18:52 -04:00
Hyon Lim 0262a699c1 UVify Core board support and airframes (Draco, Draco-R, IFO) (#12337)
* also includes minor changes to make it easy to keep in sync with px4_fmu-v4
2019-08-23 17:02:25 -04:00
Julian Oes c3529baa5b jMAVSim: disable GUI using HEADLESS=1
@katzfey added the option to run jMAVSim without GUI. Now we just need
to read the HEADLESS env variable to use it.
2019-08-23 09:27:42 +02:00
Daniel Agar e7e477962c
snapdragon fix sanity test and add to Jenkins hardware 2019-08-22 15:11:32 -04:00
Julian Kent ddd4181b39 Don't run each functional test in a different process 2019-08-21 14:53:41 +02:00
Daniel Agar 7d248e0f45
px4fmu: move to WQ with uORB callback scheduling (#12224) 2019-08-20 20:24:12 -04:00
Beat Küng 5cadb0aab1 px_mkfw: add git commit hash to .px4 file 2019-08-14 12:37:20 -04:00
Julian Kent d70b024ec7
GTest functional tests that include parameters and uORB messaging (#12521)
* Add kdevelop to gitignore

* Add test stubs

* Rename px4_add_gtest to px4_add_unit_gtest

* Add infrastructure to run functional tests

* Add example tests with parameters and uorb messages

* Fix memory issues in destructors in uORB manager and CDev

* Add a more real-world test of the collision prevention
2019-08-09 15:10:09 +02:00
Matthias Grob 161429f8c6 voted_sensors_update: refactor to camelCase function names 2019-08-07 18:44:39 +02:00
Daniel Agar cfdabb26d7 update all docker tags 2019-03-08 -> 2019-07-29 2019-08-05 00:19:18 -04:00
garfieldG 487addbba5 rc.autostart: add error reporting (#12527)
-Fixed bug : cd to /etc/init.d/airframes, but no cd after
-Added error report to user if value of SYS_AUTOSTART param value is incorrect
2019-07-31 07:37:40 +02:00
TSC21 2b4c878e77 rebase: sync up submodules 2019-07-26 15:05:54 +02:00
TSC21 3d9f83a4f2 microRTPS_bridge: structural change to make possible to generate pub/sub code for multi-topics/aliased msgs 2019-07-26 15:05:54 +02:00
Beat Küng c869cb0ea5 validate_yaml.py: fix for python3
RuntimeError: dictionary changed size during iteration
2019-07-25 10:38:57 -04:00
Julien Lecoeur e23e3d7bae Airframe parser: add docs 2019-07-22 13:02:45 +02:00
Julien Lecoeur daeba4e75f Add airframe .post scripts on NuttX targets 2019-07-22 13:02:45 +02:00
Beat Küng 84bca7e4d0 shellcheck: disable SC2181
The combination of 'if mycmd' and a logical expression is not supported in
NuttX.
2019-07-16 08:09:22 +02:00
Beat Küng 5fe4c61b42 rc_input: add RC_PORT_CONFIG param to configure RC port
The parameter will only be available if the board defines an 'RC' serial
port in SERIAL_PORTS (in default.cmake).
2019-07-16 08:09:22 +02:00
Alexis Paques 453ecfeb55 YAML: use Loaders and safe_load (#11910) 2019-07-10 15:15:29 +02:00
Daniel Agar d1298f2c37 Jenkins HITL exit upload monitor on nsh> 2019-06-29 17:18:22 -04:00
PX4 Build Bot 309322ce98 Update submodule sitl_gazebo to latest Fri Jun 28 12:37:57 UTC 2019
- sitl_gazebo in PX4/Firmware (7bba5a7287): 95adbb11f8
    - sitl_gazebo current upstream: 22df9475ca
    - Changes: 95adbb11f8...22df9475ca

    22df947 2019-06-27 Martina Rivizzigno - Range.proto: fix indentation
8ef5625 2019-05-28 Martina Rivizzigno - update sonar message to match mavlink distance sensor definition
e04ff96 2018-12-04 Martina - get distance sensor orientation from the vehicle model instead of hard-coding it in the gazebo interface, add horizontal and vertical fov
2019-06-28 16:43:49 +01:00
Daniel Agar d96c97ed48
Update submodule jMAVSim to latest Sat Jun 22 12:37:52 UTC 2019 (#12316)
- jMAVSim in PX4/Firmware (fb8630c267): 883413f8b9
    - jMAVSim current upstream: def7501bc0
    - Changes: 883413f8b9...def7501bc0

    def7501 2019-06-18 romain-chiap - SIH support: add display-only mode for simulation-in-hardware (#101)
2019-06-22 15:42:08 +02:00
Ildar Sadykov fb8630c267 Adding VTOL Octoplane airframe type (#12303)
* Srcparser updated, default script for VTOL octoplane added.
2019-06-22 14:13:29 +02:00
Julian Oes e1671571c8 jMAVSim: use PX4_SIM_SPEED_FACTOR, not cli arg
In order to be consistent between Gazebo and jMAVSim we should be using
the env variable PX4_SIM_SPEED_FACTOR in the same way. This enables
vscode to set the speed using the env variable.
2019-06-18 01:56:49 +02:00
Daniel Agar 115b8f83ef
Update submodule sitl_gazebo to latest Sun Jun 16 00:37:52 UTC 2019
- sitl_gazebo in PX4/Firmware (648e7de249): f2593dbcc2
    - sitl_gazebo current upstream: 95adbb11f8
    - Changes: f2593dbcc2...95adbb11f8

    95adbb1 2019-06-08 David Jablonski - fix gstreamer package finding for ubuntu
2019-06-15 23:21:12 -04:00
Daniel Agar a175c4407d
Jenkins add rover SITL test 2019-06-15 17:55:44 -04:00
Daniel Agar 5f20d3cf3b Jenkins HIL increase boot timeout for stackcheck build
- px4_fmu-v5_stackcheck remove extra drivers (to try and get the system
usuable)
2019-06-15 16:59:04 -04:00
Daniel Agar e6799e90ad Jenkins HIL disable buzzer and remove redundant px4_fmu-v5 test 2019-06-15 15:06:02 -04:00
Daniel Agar 81c914a092 Jenkins HIL test run various commands to inspect system 2019-06-15 14:29:00 -04:00
Daniel Agar d30e30a2a6 Jenkins HIL run more tests 2019-06-15 11:31:01 -04:00
Daniel Agar 9db4d87587
Update submodule sitl_gazebo to latest Mon Jun 10 12:37:51 UTC 2019
- sitl_gazebo in PX4/Firmware (b0176dc88a): a0b0eb8df1
    - sitl_gazebo current upstream: af00ac4dfc
    - Changes: a0b0eb8df1...af00ac4dfc

af00ac4 2019-06-07 Lukas Woodtli - Add support for unit tests on macOS
3a81838 2019-06-04 Lukas Woodtli - Add support to build and run unit tests with catkin
c59d214 2019-05-11 Lukas Woodtli - Add unit tests for gps plugin
860e1ce 2018-09-20 Lukas Woodtli - Add unit tests for gimbal controller plugin
2019-06-10 09:09:49 -04:00
Julian Kent 0553d4d01e Fix px_uploader.py to work in 16.04 with Python 2.7.
Before, the pyserial check would fail before it could check for the
VERSION that the Python 2.7 version contains. This fixes it to check
for the VERSION independently.
2019-06-06 09:13:54 -04:00
Julian Oes 5273e2af04 Tools: remove decode_backtrace.py
This hasn't been used in a while and didn't quite work with the
backtraces produced anyway.
2019-06-05 08:16:19 +02:00
Daniel Agar 4b3f68f90c cmake and Tools/setup.sh default to python3 2019-05-29 20:48:22 -04:00
Daniel Agar b3505bfbf4
Update submodule sitl_gazebo to latest Mon May 27 00:38:33 UTC 2019
- sitl_gazebo in PX4/Firmware (88127380e7): 3062d287c3
    - sitl_gazebo current upstream: a0b0eb8df1
    - Changes: 3062d287c3...a0b0eb8df1

 - a0b0eb8 2019-05-10 bazooka joe - Calculate iris inertia from the body colision parameters assuming that the body is homogenic cube. that fixes impossible inertia matrix
 - 113605b 2019-03-27 Elia Tarasov - fix gimbal_controller timestep sign
2019-05-26 23:57:26 -04:00
Daniel Agar 9ab9a29a01 astyle don't enforce style in build output 2019-05-25 17:58:19 +02:00
TSC21 3413df19e8 astyle: add microRTPS related code for format check and fix 2019-05-22 11:49:02 +02:00
Julian Oes e80d3940a6 jmavsim_run.sh: enable SDK UDP port
We forgot to add the option -s for jmavsim_run.sh which starts jMAVSim
with the UDP port connecting to the SDK (port 14540).
2019-05-09 18:27:14 +02:00
Julian Oes d2ab31f0d7 jMAVSim: update submodule
This fixes cross-talk between the QGC and SDK UDP ports for HITL.
2019-05-09 18:27:14 +02:00
Julian Oes e1f42ae767 sitl_run.sh: use tabs, not spaces 2019-05-09 12:02:56 -04:00
Julian Oes abed18dd0d sitl_gazebo: update submodule
This brings support for UDP port 14550 and 14540 for HITL simulation.
2019-05-09 12:02:56 -04:00
Roman Bapst 816aa0ffb6 VTOL transitions: use FW attitude loop (#11911)
* VTOL trans: changed that now in transition for both MC and FW the corresponding (correct) attitude controller is running
* attitude setpoint for stabilized mode is generated by tailsitter.cpp
* reset yaw setpoint during transition to avoid big yaw errors after
transition back to hover
* VT_TYPE parameter: added "reboot required" metadata
2019-05-08 10:33:13 -04:00
Daniel Agar 317e8cda64
Update submodule jMAVSim to latest Mon May 6 12:38:30 UTC 2019 (#11974)
- jMAVSim in PX4/Firmware (7ec6f0dca6): 79586deda5
    - jMAVSim current upstream: ae1593d0c8
    - Changes: 79586deda5...ae1593d0c8

ae1593d 2019-04-30 Julian Oes - Merge pull request #100 from PX4/fix-port-default
9de8f86 2019-04-29 Julian Oes - Simulator: fix default for QGC and SDK link
d42efaf 2019-04-29 Julian Oes - Merge pull request #99 from PX4/pr-add-sdk-port
7d0bebb 2019-04-26 Julian Oes - Simulator: fix copy paste mistake
a94816e 2019-04-26 Julian Oes - Simulator: add MAVLink UDP port for SDK
6a9634b 2019-04-26 Julian Oes - Visualizer3D: ran fix_style.sh
2019-05-06 13:50:41 -04:00
Julian Oes 9e96c4a4ea sitl_gazebo: update submodule (#11939)
This should fix the regression where the mag values were not properly
initialized and caused EKF2 to stop in CI.
2019-04-30 23:18:04 -05:00
Daniel Agar d93efa9169 Revert "sitl_gazebo: update submodule"
This reverts commit 585b9d8cf1.
2019-04-29 10:46:38 -04:00
Julian Oes 585b9d8cf1 sitl_gazebo: update submodule
Includes:
- Fix for vibration on ground for standard_vtol.
- Noise for diff pressure / airspeed on Gazebo side.
- Fix for macOS magnetometer plugin linking error.
2019-04-28 18:22:21 -04:00
Julian Oes a9c3bce20d px_uploader.py: fix version check
Presumably older versions of pyserial do not implement __version__ but
only VERSION, so we need to check for that as well.
2019-04-24 14:47:10 +02:00
Daniel Agar 6d30b13afa
update Tools/setup/ dev environment setup scripts
- Ubuntu install NuttX toolchain, gazebo, and switch to python3
 - OSX switch to python3
2019-04-12 10:43:21 -04:00
Beat Küng f542736140 'simulation' category added in srcparser.py 2019-04-12 09:25:07 +02:00
Matthias Grob e94580711b check_submodules: fetch in parallel on CI 2019-04-07 18:56:51 +02:00
Julian Oes 4907b87882 sitl_gazebo: update submodule
This should fix the macOS build.
2019-04-05 09:42:34 -04:00
Alexis Paques 7a5aaa33b2 Fix @property and super function does not work properly if the 'NewStyle' class type is not used.
https://lgtm.com/rules/10030086/
2019-04-03 22:53:10 -04:00
PX4 Build Bot e8daf93682 Update submodule sitl_gazebo to latest Wed Apr 3 12:38:08 UTC 2019
- sitl_gazebo in PX4/Firmware (d36c0e131d): 2f0070ec6c
    - sitl_gazebo current upstream: e0dfe7ea45
    - Changes: 2f0070ec6c...e0dfe7ea45

    e0dfe7e 2019-03-11 Jannik Beyerstedt - Fix compiler error with openCV (C++11) on macOS
2019-04-03 22:59:55 +02:00
bresch aa8edbc2ba Parameter update - add -tcpp flag in rg to check C++ files only 2019-04-03 15:38:50 +02:00
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