Commit Graph

16470 Commits

Author SHA1 Message Date
Florian Sansou aadd2a5c01 [doc] Update paparazzicenter doc and add airframe doc. (#3398)
* Update paparazzicenter doc and add airframe doc.
* remove empty files.

---------

Co-authored-by: Fabien-B <fabien.bonneval@gmail.com>
Co-authored-by: Florian Sansou <florian.sansou@enac.fr>
2025-02-03 14:11:12 +01:00
Fabien-B 02b08b08c4 Threads abstraction (#3423)
* Threads and synchronization abstractions for paparazzi.
* Test module for the threads abstraction.
* Replace old mutexes by the new ones.

---------

Co-authored-by: Fabien-B <Fabien-B@github.com>
2025-02-03 14:05:16 +01:00
Fabien-B e851238972 [UART & I2C] factorize error telemetry functions. (#3426)
* [UART & I2C] factorize error telemetry functions.

* Fix test

---------

Co-authored-by: Fabien-B <Fabien-B@github.com>
2025-02-03 11:09:12 +01:00
Gautier Hattenberger ca92171aec [autopilot] call the set_mode function at startup (#3425) 2025-02-03 11:07:18 +01:00
Gautier Hattenberger c1fffe906a [build] check gnomecanvas package before compiling legacy GCS (#3422)
Doxygen / build (push) Has been cancelled
Docker update / build_docker_image (push) Has been cancelled
This module is not supported with the custon lablgtk2 for 24.04
2025-01-22 18:20:06 +01:00
Gautier Hattenberger cdae9fa77b [makefile] don't build mavlink if required packages are missing (#3421)
This is a temporary measure to compile or not on ubuntu 24.04 until the
mavlink submodule is updated and integrate the required adaption to cope
with deprecated packages
2025-01-22 17:46:12 +01:00
NoahWe d669809239 [rotwing] Re-add gps fusion mode and sdlog preflight error (#3416) 2025-01-17 10:21:15 +01:00
Gautier Hattenberger d2c88765a9 [ins] fix reset_ref for ins_alt and fixedwing nav (#3420) 2025-01-15 23:16:40 +01:00
Fabien-B 1a93fdeaad [TawakiV2] Add UART4 on AUX_A1/A2 (#3418)
Doxygen / build (push) Has been cancelled
Co-authored-by: Fabien-B <Fabien-B@github.com>
2025-01-06 15:42:47 +01:00
Florian Sansou 10dab31174 Start of documentation for adding boards (#3395)
Doxygen / build (push) Waiting to run
* Start of documentation for adding boards

* Update path

* Add information to common_board.h

---------

Co-authored-by: Florian Sansou <florian.sansou@enac.fr>
2025-01-06 13:09:14 +01:00
Freek van Tienen 31b84454c2 [gps] Move GPS relative position to ABI message (#3410)
Doxygen / build (push) Has been cancelled
2024-12-05 14:01:27 +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
Gautier Hattenberger 32b0dc6944 Add new shell commands (sys_time and imu) (#3411)
* [shell] add imu shell command

read current config and values of IMUs from shell

* [shell] add a sys_time shell command

read current sys_time and registered timers
2024-11-27 15:30:39 +01:00
Gautier Hattenberger ec2b5cb17b [module] fix tests of baro bmp280 module (#3414) 2024-11-27 15:24:09 +01:00
Florian Sansou 6de702a144 Driver for MPU6500, HMC59xx and BMP280 (#3406)
* Enables MPU6500 with MPU60x0 spi driver, adds hmc59xx and enables BMP280 SPI and I2C

---------

Co-authored-by: Florian Sansou <florian.sansou@enac.fr>
2024-11-25 22:53:33 +01:00
Gautier Hattenberger 45abdefc86 [sonar] protect sonar reading by mutex for bebop (#3408)
Both ABI and telemetry messages are not thread-safe and should be
protected by mutex.
Simulation of sonar is handled by NPS.
2024-11-08 15:06:31 +01:00
Florian Sansou 6691770b72 Fix the use of INDI_ALLOCATION_PSEUDO_INVERSE (#3407)
Co-authored-by: Florian Sansou <florian.sansou@enac.fr>
2024-11-05 13:00:09 +01:00
Ewoud Smeur 90ac935509 [tests] Test filter stability for low filter frequency (#3399) 2024-11-05 09:56:13 +01:00
Tomaso Maria Luigi De Ponti 67edd8ab68 Oneloop Controller updates (#3405) 2024-11-01 17:58:50 +01:00
NoahWe 1f08f638ce [rotwing] Smalle fixes (#3404)
* small changes

* increase eff scheduling freq to 500Hz

* remove freq from eff sched xml

* fix mistake
2024-10-31 09:39:54 +01:00
Tomaso Maria Luigi De Ponti 655a496f7e [rotwing] Update state machine (#3397)
* first push

* starting to fix make modules

* Fixed test modules

* Update flight plan valkenburgh

* fix define
2024-10-30 16:47:21 +01:00
Ewoud Smeur bdad22ca96 put max decel calc in function to be used in route as well (#3400) 2024-10-23 10:08:03 +02:00
Tomaso Maria Luigi De Ponti 249c0285b6 Rotwing Demo (#3396)
* First push

* clean up and frequency adjustment
2024-10-18 19:39:31 +02:00
Tomaso Maria Luigi De Ponti 5ae4fd913f Changes to Rotwing 7kg simulator and Actuator dynamics (#3394)
* First push

* More airframes adapted
2024-10-15 13:55:50 +02:00
Fabien-B 32074c9333 Python virtual environment (#3305)
* [python] setup venv and update pprzlink.
* [supervision] open terminal in the venv if it exists.
* clean setup.py
* guard venv boostrap
* [install] Use distro instead of lsb_release.

---------

Co-authored-by: Fabien-B <Fabien-B@github.com>
2024-10-14 15:02:21 +02:00
Christophe De Wagter de12803ee2 [rotwing] Import rotwing changes after Droneport (#3391)
* Import rotwing changes after Droneport

* fix style
2024-10-07 14:24:04 +02:00
Christophe De Wagter 70bcbca557 remove warning (#3390) 2024-10-07 13:28:36 +02:00
Gautier Hattenberger ade23ab09c [flight plan] add a max_speed attribute to fp instruction (#3387)
This is only for the rotorcraft firmware at the moment, and it is
replacing the explicit call to guidance_h_SetMaxSpeed to simplify the
flight plans.
2024-10-04 08:53:30 +02:00
Gautier Hattenberger cea5c644e5 [flight plan] add on_enter and on_exit functions for nav block (#3385)
The functions passed to the attributes 'on_enter' and 'on_exit' will be
called once every time the flight plan state machine enters or leaves a
block, even if the block change is requested by the operator or if it is
caused by an exception.
It allows to properly activate and then disable services related to a
specific block.
Another good side effect is that the block and stage index are now
private and can't be modified by external modules. Old variables
nav_block and nav_stage can still be used as read-only.

Based on the work from:
Baptiste Pollien, Christophe Garion, Gautier Hattenberger, Pierre Roux, Xavier Thirioux.
A Verified UAV Flight Plan Generator. 2023 IEEE/ACM 11th International Conference on Formal Methods in Software Engineering (FormaliSE),
May 2023, Melbourne, Australia. pp.130-140, 10.1109/FormaliSE58978.2023.00021
2024-10-04 08:52:57 +02:00
Christophe De Wagter d7c50a262b Fix Python tools - file name consistency - compile master without warnings - airframe fix (#3388) 2024-10-04 08:51:01 +02:00
Christophe De Wagter fa1eeeb98f pprz_link for #3374 2024-10-03 14:08:35 +02:00
Christophe De Wagter 4e98f10f67 Rotwing control update made compatible with master (#3374) 2024-10-03 13:55:33 +02: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 b7b64d4f44 [uavcan] actuators - fix (#3377)
* Revert "RunOnceEvery instead of counter"

This reverts commit 4601b2010e.

* Revert "Revert "RunOnceEvery instead of counter""

This reverts commit d1cf1de2d1.

* Move to headers
2024-10-02 11:11:16 +02:00
Christophe De Wagter 903b4897f8 Fix airframes in master (#3380)
* Nederdrone fixes

* fix automation
2024-10-02 09:59:07 +02:00
Tomaso Maria Luigi De Ponti 5fce15418b RotWing Demo (#3382) 2024-10-01 15:29:41 +02:00
Tomaso Maria Luigi De Ponti 0bb47009b3 Updates of Oneloop Controller (#3381) 2024-10-01 15:28:18 +02:00
Tomaso Maria Luigi De Ponti 77b0daffd4 Some changes to NAV Hybrid (#3335)
* first push

* Addressed the comments

* address comments

* Correct prefix and variable name

* make radius circle limiting optional

* first push

* Addressed the comments

* address comments

* Correct prefix and variable name

* make radius circle limiting optional

* Added soft acceleration limit

* Remove nav goto where not used. Added logic for minimum no-transition distance. Code clean-up.

* Add possibility to force max goto speed if needed

* Removed nav_goto_max_speed
2024-10-01 13:13:33 +02:00
Christophe De Wagter 5a45a6158d Update ground detect (#3365) 2024-10-01 12:56:08 +02:00
Christophe De Wagter 02d93d9bc9 mavlink update (#3369)
* mavlink

* Cleanup

* Use mavlink
2024-10-01 11:28:16 +02:00
Christophe De Wagter 91e4c4b0a0 [rotwing] update simulator models (#3375)
* [rotwing] update simulator models

* revert
2024-10-01 11:07:59 +02:00
Christophe De Wagter b7e9a97196 Fuel-Cell Monitoring over CAN (#3359)
* Fuel-Cell Monitoring over CAN

use in airframe

correct messages

* Missing telemetry
2024-10-01 08:17:16 +02:00
Christophe De Wagter 347676ff39 remove rot_wing_automation module (#3373)
Co-authored-by: Ewoud Smeur <e.j.j.smeur@tudelft.nl>
2024-09-29 09:06:38 +02:00
Christophe De Wagter 4f1bd75203 [tests] Fix printing summary after testing confs (#3371) 2024-09-28 23:15:12 +02:00
Gautier Hattenberger 51e43fb67d Collection of changes after IMAV2024 (#3370)
- update airframe and add competition flight plans
- fix flight plan DTD
- mag params for Bristol
- add a set_expo function (might be weak) for digital cam driver
- fix tag tracking for simulation, add getter functions
- add option to skip initial circle in nav survey
- fix jevois driver parsing
2024-09-28 14:54:49 +02:00
Christophe De Wagter 7ac367b77c UAVCAN actuator update (#3367)
* UAVCAN actuator update

* RunOnceEvery instead of counter
2024-09-28 14:53:28 +02:00
Christophe De Wagter 7da8daf6e2 [rotwing] Rename to make name consistent (#3366)
* Make naming consistent rotwing

* Fixes

* more files

* fix conf

* revert

* update

* double id's

* Missed a file

* missing renames

---------

Co-authored-by: Freek van Tienen <freek.v.tienen@gmail.com>
2024-09-27 16:43:02 +02:00
Christophe De Wagter c5b9678d77 Airspeed Filtering (#3360)
* Airspeed Filtering

* Change to handler function
2024-09-27 16:18:14 +02:00
Christophe De Wagter c5316c14fb Power UAV-CAN (#3361)
* Power UAV-CAN

* pprzlink
2024-09-27 15:40:35 +02:00
Christophe De Wagter 4d50e8d61c PFC 2024-09-27 09:57:27 +01:00