442 Commits

Author SHA1 Message Date
Christophe De Wagter d13141477d Fix make test_all_confs (#3599)
* Hide 'no-overloaded-virtual' warnings inside JSBSim itself
* Cleanup link to non-existing
* Cleanup old airframes
* Fix: might be used uninitialized
* Fix MAVLink
* Cleanup
* DSDL compile error: new empy does not accept @)
2026-02-19 08:43:21 +01:00
Fabien-B ffaef0e684 Remove stm32 boards (#3585)
Issues due date / Add labels to issues (push) Has been cancelled
Doxygen / build (push) Has been cancelled
- Remove boards using the stm32 arch, deprecated in favour of ChibiOS.
- Remove the airframe and aircrafts depending on these boards.
2026-02-04 23:21:41 +01:00
Fabien-B 8fea57904b [boards] remove Apogee with bare metal arch. (#3583)
Co-authored-by: Fabien-B <Fabien-B@github.com>
2026-02-03 12:53:19 +01:00
OpenUAS c0416dfcbc Added noisy ADC filter option and other improvments (#3542)
Issues due date / Add labels to issues (push) Has been cancelled
Doxygen / build (push) Has been cancelled
* Added noisy ADC filter option and other improvments

* Changes add as requested in PR
2025-11-20 07:53:15 +01:00
Christophe De Wagter 834a420e9c Current compensation code is removed so these defines don't do anything anymore. (#3496)
Issues due date / Add labels to issues (push) Has been cancelled
Doxygen / build (push) Has been cancelled
2025-07-03 22:43:58 +02:00
Jesús Bautista Villar 4ee8e5e1b9 [gvf] Refactor GVF module framework, add GVF_IK, fix bugs, and provide full example config (#3451) 2025-05-16 22:00:28 +02:00
Christophe De Wagter aa0863fd4f Airframe fixes TUD (#3438)
Doxygen / build (push) Has been cancelled
* Airframe fixes TUD

* Modes now set in control_loop.xml

* Fix all joysticks
2025-03-17 14:24:48 +01:00
Gautier Hattenberger dfd8e93927 State interface input filter (#3409)
* [generator] generate unique ID and names table for modules
* [state] add accessors for the state origin
* [state] don't access directly to state origin, use getters
* [state] filter inputs with module ID
* [ahrs] convert AHRS modules to state input filter
- selection of ahrs with settings from each module
- init functions for each ahrs modules
- remove old chimu
* update unit test
* [ins] decoupled INS implementation
To allow multiple INS at the same time:
- remove weak functions from ins.c
- remove the INS_TYPE_H define
- use ABI message to trigger INS reset
* [state] protect for c++
2024-12-03 22:34:27 +01:00
Christophe De Wagter 0abafed245 Fix more airframes (#3384)
* rotwing_automation was removed
* GVF was missing and gave compile warnings
* INS_EXT_VISION_ROTATION define is in airframe, not genertic define
* rename rot_wing also in conf
* Oneloop controller does not export specific thrust
* Missing conf file
* rotwing_vis_transition removed
* Missing airframe
2024-10-02 15:08:15 +02:00
Christophe De Wagter 4c97648080 Fix problems with master after stabilization and chibi merges (#3280)
Co-authored-by: Freek van Tienen <freek.v.tienen@gmail.com>
2024-05-30 09:25:58 +02:00
Freek van Tienen 2a9887a747 [chibios] Update and add Pixhawk 6X autopilot (#3254)
* [chibios] Update chibios and add Pixhawk 6X autopilot

* [conf] Change rotating wing 25kg

* [modules] Fix chibios sdlogger dependency on ADC

* [modules] Fix eff scheduling rotating wing warnings

* [chibios] Cleanup and fixes
2024-05-24 15:35:04 +02:00
Gautier Hattenberger ce7fe4c23f [control] rework the stabilization for rotorcraft (#3248)
Introducing several changes to the control stask for the stabilization:
- new structures: stabilization, stab (att and/or rates) and thrust (vector)
- more functional approach: stabilization receives the stab and thrust
  setpoints from guidance and fill command vector at the end
- modes and sub-modes are redefined (split stab and guidance modes),
  some AP modes are removed (FLIP and MODULE)
- RC read functions are removed and replaced by ABI bindings, one for
  each part (AP, stab, guidance_h, guidance_v) with dedicated functions
- transition ratio (float in [0-1]) replace transition_percentage (int)
- the AP_MODULE mode is replaced by generated autopilot
- the ABI hack for guidance indi is not needed anymore
- AP generator supports a new 'store' attribute to use return values of
  functions
- cleaning of the stabilization API (for setter functions)
2024-05-21 17:01:38 +02:00
Gautier Hattenberger 2ae4fed4e3 [conf] update Enac rotorcraft so that they work in simulation as well (#3235)
- update Enac rotorcraft airframes
- remove dead aircraft
- add jsbsim model files
- update bebop2 example
2024-02-07 13:54:55 +01:00
Gautier Hattenberger 378b9367de Enac conf cleaning (#3223)
move boards test files to separated folder
2023-12-20 09:33:15 +01:00
Christophe De Wagter c1ab6d5418 [airframes] cleanup all tudelft airframes (#3221)
* bug fixes: simulation not selecting airframe, error when removing command, ADC not present in simulation

* remove command_trimmed not used warning (indeed not used) + add comments

* RAM3 overflow. Test of module done in RW3.

* coverity - Microjet - SIM

* clean BR

* CDW + tests

* make openuas/mavlab

* Remove Special ARDrones

* conf

* fixed typ in  eff_scheduler of rotwing_25kg

* Updated preflight checks for rotwing v3b actuators

* Updated tudelft conf

---------

Co-authored-by: Dennis van Wijngaarden <32736330+Dennis-Wijngaarden@users.noreply.github.com>
2023-12-19 21:30:49 +01:00
Christophe De Wagter 94c79d42ca Cleanup airframes: make test_all_confs (#3217) 2023-12-18 21:51:01 +01:00
Christophe De Wagter a07d674c19 Fix compile warnings in ``make test`` (#3216)
* Silent compile warnings in tests

* silent warnings in conf_test

* fix defines: if OLD -> warn and convert. If new, then use. If no old and no new, use default.
2023-12-18 12:34:58 +01:00
Freek van Tienen 864cfba4bd [modules] UAVCAN range sensor and cleanup (#3198)
* [modules] Cleanup airspeed uavcan

* [modules] Add UAVCAN range sensor
2023-12-11 20:39:47 +01:00
Freek van Tienen 7b54c09acc [checks] Add preflight checks (#2951)
---------

Co-authored-by: Christophe De Wagter <dewagter@gmail.com>
Co-authored-by: Gautier Hattenberger <gautier.hattenberger@enac.fr>
2023-11-15 22:54:38 +01:00
Christophe De Wagter 140e359b21 Fix nav hybrid speed (#3165)
* fix incomplete rename

* add nav_hybrid to test conf for next time
2023-11-06 14:52:19 +01:00
Christophe De Wagter 54d2a2b681 hybrid quadplanes and tailsitters explicit (#3161) 2023-11-06 10:49:20 +01:00
Gautier Hattenberger 4ae40567ed [hitl] rewrite support for hardware in the loop simulation (#3146)
- old way (based on ins_vectornav) is not supported anymore
- directly send sensor data and receive commands with a dedicated link
- examples with USB link for better results
- update sphinx documentation
- compilation in a single build
2023-10-31 14:48:55 +01:00
Christophe De Wagter 673beb5e6e [fix] Optical-Flow: configures not configuring, possible FAST9 segfault, several parameters not active in OF (#3140) 2023-10-11 11:35:42 +02:00
Christophe De Wagter 4df13209e5 [opticalflow] bebop2 with dual optical flow (#3136)
* Squash on master
* fix bebeop2_flow
* Divergence is more noisy than previous time... added a low-pass filter, and allow for a higher threshold...
* fixed the sim, removed warnings, removed double airframe
* cleanup airframe, remove all warnings, allow placing camera parameters in sections
* PPRZLINK
* Silent warnings and compile errors
* reintegrated pprzlink
---------
Co-authored-by: guidoAI <guido.de.croon@gmail.com>
2023-10-09 08:35:07 +02:00
Gautier Hattenberger 6948aef012 [dc] add pprzlink digital cam module and factorize modules (#3111)
- new digital_cam_pprzlink module
- factorize module with digital_cam_common
- rename digital_cam to digital_cam_gpio
- add test nodes to modules
2023-09-27 14:31:14 +02:00
Christophe De Wagter 57756b0493 [important fixes] make test all confs (#3100)
* silent warnings make test_tudelft

* [fix] bugfix

* info instead of warning

* fix optical flow landing

* module that can not stop does not need a stop function

* missing CAMERA

* dangerous define not standard

* simulator not working at 120Hz

* When no if-statement was triggered, this is information and not a warning.

* remove doubles

* point to inexisting telemetry

* firmware settings hardcoded to need 7 actuators

* Merge double file into 1

* untested airframe

* old sim can only handle 60Hz

* non-existing telemetry

* old sim not accepting 120Hz

* Unify info messages

* only 60Hz sim

* survey no height

* Missing camera

* WP further from HOME than MAX_DIST_FROM_HOME

* No more warning when there is no heading feedback by design, only an info message

* clean releases

* no warning on free floating heading in manual controlled AC

* no double firmware block: use dual target instead

* fixedwing: PERIODIC must be multiple of TELEMETRY_FREQ

* missing camera

* error with dual heading feedback

* missing kill switch

* remove prefix

* implicit declaration of function 'scb_reset_system'

* implicit declaration of function 'spektrum_try_bind'

* no dual firmware

* shadowed variable

* wrong header

* typo in fix

* TELEMETRY_PERIOD should be a multiple of PERIODIC

* Missing struct dshot actuators_dshot_values in sim during e7781e7b87

* matek sim does not compile

* bebop misses a camera

* silent compile warnings opticflow

* silent compile warnings

* guido fixed

* double prefix

* changed confs

* new way

* setup_actuators setting up 8 actuators needs 8 actuators

* [openuas] so many comments that the compiler failed.

* [tests] make test_tudelft has 4 coonfs

* [ins_flow] depends on gps (called in initialization of  NED)

* [doc] update

* update naming convention

* an octocopter needs 8 ports please

* pprz_can_init type change

* changed conf
2023-09-25 01:12:39 +02:00
Christophe De Wagter 609241add3 [airspeed] reduce number of airspeed raw messages: (#3094)
* [airspeed] reduce number of airspeed raw messages: ETS, MS45xx, SDP3x, UAVCAN -> RAW

* compile warning

* typo

* Update sw/airborne/modules/sensors/airspeed_ms45xx_i2c.h

* warning

* UAVCAN -> RAW

* ETS register airspeed

* AIRSPEED_RAW in telemetry

* cleanup SYNC-SEND but use register-telemetry instead

* [ardrone] Fix values variable

* [sim] Fix compile warnings discaring const

* [modules] Fix airspeed ETS

---------

Co-authored-by: Freek van Tienen <freek.v.tienen@gmail.com>
2023-09-22 12:04:13 +02:00
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
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
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
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 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
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
Freek van Tienen 6fa9cdfa53 [imu] Add heater and temperature options (#2929) 2022-10-27 14:00:13 +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
Freek van Tienen 3e473e72a6 [imu] Enable IMU integration and fix small mistakes 2022-09-21 23:05:11 +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 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
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
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
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
Gautier Hattenberger 1e14fd5bde [modules] clean some remaining traces of subsystems 2021-11-13 00:48:14 +01:00
Gautier Hattenberger 23d9957955 Merge pull request #2721 from paparazzi/autopilot_reorg
Autopilot reorg
2021-08-27 10:23:32 +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
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