Commit Graph

82 Commits

Author SHA1 Message Date
Fabien-B
32074c9333 Python virtual environment (#3305)
* [python] setup venv and update pprzlink.
* [supervision] open terminal in the venv if it exists.
* clean setup.py
* guard venv boostrap
* [install] Use distro instead of lsb_release.

---------

Co-authored-by: Fabien-B <Fabien-B@github.com>
2024-10-14 15:02:21 +02:00
Tomaso Maria Luigi De Ponti
ba6daccdc8 Generic RC_UP message for datalink RC (#3332) 2024-07-31 10:19:00 +02:00
Freek van Tienen
3a956fa4aa [link] Pprzlink router (for herelink) (#2497) 2023-12-19 10:22:20 +01:00
Gautier Hattenberger
cf150db155 [ocaml] move the GCS-only related code out of xpprz lib
Most of the pprz.xlib is used by the legacy GCS only, using in
particular the deprecated canvans.
This PR is isolating the relevant part to the GCS folder, so it will be
easier in the future to avoid the compilation of this part by default.

Conditional compilation of the old GCS: test if glade is installed
to build supervision, logplotter and the (legacy) GCS.
2023-02-14 10:07:45 +01:00
Freek van Tienen
e588310caa [gps] Update ublox RTK support and ground tool (#2831) 2022-03-08 12:53:27 +01:00
Gautier Hattenberger
494e3f3ad9 [tests] add a compilation test node to modules (#2653)
When adding a test node to a makefile section, with required compilation
flags, include and other options, all the files (not arch dependent
files) can be compiled with a TAP compatible program, included in the
standard tests of the CI servers.
Not all module's XML files are converted, but a large part of the most
important parts are already covered. More will be added later. The
number of tested airframes (full compilation of all targets) have been
reduced to speed the CI compile time but still covers the relevant
architecture and boards.
The main benefit is that the overall coverage is already better than
before as previous test aircraft were compiling more or less the same
part of the airborne code, while this new mechanism is more efficient to
test modules not included in any config.
2021-02-08 17:24:19 +01:00
Gautier Hattenberger
1d5f48768b [git] ignore KDE temp file 2020-09-04 14:37:10 +02:00
Tom van Dijk
1cc01d4653 Eachine Trashcan support (#2540)
Co-authored-by: Open UAS <>
Co-authored-by: Tom van Dijk <tomvand@users.noreply.github.com>
2020-07-03 15:52:32 +02:00
Gautier Hattenberger
520e1e3b86 [pprz] change the old paparazzi launch script from ocaml to python
This new script is doing the same than before but don't rely on the
ocaml install which was a problem when mixing opam and system install.

Note that when updating, git will complain about the already existing
file 'paparazzi'. So it is necessary to delete the old file (or run
'make clean') before updating the code.
2019-10-17 10:21:45 +02:00
Ewoud Smeur
3ff008f62e remove swo file and add to gitignore 2017-10-30 18:16:52 +01:00
kevindehecker
2a6ad556f1 F3 and X-Vert support (#2113)
* Make mpu9250 compatible with mpu6500, by providing option to disable mag

* Upgrade QTC version, add more QTCreator compatibility with chibios

* F3 support

* Add priliminary support stm32f3 discovery board using chibios

* Add support for the stm32f37 xvert board by means of chibios

* Give INDI simple full control authority

* Motor driver for the vertx

* Create define out of required THD_WORKING_AREA space
2017-10-06 15:53:18 +02:00
tomvand
9d1e71b1ea Add Gazebo simulation to NPS (#2069)
* Setup code for Gazebo

Currently only partially initializes the fdm struct, which produces
incorrect results in the GCS.
Compilation, however, already seems to work as expected!

Next step is to fetch data from Gazebo.

* Closed-loop flight in Gazebo

Finished the first implementation of the Gazebo FDM. It is now possible
to perform closed-loop flights using Paparazzi together with Gazebo.

Look at the example_ardrone2.xml airframe file for the required gazebo tags.
The following modifications are made:
- change fdm type to "gazebo"
- add definitions for ACTUATOR_THRUSTS and ACTUATOR_TORQUES. These were
  obtained from the JSBsim ardrone model. The oredr is the same as the
  ACTUATOR_NAMES.

The Gazebo world needs an aircraft model that is (by default) named
"paparazzi_uav". This model should include links with the names listed
in ACTUATOR_NAMES in the airframe file, as these are used to apply
forces on the quadrotor.

Known bugs:
- No fixed wing aircraft yet.
- Not all fields in the fdm struct are set. Most of the atmosphere
  fields are not implemented yet.
- AHRS and INS need to be bypassed, these do not yet work correctly.
- No quadrotor models are supplied with paparazzi yet (although it is
  included in the example world file).

* Added cameras, but sensor update causes crash

As in the quick standalone examples, gazebo regularly crashes when
cameras are used.

This is an intermediary commit where most of the camera infrastructure
is present, but not functional yet because of an unknown bug regarding
Gazebo.

* Simplified problem, located crash

Crash occurs when gazebo::sensors::run_once() is called during
the fdm update step. The exception (Ogre internal exception,
cannot create GL vertex buffer) only occurs after the main loop
has been performed a few times (10-20x typically).

Ignoring the error by catching the exception does not make it go
away.

* Add ogre to fdm_gazebo makefile

* Further changes for debugging, not fixed yet

* FIX bug

Turns out that fdm_init and fdm_run_step are not running in the same
thread, which apparently caused some problems with Gazebo.

The gazebo initialization code that starts the server is now moved
to the run_step function, and cameras work fine now.

Next step is to get the images from Gazebo to the video_thread_nps module.

* Transport images to Paparazzi

Added code that converts Gazebo's RGB888 images to Paparazzi's
YUV422 format, and calls the registered video callbacks.

* Finish video streaming

Finished video streaming. Video streaming in the paparazzi master
branch does not seem to work in simulation or even on a real ardrone.
Therefore, reverted to v5.10 viewvideo.c and rtp.c and now the streaming
works correctly.

* Separate UAV model from world.

Added a models/ directory to conf/simulator/gazebo, now the UAV model
can be included in the world file. The models/ dir is added to Gazebo's
search paths when the server is launched, so it does not require
any additional steps from the user.

* Move Gazebo modifications from examples/ardrone2.xml to examples/ardrone2_gazebo.xml

Reverted changes to the original airframe and moved these to a
separate example.

* Remove .sdp file

Remove .sdp file that should not have been included with commits.

* Move changes in conf_example.xml to separate entry

Moved the changes to conf_example.xml (selected flightplan, modules etc.)
to a separate etry named 'ardrone2 (Gazebo)'.

* Clean up changes to computer_vision module

- Removed unused viewvideo_nps.c.
- Add doc comments in video_thread_nps.c

* Fix bug in conf_example

Spaces in aircraft name caused compilation error, changed to
'ardrone2_gazebo'.

* Fix duplicate ac_id in conf_example

* Remove debug code from nps_fdm_gazebo.cpp and add comments

* Reduce weight of cameras

Cameras weighed 10 grams, which was quite much. Now reduced to 1 gram.

* Fix camera not active

During the cleanup of the ardrone gazebo model, the always_on tag
was removed. Now, the cameras are activated during gazebo_video_init

Also removed further debug code from nps_fdm_gazebo.cpp.

* Restore master branch video streamer and rtp encoder

The streamer of the master branh does not work correctly atm, but
this will be moved to a separate issue.

* Fix compilation warnings

Fixed all compilation warnings (tested with Gazebo 8).

Unused arguments are now marked as such.

The NPS makefile is modified to use CXXFLAGS in addition to CFLAGS,
which solves the std=c++11 related warnings.

fdm_gazebo.cpp now ignores deprecated warnings, as all of these
come from Gazebo. Not the cleanest solution, but it works for now.

* Add documentation to fdm module xml and add copyright notices where appropriate

* Fix code style

Fixed code style using the tool included with paparazzi.

* Fix missing model.config

.gitignore caused the model.config files for the Gazebo models to
be excluded from the commit. Added an exception to .gitignore and
added the missing file.

* Fix INS by adding placeholder atmospheric data values

Added placeholder values to the atmospheric section of the NPM
struct. These should be valid for low altitude, low speed flights.

Previously, these values were uninitialized which caused INS to fail
(incorrect altitude estimates). With these placeholder values,
the INS works ok and no longer needs to be bypassed.

* Fix makefile targets in video_rtp_stream and cv_colorfilter

(Re)added target="ap|nps" attribute to the module .xml files.
2017-06-13 22:12:11 +02:00
Gautier Hattenberger
c30dbc73b0 revert gitignore and remove conf.xml and control_panel.xml symlink 2017-05-30 23:27:00 +02:00
Open UAS
2a1eea87ac Fixedwing for Pixracer 2017-05-30 08:12:20 +02:00
Gautier Hattenberger
3f4a05d13a [rtcm] RTK with UBlox8 modules (#2034)
* [rtcm] RTK with UBlox8 modules

based on #1902, with fragmentation of packets to fit in RF modems if
necessary

* fix warnings

* [pprzlink] update pprzlink for RXMRTCM message

* [rtcm] add missing files
2017-03-18 16:03:17 +01:00
Gautier Hattenberger
9763a70ca9 New paparazzicenter in Python (#1811)
This is the result of a student project to develop a new paparazzi center based on Python/Qt.
See http://wiki.paparazziuav.org/wiki/Paparazzi_Center/Evolutions for the main idea and development process.
It can be tested by running the main paparazzi launcher with the -python option. I more convenient way might be added later.
This PR is mostly a way to not loose this work, and other people are encourage to improve it in many aspects (HMI, functionalities, ...).
2016-07-19 22:52:15 +02:00
Gautier Hattenberger
94492d5ada [git] add ivy2serial to gitignore 2016-03-15 15:18:04 +01:00
OpenUAS
76405dcbb5 Ignore backup control panel XML documents
No "add ." and a coincidental push will pollute main codebase.
2015-12-09 09:06:20 +01:00
Felix Ruess
dd308ebfaf [modules] add obstacle_avoidance
Improved:

- pocketdrone avoidance flight
- stereo protocol only we use
- avoidance module that takes distances in meters and angles of these measure devices and outputs a velocity or attitude ref.

closes #1462
2015-12-08 18:58:00 +01:00
Felix Ruess
dff284f40a add .gdb_history to .gitignore 2015-11-24 21:17:43 +01:00
Bart Slinger
ec15491b9a [sd logger] Version 2.0 release, direct SPI logging, UART download 2015-10-27 14:13:39 +01:00
Felix Ruess
c403828421 Merge branch 'master' into intruders
* master: (316 commits)
  [conf] LINK_HOST is long obsolete
  [conf] remove nps target from some airframes
  [tests] update docs
  [tests] make compile_all_aircrafts a bit more robust
  [stm32][spi] fix typo
  [stm32][f1][spi] fix gpio init slave mode
  [spi] fixed spi initialization stm32f1
  [qr_code] Dependency and comments
  [datalink] xbee_api: message instead of warning on non-default baud rate
  [conf] rename ARDrone2 Flight session to Flight UDP/WiFi
  [module] add a reset option and setting on meteo stick diff pressure offset
  [module] add pwm based angle of attack sensor
  [telemetry] also register invariant filter for telemetry
  [module] update and fix meteo_stick module
  [generators] fix generation of local waypoints
  [conf] TUD/OpenUAS Fixes
  added correct function inputs
  [conf] TUD fixes
  [tests] fix test_all_confs
  fix typo
  ...
2015-10-03 18:12:47 +02:00
Freek van Tienen
4f3a6ed0a5 [ground_segment] add sbp2ivy 2015-09-12 22:57:14 +02:00
Felix Ruess
9d3b13f7b9 [sbs2ivy] move/rename and cleanup 2015-08-15 12:23:42 +02:00
Felix Ruess
283317576e [logalizer] rename plot to logplotter for clarity 2015-07-07 23:03:50 +02:00
Felix Ruess
b742e5f968 [logalizer] remove cruft and fix compilation of disp3d
maybe just remove disp3d and some of the other remaining stuff as well...
2014-10-22 22:17:08 +02:00
Felix Ruess
9f4fdf7cbc add ivy2nmea to gitignore 2014-10-06 22:31:11 +02:00
Felix Ruess
5b7ef47585 add sublime project file 2014-09-10 15:09:16 +02:00
Piotr Esden-Tempski
4249e5ddf2 Added *.dSYM to gitignore. Removed explicit listings of .dSYM directories. 2014-08-16 21:10:16 +02:00
Felix Ruess
7852704a68 update gitignore 2014-08-15 10:15:29 +02:00
karlito139
78e1de451b [ground_segment] add a video synchronizer tool
A tool to replay a video of a flight in sync with the replay of the log.
Closes #770
2014-07-18 10:29:42 -07:00
dewagter
291f62015a [ardrone_vision] Vision Submodule 2014-04-16 17:44:42 +02:00
Freek van Tienen
baa1fcfd12 [ground_segment] Added NatNet to ivy service 2014-04-01 10:59:53 +02:00
Gautier Hattenberger
7405cb394a [android] beta test of Android GCS app for PPRZ
- server application for the ground station side
- android application:
  http://download.paparazziuav.org/android/PPRZonDroid_v0.4.apk
2014-03-25 13:26:26 +01:00
Felix Ruess
84bc9aa4f1 update .gitignore 2014-03-22 00:56:00 +01:00
Christophe De Wagter
b780d3a2bd [ardrone] upload script without errors 2013-11-27 12:35:49 +01:00
Felix Ruess
a0350247b3 add files to start a new VM via Vagrant
closes #573
2013-11-04 21:52:51 +01:00
Felix Ruess
eff7bef854 ignore .idea dir from JetBrains IDEs 2013-10-22 11:12:47 +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
dcc6377e15 add native versions of gcs/server to gitignore 2013-04-25 14:53:26 +02:00
Felix Ruess
90a76e8195 remove unmaintained debian and install files/rules 2013-03-29 23:29:57 +01:00
Felix Ruess
adae102007 remove AVR support and unused AVR ground modem
closes #397
2013-03-29 23:29:57 +01:00
Felix Ruess
f33617510c add META.pprz to gitignore 2013-03-29 19:12:46 +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
611cfe48e6 update .gitignore 2013-01-10 15:58:11 +01:00
Felix Ruess
cb6facbb75 [conf][doc] prepare for autogeneration of module docs
move defines where the values need escaping to the raw makefile section
this specific escape code doesn't work with all parsers...
2012-12-15 21:22:01 +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
f68b8b7bcb added compass and .settings to gitignore 2012-09-19 00:49:50 +02:00
Christophe De Wagter
97858cb80d Merge 2 consecutive logfiles back into 1 file (e.g. server was restarted during flight) 2012-08-04 11:59:15 +02:00
Bernard Davison
421990134c Merge branch 'dev' of github.com:paparazzi/paparazzi into hardware_test 2012-03-07 10:35:20 +11:00