Commit Graph

15222 Commits

Author SHA1 Message Date
Tom van Dijk 829f8d7796 unwrap_pano module for panoramic cameras (#2269)
* Create unwrap_pano module

Create basic settings structure.

* Get basic image unwrapping working

* Add module settings

* Fix incorrect declaration of pano_unwrap_init()

* Add video_thread dependency

* Fix incorrect minus sign on real drone

* Set default forward direction for ARDrone2

* Set default vertical resolution to 0.18

Seems to be a better match with the gazebo model.

* Use LUT for unwrapping

LUT seems to work fine in simulation, except it crashes when
overwrite_video_thread is set to false...?

* FIX Add workaround for overwrite disable crash

* Add calibration pattern

* Expand module documentation

BUG: Segfault on startup on real drone, outside of camera_cb.

* Add example images to documentation

* Remove unused code and printf's

* Add max FPS define

* WIP add to ardrone2 example

* Fix #2187

* Clean up merge and temporary changes
2018-05-30 23:05:43 +02:00
Tom van Dijk c0741e01ab MAVLab course 2018 (#2268)
* Merge cyberzoo model (squashed)

Squashed commit of the following:

commit 4ea7054205
Author: Tom van Dijk <tomvand@users.noreply.github.com>
Date:   Tue Feb 6 11:30:28 2018 +0100

    Remove origin marker from worlds

commit c008c9658a
Author: Tom van Dijk <tomvand@users.noreply.github.com>
Date:   Fri Feb 2 17:25:11 2018 +0100

    Compress textures

    Reduced texture dimensions. Size of model folder is now approx.
    20 MB instead of 60+ MB.

commit 5b63fc1988
Author: Tom van Dijk <tomvand@users.noreply.github.com>
Date:   Fri Feb 2 17:03:26 2018 +0100

    Minor tweaks to models

commit ed003351d1
Author: Tom van Dijk <tomvand@users.noreply.github.com>
Date:   Fri Feb 2 15:26:28 2018 +0100

    Add cyberzoo props

commit 751b94364a
Author: Tom van Dijk <tomvand@users.noreply.github.com>
Date:   Thu Feb 1 15:03:30 2018 +0100

    Restore cyberzoo floor collision box

commit 1d4fd2d92f
Author: Tom van Dijk <tomvand@users.noreply.github.com>
Date:   Thu Feb 1 14:59:44 2018 +0100

    Add cyberzoo surroundings to main model in separate layers

commit 9df9f2832c
Author: Tom van Dijk <tomvand@users.noreply.github.com>
Date:   Thu Feb 1 14:48:06 2018 +0100

    Separate cyberzoo model into layers

    Makes it easier to hide parts of the model in the GUI.

commit f8c4221e98
Author: Tom van Dijk <tomvand@users.noreply.github.com>
Date:   Thu Feb 1 11:47:52 2018 +0100

    Add daylight in windows on outer walls

commit b0e6a0c572
Author: Tom van Dijk <tomvand@users.noreply.github.com>
Date:   Mon Jan 29 16:25:08 2018 +0100

    Remove old cyberzoo model, fix dependencies

commit dd54000771
Author: Tom van Dijk <tomvand@users.noreply.github.com>
Date:   Mon Jan 29 15:04:43 2018 +0100

    Add cyberzoo world with orange poles for orange_avoider

commit a34e285082
Author: Tom van Dijk <tomvand@users.noreply.github.com>
Date:   Mon Jan 29 14:30:47 2018 +0100

    Set world coordinates and rotation, fix naming conflict

commit 1a99ebb7bd
Author: Tom van Dijk <tomvand@users.noreply.github.com>
Date:   Thu Jan 18 11:58:06 2018 +0100

    Create cyberzoo world

    To-do: set origin coordinates and rotate environment

commit ebf7eaf9a7
Author: Tom van Dijk <tomvand@users.noreply.github.com>
Date:   Thu Jan 18 11:41:37 2018 +0100

    Minor fixes to surroundings

commit c57312c557
Author: Tom van Dijk <tomvand@users.noreply.github.com>
Date:   Thu Jan 18 11:15:09 2018 +0100

    Add updated cyberzoo surroundings and outside walls

commit 58914e14ae
Author: Tom van Dijk <tomvand@users.noreply.github.com>
Date:   Wed Jan 17 17:24:57 2018 +0100

    Add first draft of cyberzoo surroundings

commit 40712f5f3b
Author: Tom van Dijk <tomvand@users.noreply.github.com>
Date:   Tue Dec 12 13:45:25 2017 +0100

    Fix cyberzoo origin

commit e47f76cee5
Author: Tom van Dijk <tomvand@users.noreply.github.com>
Date:   Tue Dec 12 13:34:11 2017 +0100

    Fix orange_pole2 smoothing errors

commit b1e08695e7
Author: Tom van Dijk <tomvand@users.noreply.github.com>
Date:   Tue Dec 12 13:09:09 2017 +0100

    Add orange pole and traffic mat objects

commit 8bd3d214e6
Author: Tom van Dijk <tomvand@users.noreply.github.com>
Date:   Fri Dec 8 14:48:53 2017 +0100

    Fix optitrack camera color

commit 59e7b67fef
Author: Tom van Dijk <tomvand@users.noreply.github.com>
Date:   Fri Dec 8 14:43:39 2017 +0100

    Fix lighting colors

commit 810e6124c1
Author: Tom van Dijk <tomvand@users.noreply.github.com>
Date:   Fri Dec 8 14:20:47 2017 +0100

    Fix optitrack cameras

commit e6e17c2677
Author: Tom van Dijk <tomvand@users.noreply.github.com>
Date:   Fri Dec 8 14:10:55 2017 +0100

    Import improved model

commit e9ed496af9
Author: Tom van Dijk <tomvand@users.noreply.github.com>
Date:   Thu Nov 30 16:38:22 2017 +0100

    Fix ambient lighting of cyberzoo_solid

commit 0e1c2600d6
Author: Tom van Dijk <tomvand@users.noreply.github.com>
Date:   Wed Nov 29 14:38:05 2017 +0100

    First steps towards detailed cyberzoo model. Got transparency working.

* Fix altitude overshoot in simulation

- Bypass INS
- Set nominal hover throttle to 0.51 (verified in simulation and on real drone).

* Fix INS horizontal offset

- Set flight plan origin to match gazebo spherical coordinates,
prevents https://github.com/paparazzi/paparazzi/issues/2134#issuecomment-342493105

* Increase link lost timeout to 5s

Otherwise gazebo will continuously lose link. Might need to lower
this for real-world flights...

* Fix image.c compilation warnings

* Move dummy waypoint to 0, 0

Should prevent "waypoint 'dummy' too far from HOME" warnings when
max_dist_from_home is small (e.g. cyberzoo flightplans) and when
HOME is set appropriately close to the flight plan origin.

* Rename 2017 -> 2018

Also removed simulation aircraft as it is no longer necessary.

* Move modules to firmware section

* Restore original nominal throttle

Nominal throttle of 0.51 was measured without bumpers! 0.68 is correct
with bumpers attached. Instead, increased the weight of the gazebo model.

* Clean up control panel

- Removed Bebop video stream since it did not work
- Removed the Gazebo tool. When pointed to /usr/bin/gazebo it does actually start, but
  the GAZEBO_MODEL_PATH appears to be ignored this way.

Also added conf/video.sdp to simplify video streaming (no such file
was present in var).

* Tag airframe after successful test flight

Performed test flight in cyberzoo with course2018_orangeavoid flightplan in NAV mode.

* Fix Gazebo tool, add Simulation - Gazebo + Joystick session

The new gzclient_launcher.sh script sets up the correct GAZEBO_MODEL_PATH
(which was not available when gzclient was started from the Paparazzi Center
even if it was added to ~/.bashrc). It also allows the client to be killed
from the pprz center.

* FIX remove natnet from simulation session

* Retune INDI for Bebop1 with bumpers

Previous tuning resulted in slight attitude oscillations.

* Tag after successful testflight

* Add GCS flags

* Change gazebo bebop colors

* Disable light and shadows

Top light caused ogre crash in gazebo 8.3 (not sure if version error or weak gpu).
Disabled shadow for performance since there is no light anymore.

* Reduce bebop front cam FoV to fix AxisAlignedBox crash in gazebo7

Apparaetly gazebo 7 does not yet support wide-angle cameras with
HFoVs above 180deg.

* Distance Counter Python

* Cleanup after merge

* Remove image.c fix (see #2237)

* Add 'Simulation - Gazebo' session

Avoids errors when joystick is not connected.
2018-05-30 17:34:03 +02:00
Tom van Dijk c870e27ac5 [gazebo] Cyberzoo model (#2230)
* First steps towards detailed cyberzoo model. Got transparency working.

* Fix ambient lighting of cyberzoo_solid

* Import improved model

* Fix optitrack cameras

* Fix lighting colors

* Fix optitrack camera color

* Add orange pole and traffic mat objects

* Fix orange_pole2 smoothing errors

* Fix cyberzoo origin

* Add first draft of cyberzoo surroundings

* Add updated cyberzoo surroundings and outside walls

* Minor fixes to surroundings

* Create cyberzoo world

To-do: set origin coordinates and rotate environment

* Set world coordinates and rotation, fix naming conflict

* Add cyberzoo world with orange poles for orange_avoider

* Remove old cyberzoo model, fix dependencies

* Add daylight in windows on outer walls

* Separate cyberzoo model into layers

Makes it easier to hide parts of the model in the GUI.

* Add cyberzoo surroundings to main model in separate layers

* Restore cyberzoo floor collision box

* Add cyberzoo props

* Minor tweaks to models

* Compress textures

Reduced texture dimensions. Size of model folder is now approx.
20 MB instead of 60+ MB.

* Remove origin marker from worlds

* Move CyberZoo models to submodule

- All new models are moved to the tudelft/gazebo_models repository, which is included as a submodule in sw/ext/tudelft_gazebo_models/
- Changed vehicle and world SDF loading to use URI's, these can be used with multiple search paths
- Added gzclient_launcher.sh script that sets up environment variables before launching gzclient. This prevents errors if the user forgets to add the paths to .bashrc. Added as a tool to control_panel_example.xml
2018-05-30 15:32:10 +02:00
Kirk Scheper 801a979011 extend workaround lablgtk fix to all 2.18 versions (#2264) 2018-05-16 23:39:31 +02:00
Gautier Hattenberger f3f70cb13d [python] get air traffic from opensky-network and display in GCS (#2259) 2018-05-11 10:52:58 +02:00
Gautier Hattenberger 5a00206826 [natnet3] only send valid rigid bodies 2018-05-11 10:52:09 +02:00
HooperFly c108f707f6 Fix pthread_setname_np conflicts for Mac OS X (#2263) 2018-05-11 10:49:52 +02:00
Kirk Scheper 1d66b19adc add blocking option to i2c, remove unnecesary GNU_SOURCE and protect pthread_setname from mac (#2260)
* add blocking option to i2c with configurable timeout
* remove unnecesary GNU_SOURCE
* protect pthread_setname from mac
2018-05-09 16:58:06 +02:00
Kirk Scheper f03b3876bf Merge pull request #2258 from paparazzi/update_opencv
update opencv with multithread build
2018-05-04 19:13:16 +02:00
kirkscheper 87605f1697 quel pthread_setname_np warning 2018-05-04 18:30:17 +02:00
kirkscheper 76464b3aeb update opencv with multithread build 2018-05-04 18:22:23 +02:00
Kirk Scheper 515efab5ce add i2c transaction cue to the linux arch (#2254)
* add i2c transaction cue to the linux arch
* add thread name to most pthreads
* split each i2c to different thread and replace polling with signaling
* code cleanup and fix code style
2018-05-04 10:50:56 +02:00
OpenUAS 4d943b85e2 Use Si1000based modem 2018-05-01 23:35:34 +02:00
Ewoud Smeur 59ffb4caa0 bebop2 airframe file and python param estimation 2018-05-01 16:04:34 +02:00
Gautier Hattenberger 424cd788f5 [radio] rewrite the Spektrum driver to be generic (#2250)
This is based on #1799 and replace it.
Now, the normal UART driver is used instead of the specific code. It
makes it possible to use on only arch, including ChibiOS.
Binding is also possible, but for boards using ChibiOS and SD logger, it
is recommended to disable it for the binding process as the LSE clock
required by the RTC is longer to start (bind pulses should be issued
before 200ms after power up).
The configuration is backward compatible and some defines in the boards'
header could be even removed. Only Apogee, Chimera and Elle0 have been
updated as it is the only board tested for now. There is no harm to keep
the old defines.
2018-04-29 00:15:10 +02:00
Kirk Scheper 578ffe2b4d fix dependancy of stabilization on guidance (#2253) 2018-04-26 14:56:14 +02:00
Ewoud Smeur 5675d4e073 floating point numbers single precision 2018-04-26 14:24:03 +02:00
Ewoud Smeur c7598ca7b0 Guidance INDI change to YXZ eulers
This representation is better for guidance purposes, as changes in
heading do not affect the thrust vector.

- Added quat to euler_yxz
- Added euler_yxz to quat
2018-04-26 14:24:03 +02:00
Ewoud Smeur 2193ad3304 file logger independent of firmware
Removing ugly fix from openuas
2018-04-17 14:29:59 +02:00
Christophe De Wagter 48aa610423 [conf] report testflights 2018-04-13 17:59:22 +02:00
Christophe De Wagter d603018c47 Fix MavTec in master 2018-04-13 16:46:17 +02:00
Christophe De Wagter 28ef19382c [airframe editor] reorganize xml in fixed order for comparison - add description 2018-04-13 15:17:19 +02:00
Christophe De Wagter 51de434099 Fix frozen board... 2018-04-13 15:15:58 +02:00
Michal Podhradsky 55414d8e93 Added new config for taranis radio 2018-04-05 18:00:33 -07:00
Gautier Hattenberger bd103c1533 [fix] use either COMMAND_THRUST or COMMAND_THROTTLE, not both 2018-04-05 21:39:00 +02:00
Michal Podhradsky 8e04ae066e [AggieAir] Updated airframe config 2018-04-05 12:14:42 -07:00
Michal Podhradsky 5d4b23bfb8 Merge branch 'master' of github.com:paparazzi/paparazzi 2018-04-04 18:19:58 -07:00
Michal Podhradsky 3cc5f2ac8d Minor compilation fixes 2018-04-04 18:19:37 -07:00
Open UAS d6b2796953 Added more complete Parrot Disco 2018-04-04 21:29:17 +02:00
Michal Podhradsky adaf84bba7 Bump pprzlink 2018-04-04 10:05:57 -07:00
Michal Podhradsky d6a9d80721 Updated flight plan 2018-04-03 19:04:16 -07:00
Gautier Hattenberger b8b8000eb8 [doc] start sphynx doc for paparazzi (#2247) 2018-03-30 22:27:13 +02:00
Michal Podhradsky be41080a99 Bump pprzlink to work properly with encrypted link (both pprzlink v1.0 and v2.) 2018-03-28 09:16:10 -07:00
Michal Podhradsky e3fe8ff0f4 Fix in crypto header 2018-03-27 17:42:50 -07:00
Gautier Hattenberger f99ed9be50 [rtcm] fix offset increment 2018-03-26 15:19:46 +02:00
Gautier Hattenberger 2a0543553a [rtcm] fix max packet size 2018-03-21 15:35:29 +01:00
Gautier Hattenberger 789437978d [swarm] add formation control for rotorcraft (#2246)
* [swarm] add formation control for rotorcraft

Based on Ewoud Smeur (INDI) and Hector Garcia de Marina (Formation
control) work. See
https://blog.paparazziuav.org/2017/12/02/pilot-a-super-rotorcraft
- several UAV can be control from the ground (using a joystick for
  instance) by sending proper acceleration setpoint to the INDI guidance
  controller
- configuration of the formation is done from a JSON file (2 example
  files provided)

Some extra changes:
- update accel from IMU in GPS passthrough INS
- add accel setpoint to ABI messages
- by to accel setpoint in INDI guidance
- send ground reference from natnet2ivy
- possibility to have a joystick labeled 'GCS' with input2ivy
2018-03-20 16:07:16 +01:00
Michal Podhradsky 547668c555 Bump rustlink 2018-03-19 12:34:24 -07:00
Michal Podhradsky cd1013582f Update rustlink 2018-03-19 12:14:22 -07:00
Gautier Hattenberger da4cc6bea9 [build] try to improve dependency and not do unnecessary things (#2244) 2018-03-19 15:44:04 +01:00
Michal Podhradsky 606cd4eea2 Crypto updates (#2245)
* Cleaned up GEC code

* Added airborne support for pprzlink 1.0

* Update hacl-c

* Add proper indexing for pprz messages

* Updated airframe config for secure link

* Code style changes and updated code style script

* Bump rustlink

* Compilation fixes
2018-03-17 19:25:23 -07:00
Titus 30ab122e91 Monocular Optical Flow hover (#2239) 2018-03-12 14:39:13 +01:00
Gautier Hattenberger a628e6af97 [python] update python tools to use installed version of pprzlink 2018-03-12 14:00:01 +01:00
Fabien-B 3ee335965a [python supervision] Fix paths (#2093). (#2236) 2018-03-12 11:24:30 +01:00
Gautier Hattenberger cf9401e5df [flightplan] no more warnings for the dummy wp distance to home 2018-03-12 11:08:07 +01:00
kevindehecker 2ebd36e08a Added arming status msg to pprzlink
Arm status msg in yaw arming, and require all sticks centered for arming
Arm status message for throttle arming
2018-03-12 10:54:48 +01:00
Michal Podhradsky b18bcb2643 Better HITL config 2018-03-08 18:06:08 -08:00
Hector Garcia de Marina 39f5e775aa updated paths for python tools (#2242) 2018-03-07 21:32:45 +01:00
OpenUAS a2f2f934dc Update bebop.py
While on newer firmware there is no version.txt anymore the script would give "Checking Bebop firmware version... 0.0.0.0" and continue. So not s strictly needed change. we should then check from "/data/FVT6.txt" there you find :FWVersion=   or last resort eeprom.dat.txt contains  build info like : date Feb 14 2018 time 09:36:04, we should not force max versionb allowed only give a warning "non tested firmware, proceed with caution" or some tinh along that line. As Soon as we testflown a newer firmware well still highen this number anyhow.
2018-03-07 17:38:46 +01:00
Ewoud Smeur 319c69b9c9 new macro to set rc values in command laws (#2240) 2018-03-05 09:15:13 +01:00