Commit Graph

3030 Commits

Author SHA1 Message Date
Freek van Tienen 7ae5f91a2a [modules] Fix flight recorder and MAVLink frequency to TELEMETRY_FREQUENCY and configuration (#3085) 2023-09-20 18:08:59 +02:00
Christophe De Wagter b7fca88f8d [airframes] harmonize airframes, test all flightplans and test compile all nederdrones (#3082) 2023-09-20 13:31:02 +02:00
Freek van Tienen 528f5d5b10 [boards] Add support for the CubePilot - Cube Orange+ (#3017)
* [imu] Add Invensense V3 driver

* [imu] Add samplerate to raw ABI message

* [boards] Add support for the CubePilot - Cube Orange+
2023-09-20 11:16:01 +02:00
Christophe De Wagter 2a5c6d3eec [modules] Approach moving target filter (#3067) 2023-09-15 21:51:20 +02:00
Christophe De Wagter 6435c9fc43 [airframes] Airframe fixes (#3061) 2023-09-14 16:58:15 +02:00
guidoAI a40e0fa4e1 Pull request with all the code for 6 DOF optical flow control, the ba… (#3028)
* Pull request with all the code for 6 DOF optical flow control, the basis of a Nature and Nature Machine Intelligence paper.

* Camera ID was already added.

* Remove a duplicate airframe file.

* Cleanup

* Simulator does not work with opticflow

* Incorporated comments review

* fix provides

---------

Co-authored-by: Christophe De Wagter <dewagter@gmail.com>
2023-09-13 15:46:23 +02:00
Ewoud Smeur 6c5093f1ac add nav_hybrid to nederdrones 2023-08-24 13:42:28 +02:00
Fabien-B 2a98d9fb69 Add PyBullet FDM for nps. (#3024) 2023-04-16 22:10:53 +02:00
Freek van Tienen d27ef116f4 [uavcan] Add support for the EQUIPMENT_ACTUATOR_ARRAYCOMMAND message (#3016) 2023-03-29 22:57:56 +02:00
Gautier Hattenberger 7f620c0449 [board] basic support of matek h743 slim (#3001)
only flashing with DFU for now
default orientation for MPU6000 imu
fix small bugs
2023-03-06 18:03:00 +01:00
Gautier Hattenberger b152b927b3 Fix nav rework (#3004)
* fix guidance_v in flight plan and remove old settings

* nav radius, descend and climb

* [stab] make a attitute set quat function

* fix function name

* fix parsing of variables in proc, don't use = in fp

* fix nav heading in modules

* fix some more errors

* fix var name
2023-03-06 10:45:44 +01:00
Gautier Hattenberger 28ef30ed80 Nav rotorcraft rework (#2964)
This is a complete rework of the navigation for rotorcraft with the key features:

- all nav functions and interface in float
- nav function are registered (decoupling between nav API and implementation of standard pattern)
- submodes to specify if setpoint is a position (legacy), speed or accel (better integration of algorithms like GVF)
- guidance (H and V) is reorganized with default function to implement (run_pos, run_speed, run_accel) 
- guidance control (the old default PID) is separated from the guidance logic

---------

Co-authored-by: Freek van Tienen <freek.v.tienen@gmail.com>
2023-03-02 22:15:23 +01:00
OpenUAS 4ef8b85690 PPM input, GPS input and Telem etc. all working now (#3000) 2023-02-28 18:38:32 +01:00
Christophe De Wagter c614a5c6be Wider range of orange, so it avoids rather too much than too little to start with. 2023-02-11 00:03:11 +01:00
Ewoud Smeur dc998be91d Nederdrone ctrl scheduling + moving target app (#2957)
* Nederdrone ctrl scheduling + moving target app

- Nederdrone airframe files
- Ctrl effectiveness scheduling
- Target position communication and planning
- Approach to a moving target guidance

* Update conf

* fix compilation problems

* flight plan compatible new GCS

* remove module test

Co-authored-by: Freek van Tienen <freek.v.tienen@gmail.com>
2022-12-16 16:02:16 +01:00
Ewoud Smeur bf4adb45a2 INDI hybrid updates (#2954)
- Two interpolation segments during transition
- Quadratic lift effectiveness with airspeed
- Velocity setpoint input possible from module via ABI message
2022-12-02 21:58:48 +01:00
Ewoud Smeur 351d90f86e File logger rename (#2956)
* file logger namechange to logger file

* airframe file updates with namechange
2022-11-29 21:58:02 +01:00
Ewoud Smeur 180ebd289a adaptive INDI fix (#2955) 2022-11-29 21:49:38 +01:00
OpenUAS 6df663ff53 Added driver for QMC5883L Magnetometer (#2953)
Co-authored-by: Open UAS <noreply@openuas.org>
2022-11-28 22:09:37 +01:00
Ewoud Smeur 6a44445dd2 Convergence rebase (#2946)
* Added disco_rotorcraft airframefile to be able to fly hybrid code

* Created files (airframe and flightplan) and added bebop_convergence to tudelft conf

* allow higher version bebop

* logging motor commands and accel bebop2

* Updated hybrid guidance indi  variables for bebop2

* improvements

* Prepared bebop2 airframe for cyberzoo test

* Flying bebop in the cyberzoo

* increase outer loop gains

* bebop2 jsbsim file

* no failsafe thrust for rotorcraft

* use ekf2 for bebop2

* Prepared flightplan for outside test

* fix static heading

* Added disco_convergence

* Updated hybrid guidance with extra variables as macro for convergence test

* extended logger with nav target

* typo with the nav_target

* fix thrust estimate

* no ctrl eff scheduling

* Flown code Valkenburg

* Tuned Disco convergence and added nps sim

* 24-06-2021 flown disco code, noise on thrust

* Updated disco flight plan to increase and decrease altitude 20 meters in flight

* change thrust effectiveness

* cleanup

* logger default freq, lexer, etc.

* further small improvments

* lower frequency for AHRS_REF_QUAT

* use more lexer

Co-authored-by: Dennis van Wijngaarden <wijngaarden.dennis@gmail.com>
2022-11-23 21:21:17 +01:00
OpenUAS f5a666b0b3 Add chibios for lisa mxs fc (#2949)
* Add Chibios support for Lisa MXS flightcontroller

* Moving towards Chibios support for all boards

Co-authored-by: Open UAS <noreply@openuas.org>
2022-11-11 21:56:47 +01:00
Freek van Tienen 6fa9cdfa53 [imu] Add heater and temperature options (#2929) 2022-10-27 14:00:13 +02:00
Gautier Hattenberger edac780492 {conf] add demo flight plan
[imu] connect aligner with 1efilter for imu
2022-10-15 23:58:50 +02:00
Jesús Bautista Villar 149dc9b10a GVF user configs and GVF Viewer documentation (#2896) 2022-10-12 11:26:17 +02:00
Freek van Tienen 46055fc8f8 [chibios] Fix i2c error handling (#2898)
* [chibios] Fix i2c hanging full autopilot for 50ms and better error handling
* [airspeed] Fix ms45xx faulty readings
* [board] Fix cube orange test build
* [actuators] Remove actuators_ppm which is not implemented
* [ppm] Fix warnings for lisa mx and lisa m
* [tests] Fix test build and std.h include for TRUE/FALSE
* [chibios] Update to latest paparazzi version
2022-10-07 15:27:43 +02:00
Gautier Hattenberger d721d0c727 Update conf enac imav (#2905)
* update enac conf and imav2022 flight plans

* collection of small corrections and improvements

- default mode is NAV for rover steering
- no rover throttle when killed
- xbee link doesn't send data to modem before end of config
- fix alt in server (geoid/ellipsoid)
- support GPS_INT in sd2log
- don't increment position in follow module
- use correct angles for hybrid
2022-09-28 15:34:59 +02:00
Freek van Tienen 3e473e72a6 [imu] Enable IMU integration and fix small mistakes 2022-09-21 23:05:11 +02:00
Gautier Hattenberger 00766ee4d5 [imu] backward compat for single imu calibration
- old airframe with single imu configuration will continue to work, ABI
id is automatically found
- mag modules require @imu to guarantee init order, multiple calls of
imu_init is no longer needed
- ABI_BROADCAST id is used by default and then replaced by correct ID
- imu_set_default_config will override user conf if params are not NULL
2022-09-20 14:37:58 +02:00
Freek van Tienen 4b28d6d592 [nps] Set the default sensor parameters 2022-09-20 14:37:58 +02:00
Freek van Tienen 1307cff084 [modules] Remove imu_mag_current module 2022-09-20 14:37:58 +02:00
Freek van Tienen ff37e63af4 [imu] Fix new imu structure 2022-09-20 14:37:58 +02:00
Freek van Tienen 7c7cfbc395 [imu] Multi IMU support 2022-09-20 14:37:51 +02:00
Freek van Tienen ad4654b77f [imu] Add Invensense V2 driver 2022-09-20 14:33:37 +02:00
Jesús Bautista Villar 9098b7c1dd GVF firmware adjusted to work with GVF Viewer (#2893) 2022-08-31 15:37:52 +02:00
Pietro Campolucci 8bc09ba3b1 fixed CPPM reception issue for lisa_m and lisa_mx ap (#2887)
* fixed ppm for lisa_m and lisa_mx

* changed PWM error to warning
2022-07-06 18:27:44 +02:00
Gautier Hattenberger bb0a27187e Merge pull request #2881 from fvantienen/cleanup_imu
[imu] Cleanup
2022-05-19 23:54:31 +02:00
Freek van Tienen 3211fa011c [settings] Support functions (#2880)
* [chibios] Add reboot functionality
* [modules] Add power switch module
2022-05-19 23:53:22 +02:00
Freek van Tienen 85d6056d37 [boards] Remove swing 2022-05-18 18:58:40 +02:00
Freek van Tienen 2a0dba4025 [chibios] Add STM32H7 (#2859)
* [chibios] Add STM32H7

* [chibios] Update to latest version

* [chibios] Cleanup board configuration

* [chibios] Cleanup peripheral drivers

* [chibios] Fix bootloader interrupt vector done inside ChibiOS

* [sdlogger] Enable RTC by default

* [chibios] Fix DMA buffers SPI/I2C

* [formatting] Fix formatting/styling of files

* [chibios] Change PWM configuration (small fixes i2c and makefile)

* [chibios] Generic board files

* [boards] Fix apogee board

* [conf] Cleanup airframes and remove Navstik board
2022-05-18 17:38:58 +02:00
Christophe De Wagter 5d8a967665 [airframes] XML error, solves #2868 2022-05-03 09:10:13 +02:00
Christophe De Wagter 856710b386 [ariframe] sample bebop with 2x 30Hz optic flow: front and bottom cam: pyramid=0, img=240x240, fps=30Hz, corner=30 (#2868) 2022-04-22 23:21:47 +02:00
Freek van Tienen a0e00fd753 [ins] EKF2 update to latest version (#2829)
* [conf] Add splash4 airframe
* [ins] Update EKF2
* [ekf2] Add support for optitrack and update gps datalink module
* [modules] Fix gps datalink module heading calculations
* [ground] Remove old natnet2ivy
2022-04-12 11:08:20 +02:00
Ewoud Smeur 57ff4b9823 Ref model float (#2842)
* reference model rewrite

* configurable carrot distance

* better CARROT_DIST int cast

* comment for POS_REF_FRAC

* higher resolution ref pos

Co-authored-by: Gautier Hattenberger <gautier.hattenberger@enac.fr>
2022-03-24 17:25:51 +01:00
Jesús Bautista Villar 4d4fbc2852 Rover steering wheel (#2845)
* Steering wheel rover main files and guidance

* Fix: Undeclared function nav_reset_alt warning

* GVF mission flight plan

* NPS FDM for rovers

* GVF low_level_control.c included in gvf.c

* Rover main loop for non chibios arch (copy/paste from rotorcraft)

* Delete conf/modules/rover.xml

The creation of this file was a mistake.

* NPS for rover fixed

* rover_guidance_steering periodic -> autopilot state machine

* Fixes and comments
2022-03-24 15:31:12 +01:00
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