Commit Graph

84 Commits

Author SHA1 Message Date
Michal Podhradsky 6536a80f58 Fix in mission fw module (so it compiles) (#2211)
Add test for fixedwing mission fw module

Better heading for simulation purposes
2018-01-04 10:12:31 -08:00
Michal Podhradsky 2c35ebeb80 Update HACL-C snapshot as a proper submodule (#2199) 2017-12-04 09:22:33 +01:00
Ewoud Smeur 2e0a520bb7 Rename TUDELFT to tudelft, remove tudelft_ prefix 2017-10-30 17:30:10 +01:00
Michal Podhradsky 626448c713 Fixed copilot module (#2060)
* Fixed copilot module to work both with rotorcraft and fixedwing firmwares

* Minor fixes

* Fixed compilation test
2017-05-06 13:27:07 -07:00
Michal Podhradsky de58bd52ac Added AggieAir airframes 2017-05-06 09:59:36 -07:00
Michal Podhradsky ae7b16411a [vms_ecu] Updated board config and added test module 2017-03-04 15:34:01 -08:00
Michal Podhradsky 40160f1279 [conf] Added Iris. Iris_chibios and Lia chibios tests 2017-02-23 11:25:31 -08:00
Felix Ruess d9b1cd21f6 [conf] fix Quad Navstik and update some settings 2017-01-29 11:47:35 +01:00
Gautier Hattenberger 61ec3e302f [conf] update settings in test and demo conf files 2017-01-10 21:11:11 +01:00
Felix Ruess 8cd43d40e3 [conf] update settings_modules
to avoid annoying reodering changes when opening a conf is opened in Paparazzi Center
2016-12-15 00:34:46 +01:00
Christophe De Wagter aa3294cd4e [servo_switch] -> module name=switch type=servo|uart 2016-10-14 21:26:44 +02:00
Michal Podhradsky 49e058010e Nps update - proof of concept of HITL+SITL integration (#1831)
* FlighGear and Ivy thread working

* Main loop replaced with main_thread

* Cleaned up nps_main

* HITL main - test TX with Vectornav

* Added AggieAir control panel

* [modules] Flight logger module added

* [fixedwing] Airframe configuration updated

* [hitl] Proof Of Concept - IO and simulation running

* [nps] Minor changes in main hitl

* [nps] Performance Test with Pthread library

* [hitl] Working with pthreads instead of glib threads

* [hitl] Minor updates

* [nps] Refactoring to get rid of Gthreads

* [nps] Minor changes, added mutex guards

* [nps] Minor Ivy fix

* [nps] Threads working properly
[hitl] Ins separated

* [hitl] Check for launch variable

* [nps] Refactoring makefile into common and hitl/sitl specific

* [hitl] Hitl works, sitl too

* [hitl] ins_vectornav comments

* [hitl] Updated launch routine

* [nps_hitl Cleaned up version of NPS/HITL
- added support for ACTUATORS message (Rotorcraft)
- resolved start issue for Fixedwing (works fine now)
- minor improvements in threads (fg_thread, ap_init)

* [nps] Minor fixes to save current work

* [nps] Minor fixes

* Update to latest pprzlink

* FlighGear and Ivy thread working

* Main loop replaced with main_thread

* Cleaned up nps_main

* HITL main - test TX with Vectornav

* Added AggieAir control panel

* [modules] Flight logger module added

* [fixedwing] Airframe configuration updated

* [hitl] Proof Of Concept - IO and simulation running

* [nps] Minor changes in main hitl

* [nps] Performance Test with Pthread library

* [hitl] Working with pthreads instead of glib threads

* [hitl] Minor updates

* [nps] Refactoring to get rid of Gthreads

* [nps] Minor changes, added mutex guards

* [nps] Minor Ivy fix

* [nps] Threads working properly
[hitl] Ins separated

* [hitl] Check for launch variable

* [nps] Refactoring makefile into common and hitl/sitl specific

* [hitl] Hitl works, sitl too

* [hitl] ins_vectornav comments

* [hitl] Updated launch routine

* [nps_hitl Cleaned up version of NPS/HITL
- added support for ACTUATORS message (Rotorcraft)
- resolved start issue for Fixedwing (works fine now)
- minor improvements in threads (fg_thread, ap_init)

* [nps] Minor fixes to save current work

* [nps] Minor fixes

* Update to latest pprzlink

* Fixed the feed function

* Compilation fixes

* More compilation fixes

* Last compilation fixes

* Added a simple automated flight plan (auto take off and landing)

* Fixes in NPS

* Removed SBUS fakerator

* Removed superfluous "else"

* Renamed "flight recorder" to "xgear"

* Fixed formatting

* Updated extra_dl module

* Initial support for extra_dl to run over USB serial

* Fixed usb_serial for extra_dl

* extra_dl_periodic() called at TELEMETRY_FREQUENCY
2016-10-04 14:42:10 +02:00
Felix Ruess eca3d3b229 [conf] update settings_modules in example confs 2016-09-26 20:38:14 +02:00
Felix Ruess 21d3c21a9a [math] fix typo 2016-09-25 23:55:34 +02:00
Felix Ruess 82b9b52fed [conf] update confs for removed settings 2016-09-20 14:21:13 +02:00
Felix Ruess 17d32772c0 [imu] convert imu subsystems to modules (#1788)
* [imu] convert imu subsystems to modules

Also
- get rid of explicit imu init|event|periodic calls in main
- each imu implementation has their own imu_x_init/event/periodic

* [imu] fix some imu modules

* [imu] fix bad paths

* [imu] add imu_common module that every implementation autoloads

and put body_to_imu settings in imu_common module

* [imu] fix imu_ardrone2

* [conf] add imu_common settings module in conf_example and conf_tests
2016-08-12 12:02:38 +02:00
Michal Podhradsky 3373596088 Updated geofencing (#1802)
* Added geofence_max_agl and related checks

* Proper geofence checks in nav_geofence
2016-07-14 16:53:36 -07:00
Felix Ruess 62544b28c9 [conf] update settings to loaded modules 2016-07-01 11:55:02 +02:00
Deon Blaauw f1f75e96b8 Hybrid guidance code for hybrid drones (#1769)
This pull request is for the guidance algorithms used to control hybrid drones like the Quadshot and MavShot. It supports autonomous waypoint navigation as well as "forward-flight". The code was flight tested in autonomous waypoint navigation mode, including autonomous landing (using sonar).
2016-06-30 21:51:52 +02:00
Felix Ruess b97e23bdb3 [ins] convert ins subsystems to modules (#1740)
and get rid of ins calls in main and register functions
2016-06-25 17:45:30 +02:00
Felix Ruess dfa6678b6c [conf] commit reordering done by pprz center 2016-06-16 19:42:45 +02:00
Michal Podhradsky 9a8c325e36 Fixed aircraft IDs for new airframe (#1688) 2016-05-26 15:55:54 -07:00
Michal Podhradsky 75f8e34e51 Skid landing (#1669)
Skid landing navigation routine.
Comes with an optional landing control for vertical control system
I did test the build at a localhost.
2016-05-26 15:37:17 -07:00
Felix Ruess 18fadbde59 [boards] support for OpenPilot Revolution board
IMU, mag, baro and telemetry tested.
Positive x-axis of the IMU is indicated by the arrows on the board, the side with LEDS and F4 is up (negative z-axis).
Still missing support for the modem and the external flash...

To get the axes correct also extended the imu_mpu600_hmc5883 driver to allow different axes/channel assignments.
2016-05-19 21:49:03 +02:00
Christophe De Wagter c982c04537 [board] remove classix support (#1626) 2016-04-25 22:54:08 +02:00
Christophe De Wagter e3958e6029 Cleanup cdw airframes (#1623)
* [conf] 2seas2o -> tudelft

* [conf] non-existing airframe

* [airframe] simulate indi frog with no inertia

* [conf] start cleaning old IMAV airframes, remove non-existing

* [airframe_editor] point to other default airframe

* [CHIMU] documentation and examples

* [airframe] yapa_xsens is TUDELFT
2016-04-21 21:55:44 +02:00
Felix Ruess 48b0dbd3bd [conf] update settings_modules in some confs 2016-04-21 01:00:18 +02:00
Freek van Tienen 93959f5080 [conf] Remove unused rate controller and settings 2016-01-27 17:23:23 +01:00
Felix Ruess 29c4174be7 [gps] add fields_valid and remove GPS_USE_LATLONG
add fields_valid bitfiled to gps struct and use that to decide whether a valid UTM pos is availabe instead of always computing UTM if GPS_USE_LATLONG is defined

should close #641
2015-12-13 00:59:51 +01:00
Open UAS 5ce986736e Unified CDW airframe naming and moved related configs 2015-12-10 11:37:15 +01:00
Felix Ruess 348a0a2da5 possibility to use register_periodic_telemetry for mavlink and others
in the telemetry xml file a type can be specified for the process (default is "pprz").
You can also set "mavlink" and use mavlink messages, which will be sent as specified if the mavlink module is loaded and that mavlink message is registered there.
2015-11-27 16:37:54 +01:00
Open UAS d2ab55d30c Special directory testhardware and it beloning config lowercased 2015-10-22 01:00:44 +02:00
Felix Ruess 41d52d0c6a [modules] separate opticflow calculation and guidance hover loop 2015-09-13 17:22:59 +02:00
Felix Ruess 43c62e64d5 [conf] add nps settings to example/test aircrafts 2015-09-12 16:19:37 +02:00
Felix Ruess f2a0bd56a3 [conf] update settings_modules in conf example and tests 2015-09-04 22:58:49 +02:00
Christophe De Wagter efd04742f7 [test] bluegiga test airframe 2015-08-21 11:25:21 +02:00
Piotr Esden-Tempski 6a712d24cd [ELLE0] Added ELLE0 example airframe and sutup files. 2015-08-11 20:21:19 +02:00
Freek van Tienen b143548515 [conf] Fix navstik INDI config 2015-08-07 17:39:53 +02:00
Felix Ruess 0536b76f99 [conf] update settings in example/test confs 2015-07-30 13:55:22 +02:00
Felix Ruess 609d3a0011 third release candiate for v5.6 stable release 2015-07-30 13:47:45 +02:00
Felix Ruess f5c68c569b [airframes] some more cleanup 2015-07-25 10:38:43 +02:00
Felix Ruess 0eae573174 [airframes] move parrot airframes to examples/untested subdirs 2015-07-24 15:50:00 +02:00
podhrmic ea77d1a395 [conf] Aiframe cleanup
- unused airframe xml files fronm conf_example and conf_test.xml were moved to untested folder

closes #1249
2015-07-21 23:28:49 +02:00
Felix Ruess 9e90043e31 [conf] airframes: add sensible standard modules
- set radio file to dummy where only spektrum is used
- use sensible settings files
2015-07-08 17:23:27 +02:00
Felix Ruess 1d482d4666 [conf] remove default_ardrone.xml telemetry file
use default_rotorcraft.xml instead...

basically we now have two extra ARDrone specific messages in the default_rotorcraft file (ARDRONE_NAVDATA and OPTIC_FLOW_EST)
but they are only sent if a publisher is present for it... so it doesn't really hurt...
2015-07-08 16:43:24 +02:00
Freek van Tienen 53dd60e425 [ardrone2] Full remove of raw naming 2015-07-07 11:40:03 +02:00
Freek van Tienen 64ee6bf6f1 [ardrone2] Remove the deprecated SDK version 2015-07-02 13:40:28 +02:00
Felix Ruess 760dc14f7a [conf] bebop: add air_data module 2015-03-25 14:51:35 +01:00
Felix Ruess b95a1aff03 Merge pull request #1130 from paparazzi/refactor_estimators
Continue refactoring of AHRS and INS:
- add GEO_MAG ABI message
- add GPS ABI message
- remove explicit calling of update_gps functions (replaced by GPS ABI callbacks)
- each ins has it's own unique struct/function names
- send STATE_FILTER_STATUS from each implementation (with added id if you run multiple ones)
- use stateIsAttitudeValid() instead of AHRS.is_aligned
  - The state interface is initialized with invalid attitude.
    It becomes valid as soon as an attitude is set (via one of the stateSetNedToBodyX functions).
    This should be only done by an AHRS/INS after it is aligned.
- add possibility to run multiple (currently two) AHRS implementations and switch which one should push the output to the state interface during runtime

`ahrs_init()` and `ins_init()` are now sort of "dispatcher" functions, that init/register the actually used implementation.

As an example using `float_mlkf` as the `PRIMARY_AHRS` and `int_cmpl_quat` as `SECONDARY_AHRS`, in your firmware section of the airframe file:
```
  <subsystem name="ahrs"          type="float_mlkf"/>
  <subsystem name="ahrs"          type="int_cmpl_quat">
    <configure name="SECONDARY_AHRS" value="int_cmpl_quat"/>
  </subsystem>
```

In `ahrs_init()` it calls the ahrs_x_register functions for both. Each of those calls their own ahrs_foo_init and then `ahrs_register_impl(enable_output_function)`, then do the ABI binding and register periodic telemetry functions.

The "enable_output_function" pointer is used to keep a reference to the implementation functions to switch on/off publishing of the output to the state interface.
Hence you can call `ahrs_switch(idx)` at runtime to switch the output of the AHRS implementations.
E.g. with idx=1 switch to the output of the secondary AHRS (with 0 being the primary)
Add the `conf/settings/estimators/ahrs_secondary.xml` settings file to switch them via settings.
2015-03-24 14:19:03 +01:00
Felix Ruess 7f4b313c72 [conf] update conf for apogee_chibios 2015-03-23 23:24:55 +01:00