3186 Commits

Author SHA1 Message Date
Gautier Hattenberger 0b62eb89ef [fix] collection of fixes after AP/FBW merge
some errors after #2828
- fix all airframes using dual boards
- fix calls to ap_state or old imcu API
- fix some includes
- protect some code to compile test programs (without 'commands' API)

close #2840
2022-03-11 16:39:43 +01:00
Gautier Hattenberger e436d78c84 [autopilot] merge AP and FBW in normal operation (#2828)
There is no longer a separated FBW in normal operation for fixedwing,
only a single AP task/thread.
The code for main_ap is now factorized for all firmwares.
Dual MCU support (separated AP and FBW) is still possible, based on the
rotorcraft implementation and intermcu pprzlink messages. Relevant code
is also factorized and available in all firmwares.
The recovery mode (in case of hard fault) is still available for
fixedwing with ChibiOS implementation.
Only intermcu_uart is supported at the moment. Other options (spi/can)
might be added back in the future if really used.

Some other evolution are made:
- in the radio_control and actuators modules, now integrated to AP and
using ABI messages
- the message parsing on datalink event (defined in module) that is now
properly filtering the messages based on their class and allowing to
have multiple callbacks for the same message
- cleaning the part of code that were using the old intermcu fixedwing
interface
2022-03-10 14:21:04 +01:00
Matteo Barbera 3c2b64a5fd Opticflow pyramid build FPS improvements (#2825)
* Speeds up convolution and updates airframe settings

* Reduces PYRAMID_LEVEL to 0 for both cameras

* Updates comments and airframe settings
2022-02-17 10:11:33 +01:00
Gautier Hattenberger e075daf06f [module] wind estimation from quadrotor motion (#2800)
- add a generic linear kalman filter lib
- add a quad model with linear drag and simplified for recent jsbsim
- add example frame and noisy NPS sensor config

see "Estimating wind using a quadrotor" in IMAV2021 proceedings
2021-11-28 22:24:44 +01:00
Gautier Hattenberger 1e14fd5bde [modules] clean some remaining traces of subsystems 2021-11-13 00:48:14 +01:00
Pietro Campolucci 69c55a0663 EKF2 Optical Flow Interface (#2779)
Co-authored-by: Dennis van Wijngaarden <wijngaarden.dennis@gmail.com>
2021-09-15 22:26:28 +02:00
Freek van Tienen dcceffe1b4 Pixhawk ADC 5 and ADC 6 (#2762)
* [actuators] Add randomness to UAVCan telemetry

* [conf] Update Nederdrone

* [boards] Add ADC5 and ADC6 for the pixhawk 4
2021-08-30 20:55:03 +02:00
Gautier Hattenberger 1d3eee4267 [fix] repair some broken conf from CI night build errors (#2773) 2021-08-30 20:52:55 +02:00
Ewoud Smeur c992e5bb5a CHG correct mag ID for cyclone and nederdrone (#2772) 2021-08-27 18:24:39 +02:00
Gautier Hattenberger 23d9957955 Merge pull request #2721 from paparazzi/autopilot_reorg
Autopilot reorg
2021-08-27 10:23:32 +02:00
OpenUAS 32eb688f2c Fix MPU6000 spikes in certain chipbatches (#2759)
* Fix MPU6000 spikes in certain chipbatches

* Adjusted according to mergerequest codereview remarks

Co-authored-by: Open UAS <noreply@openuas.org>
2021-08-24 16:43:13 +02:00
Gautier Hattenberger db64a3819c [nps] clean sensors params files (#2769)
- try to set the sensor frequency automatically at the correct value
- make more parameters configurable
- set higher bounds for all sensors to avoid saturation
- remove old unused files
- update airframe files
2021-08-24 15:27:10 +02:00
Ewoud Smeur 4446ea27fb Nederdrone name written fully (#2756) 2021-08-04 23:23:06 +02:00
Gautier Hattenberger 11ac07d385 [conf] update airframe files
minimal changes, mostly to move the 'modules' node inside firmware
section
2021-07-27 13:34:23 +02:00
Freek van Tienen 47c591f6fb [combined] Small fixes (#2750)
* [conf] Add NederDrone Trailing edge motors

* Update the enter function of guidance_indi_hybrid

* added guidance hybrid message

* [ekf2] Fix EKF2 capabilities to fly with optitrack system

* [ground] Add Herelink python script for logging RSSI

Co-authored-by: Ewoud Smeur <e.j.j.smeur@tudelft.nl>
2021-07-15 15:50:11 +02:00
Gautier Hattenberger 726c44682e [board] support Holybro Kakute F7 (#2746) 2021-07-12 10:35:21 +02:00
Fabien-B bfee649fe9 Fix example conf. 2021-07-05 10:44:57 +02:00
Freek van Tienen 050b4ab6ea [sensors] Fix airspeed ets to work with air_data module (#2733) 2021-05-26 11:14:23 +02:00
Gautier Hattenberger 18945fffcc [gcs] indicate voltage/cell if number of cells is specified (#2732)
Add a define for BAT_NB_CELLS in the BAT section of the airframe file to
activate the display
2021-05-20 14:16:34 +02:00
Ewoud Smeur 55653afd50 remove lift eff scaling (#2728) 2021-05-19 15:17:22 +02:00
Freek van Tienen c52a0b7e58 Navy guidance (#2724)
* Adding guidance changes on top of master branch

* [pprzlink] Update to new version

* [conf] Change airspeed sensor Neddrone4

Co-authored-by: Ewoud Smeur <ewoud_smeur@msn.com>
2021-05-18 16:28:01 +02:00
Freek van Tienen 4b248e4e93 Nederdrone reintegration (#2723)
* [ctrl] Add simple INDI scheduling module

* [conf] Cleanup Nederdrones

- Fix magnetometer orientation
- Remove unused defines
- Fix ailerons orientation

Co-authored-by: Ewoud Smeur <ewoud_smeur@msn.com>
2021-05-17 22:10:06 +02:00
Ewoud Smeur e44277d1f9 Filter rates indi (#2718)
* Changed to use the filter interface

* Cleaning defines from airframe files

* update module doc

* [conf] Fix Nederdrone back wing numbering

* Filter frequency in Hz

* Fix nameing with prefix

Co-authored-by: Freek van Tienen <freek.v.tienen@gmail.com>
2021-05-12 22:41:32 +02:00
alexandre bustico fdbd4679c7 Feature accurate cpu load (#2716)
* use more precise STATISTICS module instead of deprecated PROFILING one to get accurate cpu load informations
* enable sys_mon module in drop1 airframe
2021-05-07 17:46:44 +02:00
Freek van Tienen 5e6794c197 [rotorcraft] Add GPS loss bypass with datalink timeout (#2709) 2021-05-06 10:44:15 +02:00
Freek van Tienen febbd541b0 [conf] Cleanup TUDelft NederDrone 2021-05-04 17:31:58 +02:00
Freek van Tienen a24b93f3da [uavcan] Fix NPS simulator (#2699) 2021-04-21 17:14:31 +02:00
Freek van Tienen 627ecce31b [actuators] Add UAVCAN actuators for chibios (#2511)
* [actuators] Add UAVCAN actuators for chibios

* [conf] Fixes for Nederdrone

* [conf] Cleanup nederdrone

* [boards] Fix FMUv5 i2c DMA

* [conf] Fixes for Nederdrone4

* [actuators] Add uavcan simulator

* [uavcan] Rewrite to seperate module for actuators and sensors
2021-04-20 14:10:25 +02:00
Gautier Hattenberger fdd82745cb restore deleted module and clean other config files (#2697) 2021-04-18 16:06:12 +02:00
Gautier Hattenberger addc8d051c [cleaning] removing some old stuff (#2696)
* [cleaning] removing some old stuff

- infrared sensors and related ahrs
- mkk and asctec actuators
- old carto modules
- fix bebop actuators for NPS
- clean airframe and conf

* [conf] add back asctec_v2 actuators that is still being used
2021-04-16 17:56:16 +02:00
Gautier Hattenberger 4c1785d00b [cleaning] drop support of LPC21 boards and related conf (#2695) 2021-04-14 14:05:17 +02:00
Christophe De Wagter 2f094ec4ff Health tools based cleaning (#2691)
* [conf] fix health script, remove flightplans that reference missing files, fix illegal XML that python can not load.

* [fixes] removed modules with missing c-code, solved bad XML formats, fixed missing modules in airframes, solved health-tools (Python3)

* [airframe] removed unexisting modules

* [calib] unreferenced calibrations
2021-04-09 16:59:20 +02:00
Christophe De Wagter 951019e34b Cleanup TUD Conf and Airframes (#2690)
* Cleanup: dual identical conf: mk=delfly, renames, removed doubles

* [airframes] remove doubles, move modules to firmware section

* [airframes] modules -> firmware

* more fixes
2021-04-09 12:59:44 +02:00
Christophe De Wagter 2c55ce3686 Files for PDF exercise (#67) (#2687)
* files for PDF exercise

* Explicit call to python2 for systems that default to python3

* Description and comments fixes

[flight_plan] remove warning about dummy WP

Reformatted indents to 2 spaces

Added configs for ps4 gamepads, fixed typos (#68)

Update: for flight testing in the CyberZoo

Fix color gain in mav_course_exercise.xml airframe (#72)

[flight_plan] Re-measured the autoland border. It is not safe to exit the red sqaure so it auto-lands to prevent damage. (#73)

[Camera] Vision runs faster is unnecessary frames are not grabbed. (#74)

Co-authored-by: Matteo Barbera <matteo.barbera97@gmail.com>
2021-04-09 09:12:55 +02:00
Gautier Hattenberger 20900c46fb [fix] remove all ref to UPDATE_ON_AGL for sonar (#2683)
This is no longer used since #1910

Close #2671
2021-04-09 09:11:13 +02:00
Fabien-B 61261aa19c [examples] migrate modules from deprecated "modules" node to "firmware". (#2678) 2021-03-25 09:54:02 +01:00
Gautier Hattenberger 31fe70c581 [build] second batch of corrections from semaphore CI errors and warnings (#2675) 2021-03-25 09:48:17 +01:00
Gautier Hattenberger 7afb1b7fea [build] batch of fixes from CI errors and warnings (#2672) 2021-03-17 13:12:54 +01:00
Gautier Hattenberger e4d9e10492 [modules][ocaml] implement module dependency (#2669)
- support depends, conflicts and provides nodes, all under a 'dep' node
- autoload are kept for now and are not moved yet
- modules are updated for new dep format
- it is now required that module's name and filename are the same
2021-03-16 17:47:34 +01:00
Christophe De Wagter 48c6128628 [conf] Rename 2021-02-10 09:12:27 +01:00
Gautier Hattenberger 2e7ba37cf6 [conf] drop discovery boards
if test board from ST should be used, better use the more recent
nucleo144
2021-02-02 18:37:24 +01:00
Gautier Hattenberger 095bb75e49 [conf] drop support of XVert
never really worked it seems, and the frame is no longer available
2021-02-02 18:32:26 +01:00
Gautier Hattenberger de7a96c292 [conf] drop support of VMS ECU board and related modules 2021-02-02 18:27:17 +01:00
Alexandre Bustico a1d306bb40 upgrade paparazzi board config for ChibiOS 2021-02-01 17:03:12 +01:00
Matteo Barbera c6c33572db [computer vision] Opticflow multiple cameras (#2618)
* cv.c changes to support multiple cameras, compiles but untested
* opticflow module runs on both cameras
* modified airframe to showcase module running with two cameras
* updated OPTICFLOW ABI message to send camera id info
* now possible to subscribe to the ABI message from a specific camera
* Added camera_id field to conform with new telemetry message
* Updated pprzlink
2021-01-30 18:30:12 +01:00
Gautier Hattenberger e37090e14e [board] support Matek F7 Wing 2021-01-21 13:01:45 +01:00
Gautier Hattenberger e0b299acd4 [shell] add a shell module with ChibiOS (#2634)
* [shell] add a shell module with ChibiOS

- add a set of core commands
- allow to add custom commands from external modules at runtime
- fix small errors in rtos_mon module

* [shell] only for ap target at the moment
2021-01-05 16:01:40 +01:00
OpenUAS f1ca529e78 In phases add all OUAS flyable airframes (#2629)
* In phases add all OUAS flyable airframes

* on requaest added separate ac file without conf in name

Co-authored-by: Open UAS <noreply@openuas.org>
2020-12-17 17:20:02 +01:00
Gautier Hattenberger d9d3498ca2 [board] add nucleo144 dev board (#2624)
* [board] add nucleo144 dev board

it is a cheap dev board for testing, using the same processor than the
Tawaki autopilot and configured (almost) with the same pins (except for
the leds and some original servo and aux pins)

* remove SD card support for nucleo144

* clean cfg file
2020-12-02 09:57:37 +01:00
hendrixgr 97c916697f FIXED two typos in two files (#2620)
* FIX removed non existent module

The fixed_wing_cam_v1 module is not part of paparazzi.

* FIX replaced one call keyword with call_once

* FIX replaced the last value of 1 with true

* FIX another 1 was replaced with true

I think this time everything is fine.

* FIX removed two unneeded definitions.
2020-11-16 09:30:19 +01:00