Commit Graph

73 Commits

Author SHA1 Message Date
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
Christophe De Wagter 55dda79727 merge dev 2012-03-05 17:20:28 +01:00
Christophe De Wagter f4d6a1ff47 Ignore new compiled files from openlog module 2012-03-05 15:24:10 +01:00
Bernard Davison 3ef96b1003 Adding more perl modules
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.
2012-03-05 19:50:44 +11:00
Bernard Davison 4b6d045ce0 Adding the tests/results directory to be ignored.
We never want to commit anything from the tests/results/ directory.
2012-03-05 15:10:15 +11:00
Bernard Davison 0c1bc178a4 Corrected a regex and added a couple of ignore items 2012-03-05 12:48:16 +11:00
Gautier Hattenberger dc7eed2304 remove old srtm makefiles 2012-03-04 19:14:48 +01:00
Piotr Esden-Tempski 4a64952606 Added .DS_Store to ignore files. 2012-02-11 19:26:02 -08:00
Felix Ruess 4a7062b6e9 some cleanup and fixme stuff
- attitude_ref_quat: use STABILIZATION_ATTITUDE_SP_MAX_PHI instead of STABILIZATION_ATTITUDE_SP_MAX_P to define ROLL_COEFF
- added ahrs test prog to gitignore
2012-02-10 18:57:30 +01:00
Felix Ruess 0ed489b9d1 added eclipse project files to .gitignore 2012-01-24 23:12:07 +01:00