Commit Graph

12217 Commits

Author SHA1 Message Date
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 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
Christophe De Wagter 5369e4ab0a Actuator Faulhaber Update (#3358)
* Actuator Faulhaber Update

* Fix <test>

* fix uart
2024-09-25 20:46:02 +02:00
Christophe De Wagter 3794ffceeb EKF_AW Initialization fix (#3364) 2024-09-25 09:54:32 +02:00
Christophe De Wagter b400d1b995 Enable 2 extra UARTS 2024-09-24 12:16:11 +01:00
Gautier Hattenberger 0a33f4be35 [tool] fix calibration tool output
XML is not correctly formated.
fix #3354
2024-09-15 23:43:36 +02:00
Christophe De Wagter 14b278dac6 [ground] Fix wind.py for gtk3.0 (#3351) 2024-08-13 16:45:22 +02:00
NoahWe 6f47dfc720 [modules] Update checklist and add bypass logging (#3342)
* New checklist item and log bypass

* address comments
2024-08-08 16:08:56 +02:00
Fabien-B 6e46350858 [jevois] tag ids can contains '0'. (#3346)
---------

Co-authored-by: Fabien-B <Fabien-B@github.com>
Co-authored-by: Gautier Hattenberger <gautier.hattenberger@enac.fr>
2024-08-01 14:22:29 +02:00
NoahWe 6ea0b681e8 motors running returns true in simulation so drone takes off automatically (#3350) 2024-08-01 12:34:37 +02:00
Tomaso Maria Luigi De Ponti ba6daccdc8 Generic RC_UP message for datalink RC (#3332) 2024-07-31 10:19:00 +02:00
Freek van Tienen 7f13148139 [actuators] Update controller faulhaber (#3347) 2024-07-30 11:02:42 +02:00
Fabien-B dc2ba583e8 [board] Fix tawakiV2 ADC and alternate functions. (#3343)
Co-authored-by: Fabien-B <Fabien-B@github.com>
2024-07-26 16:58:54 +02:00
Fabien-B 3f011db7bd [board] Activate RTC on Tawaki V1 and V2. (#3341)
Co-authored-by: Fabien-B <Fabien-B@github.com>
2024-07-26 13:31:15 +02:00
Tomaso Maria Luigi De Ponti 10e20581b0 [telemetry] Change STAB_ATTITUDE and EFF_MAT messages (#3329)
* first push

* temp tracking of new pprz link branch

* update of pprzlink

* fix highspeed telem

* fix telem

* Add example guidance eff mat msg streaming

* track new pprzlink

* Lighter STAB ATTITUDE

* delete old msg

* fix bug

* removed warning

* Fix bug

* change conf to match new messages

* fixed indentation

* No need to stream u_cmd as it is already in COMMANDS

* track new pprzlink

* Move RC6CH to new pull request

* Remove ACTUATORS SATE

* Use different telemetry

* Small fix

* Track pprzlink master
2024-07-24 14:29:56 +02:00
Tomaso Maria Luigi De Ponti a608eb89a9 Correct Heading of Rotating Wing Drone with Optitrack (#3331)
* first push

* move quat rotation to scheduling module

* code cleanup

* Use rotation matrix for heading correction

* Small adjustments

* declaration in ins file
2024-07-23 11:12:39 +02:00
NoahWe 862f69267e [ins] EKF2 add extra GPS heading checks (#3337)
* add some extra checks if GPS_COURSE_YAW is enabled

* Added antennae distances to airframe files, scale distance error by factor instead of hardcode
2024-07-23 11:09:26 +02:00
Tomaso Maria Luigi De Ponti 6c8c6f118b Additional changes to use commands instead of actuator_pprz (#3330)
* first push

* Remove redundant logic
2024-07-22 15:56:31 +02:00
Tomaso Maria Luigi De Ponti 5f18e784b6 Rotating Wing State and Scheduling updates (#3334)
* first push

* Removed old test section from new eff scheduling

* Added test

* Fixed test defines

* Fix commands index in case needs to be unique for test

* Changed general variables to make them more specific. Added explanation.

* Make use V2 more specific to the rotating wing drone

* changed variable names
2024-07-18 14:43:26 +02:00
Christophe De Wagter 4e00e22993 WLS Debug (#3320)
* WLS Debug

WLS Debug

* track new develop branch

* WLS to use pointer of struct to allow multiple calls of WLS in the same control loop

* additional changes and bug fixes to wls struct pointer rework

* Track new pprzling branch with wls msg additions

* code clean up

* Implement new WLS in guidance and stabilization

* code clean up

* add wls mesg to telemetry. Fix stabilization wanring.

* track pprzlink

* Better casing

* Use WLS_N_U_MAX and WLS_N_V_MAX

* Register periodic telemetry of WLS only if WLS is used

* Track master pprzlink

* Shortened explanation of parameters

* track pprzlink master

---------

Co-authored-by: Tomaso Maria Luigi De Ponti <48210579+tmldeponti@users.noreply.github.com>
Co-authored-by: tomaso_de_ponti <tomasodp@gmail.com>
2024-07-17 21:04:34 +02:00
Angel-HF 455d883677 Added rotorcraft support for circularFormation.py (#3336) 2024-07-16 13:38:29 +02:00
Tomaso Maria Luigi De Ponti ecb94ad478 ONELOOP controller updates (#3333) 2024-07-16 13:28:31 +02:00
Angel-HF e089fd48f7 Implement classic GVF for rotorcrafts (#3327)
* [modules] implemented GVF for rotorcrafts

* Note about Crazyradio communication with Crazyflies
2024-07-12 17:44:01 +02:00
Freek van Tienen 72fe3fb95a [gps] Fix relative position (#3328) 2024-07-05 23:12:50 +02:00
Gautier Hattenberger 4359117d16 [tools] update parrot tools for python3 (#3326) 2024-07-03 11:14:52 +02:00
Fabien-B 8fa8415117 [tag tracking] Compute tag orientation. (#3313)
* [tag tracking] Compute tag orientation.

* [tag tracking] it works

* Fix errors and allow tracking any tag

* improve code readability

* tag tracking doc

* no need for the size

* [tag tracking] silence unused variable warning.

---------

Co-authored-by: Fabien-B <Fabien-B@github.com>
2024-06-22 16:34:45 +02:00
Christophe De Wagter 7100d157c7 [airframe] Update TUD - [ekf] dual GPS heading (#3323)
* Fix messages

* Enable GPS heading 25kg

* Larger heater errors and 25kg checklist

* AGL fix for 3

* Calibrated 25kg

* [ekf2] Fix GPS heading offset

* Fix heading EKF2 and correct GPS ports

---------

Co-authored-by: Freek van Tienen <freek.v.tienen@gmail.com>
2024-06-22 14:49:06 +02:00
Christophe De Wagter 36828c0560 Actuators in PPRZ values (#3316)
* Actuators in PPRZ values

* New messages

* Dual Actuator messages

* ACTUATORS_RAW for driver_val and ACTUATORS for pprz_val

* New PPRZLINK

---------

Co-authored-by: Freek van Tienen <freek.v.tienen@gmail.com>
2024-06-18 13:48:38 +02:00
Freek van Tienen 79dcf7bc4b [makefile] Fix compile for ARM (#3319) 2024-06-18 12:46:22 +02:00
Christophe De Wagter 7c035434ef Oneloop Controller Updates (#3261) 2024-06-18 11:24:07 +02:00