Commit Graph

12176 Commits

Author SHA1 Message Date
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
Christophe De Wagter 7967299dad Replace THRUST_X_EFF by G-matrix value + Max forward pitch in RotWing (#3301)
* Update rotwing

fix merge

use same pusher effectiveness in guidance INDI

Correct spaces

Apply suggested fix

* Rotwing default altitude 25kg

* sensible values for max lat accel

---------

Co-authored-by: Ewoud Smeur <e.j.j.smeur@tudelft.nl>
2024-06-18 11:15:26 +02:00
Gautier Hattenberger ccfc57ef15 [stabilization] fix reporting of attitude setpoint in hybrid mode (#3309)
also add stab message to flight recorder
2024-06-17 14:25:09 +02:00
Gautier Hattenberger 45c79f824a [autopilot] fix warning on mode changed after #3308 (#3317) 2024-06-16 15:27:37 +02:00
Christophe De Wagter 3d87525cd1 Fixes for master: prevent falling over on simulation start and fix 2nd order filter (#3312)
* prevent falling over on simulation start

* Small fix for new inflight filter tuning.

---------

Co-authored-by: Ewoud Smeur <e.j.j.smeur@tudelft.nl>
2024-06-15 22:39:40 +02:00
Christophe De Wagter 15f95e592b Summary of compile errors (#3314) 2024-06-15 22:08:03 +02:00
Gautier Hattenberger 7adcd00fd7 [autopilot] send AP status at every changes (#3308)
- works for all firmwares implementing the autopilot_send_mode function
- avoid to wait the next telemetry message to have the notification
2024-06-15 11:29:50 +02:00
Fabien-B 3c85bdfaf3 [tag tracking] handle multiples ARUCO (#3304)
* [jevois] Fix parser.
* [tagtracking] Track multiple tags.


---------

Co-authored-by: Fabien-B <Fabien-B@github.com>
2024-06-14 19:24:53 +02:00
NoahWe 2517b1721e Solve wing vibration of the 25kg rotating wing drone (#3311)
* configurable filter frequency rates
* adjust filter freq tested in CZ 70 deg skew

---------

Co-authored-by: Ewoud Smeur <e.j.j.smeur@tudelft.nl>
2024-06-14 16:43:42 +02:00
Ewoud Smeur 9782790d8a fix typo in define (#3306) 2024-06-14 15:12:55 +02:00
Christophe De Wagter 33b754bae0 Rotwing 25kg re-master (#3282)
* Rotwing 25kg

* Fix wrong feedback from wing

* fix typo

* Fix sim

* limit max pusher command

---------

Co-authored-by: Ewoud Smeur <e.j.j.smeur@tudelft.nl>
2024-06-13 16:39:55 +02:00
Christophe De Wagter 302695ede3 Auto-doublet-settings (#3302) 2024-06-12 09:25:34 +02:00
Christophe De Wagter 4b4ebface9 Actuator Faulhaber (#3283)
* Actuator Faulhaber

code style

activate

fix test

* Update conf/modules/actuators_faulhaber.xml

* try to fix

* Update conf/modules/actuators_faulhaber.xml

* 16-bit code
2024-06-12 09:03:14 +02:00
Christophe De Wagter 19be47a427 Rename battery_uavcan to more genertic power_uavcan (#3299) 2024-06-11 15:17:12 +02:00
Gautier Hattenberger 167b1768e5 Fix collection errors from ci (#3296)
* [chibios] remove unecessary option that makes a warning on H7

see ChibiOS forum: http://forum.chibios.org/viewtopic.php?t=5830

* [guidance] fix hybrid guidance

after merging #3248

* [natnet] remove call to function that doesn't exist

issue were only on verbose mode

* [conf] remove bebop_flip aiframe file

The FLIP mode is not supported anymore, better remove this example.
If flip is really needed, it should be implemented as a custom mode in
generated autopilot.
2024-06-11 14:26:53 +02:00
Gautier Hattenberger 18fa11d99d [indi] fix thrust filtering after #3248 (#3297)
guidance indi thrust is broken when using specific force gain
2024-06-10 09:51:37 +02:00
Fabien-B e4142d1182 [supervision] fix executable mode (#3293)
Co-authored-by: Fabien-B <Fabien-B@github.com>
2024-06-06 16:09:18 +02:00
Fabien-B b4af85dd71 [supervision] Use PyQtWebEngine for the doc webview. (#3291)
QtWebKit is deprecated.

Co-authored-by: Fabien-B <Fabien-B@github.com>
2024-06-06 11:39:07 +02:00
Fabien-B b71d4793a6 [python] Fix shebangs to use the "right" interpreter. (#3292)
Co-authored-by: Fabien-B <Fabien-B@github.com>
2024-06-06 11:38:47 +02:00
Fabien-B 7f2d374c4f Update natnet SDK. (#3249) 2024-06-06 11:31:06 +02:00
Gautier Hattenberger c158c856f3 [ocaml] use glib from gtk3 if gtk2 is not found (#3290)
Gtk3 doesn't support all features of gtk2 (or have a different interface), so if only gtk3 is found, GUI tools are not compiled, only CLI tools based only on glib.
If no gtk found, tools based on glib/gtk are not compiled.
Remove two old tools not used and not supported by gtk3.
2024-06-05 18:10:51 +02:00
Christophe De Wagter 308a698bf4 [tudelft] Rot Wing Updates V3 (#3278)
* max bank in deg

* takeoff no attitude msec timer

* Prepared elevator moment compensation fix

* [EHVB_rotwing fp] Updated takeoff stratgey with roll and pitch check and added standby_free to flightplan

* [fp EHVB] Takeoff 3 seconds on att 0,0

* increase filter freq and setting for max acc

* [rot_wing_eff_sched] Elevator 5 degrees higher

* [rot_wing] Decreased cutoff frequencies of filters

* [modules] Support dual ublox GPS modules

* [ekf2] Add failsafe remove yaw

* Reverted acceleration limits

* takeoff procedure update

* [flight_plan] Takeoff when hover motors are running

* scale elevator ctrl eff in transition

* [conf] Fix takeoff

* Higher pitch gains

* Fix conf

* Add extra throttle for spinup

* Update calibration

* max_bank in Radians only except in xml/gcs with auto-conversion

* cleanup

* Use flightplan variables instead...

* fix test

* revert debugging action

* cleanup unused

* cleanup more

* Fix compile bug

* [pfc] Fix actuators

* Add follow tests

* reduce pitch weight in forward flight

* correctly set cmd thrust in INDI

* fix takeoff unequal roll effectiveness and not in_flight

* Fix heading in approach

* fix double define and roll scaling setting

* settings names and roll scaling in right settings

* moving simulator stuff

* [flight_plan] Update angel for takeoff

* Update conf

* Conf update

* [conf] Update checks

* land in approach

* Fix flightplan

* Update sw/ground_segment/python/moving_base/moving_base.py

* input params for moving base sim

* no elevator compensation

---------

Co-authored-by: Ewoud Smeur <e.j.j.smeur@tudelft.nl>
Co-authored-by: Dennis van Wijngaarden <32736330+Dennis-Wijngaarden@users.noreply.github.com>
Co-authored-by: Freek van Tienen <freek.v.tienen@gmail.com>
2024-06-05 14:58:07 +02:00
amtcvx 827a468e8a update ws2812 led module dma strcuture (#3288)
Co-authored-by: pprz <amtcvx>
2024-06-05 08:54:45 +02:00
Fabien-B c7c7f85bc4 [supervision] remove VT100 escape codes. (#3286)
Co-authored-by: Fabien-B <Fabien-B@github.com>
2024-06-04 13:32:30 +02:00
Fabien-B 5e0f869eaa [supervision] remember last flash mode used. (#3287)
Co-authored-by: Fabien-B <Fabien-B@github.com>
2024-06-04 11:07:00 +02:00
Christophe De Wagter 23cd68a17c [modules] UAVCan battery information (#3284) 2024-05-31 12:03:24 +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
Christophe De Wagter e6bcd60666 actuators[ ] array of structs with pprz units and driver units (#3205)
* actuators[ ] array in pprz units, conversion to actuator_driver units when sending to the actuator_driver.

actuators becomes an array

* Moved scaling of the Servo to the Set function.

* Fixed switches and pan-tilt to work in PPRZ units now. Simplified code.
2024-05-25 09:38:51 +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
Christophe De Wagter 5e9e61e499 Fix compile warnings make all_confs on v6.4 (#3277)
* DSHOT errors

* Fix extra variable
2024-05-24 15:33:27 +02:00
Freek van Tienen 9341cf0b12 [pfc] Add ground checklists (#3276) 2024-05-24 15:32:53 +02:00
Freek van Tienen 58caa662cd [modules] Support dual ublox GPS modules (#3267)
* [modules] Support dual ublox GPS modules

* Fix UCenter

* Fix make test_modules

* Fix: tell ins_ekf2 when no YAW is available

---------

Co-authored-by: Christophe De Wagter <dewagter@gmail.com>
2024-05-24 09:55:16 +02:00
Dennis-Wijngaarden d748af1afb Rotwing guidance bank fix (#3271)
* max bank in deg

* Fix allocation switching problem

* [rot_wing_v3] Updated max bank in all airframes

* Update sw/airborne/modules/checks/preflight_checks.c

Co-authored-by: Gautier Hattenberger <gautier.hattenberger@enac.fr>

* use unit and alt_unit for conversions instead

* remove needless conversion

* Also fix normal INDI to fit the code

---------

Co-authored-by: Ewoud Smeur <e.j.j.smeur@tudelft.nl>
Co-authored-by: Christophe De Wagter <dewagter@gmail.com>
Co-authored-by: Gautier Hattenberger <gautier.hattenberger@enac.fr>
2024-05-23 21:55:24 +02:00
Dennis-Wijngaarden b87ab09536 [RotWing] FREE_STATE mode and pusher rate limiter (#3268)
* [rotwing_state] Added free configuration to be requested for rotwing drone

* [rot_wing_eff_sched] Added rate limiter on pusher prop

* [rot_wing_state] fix nav_max_goto_speed setting from state machine

* [rotwing_state] move rotwing free state processor to NAV if statement

* [rot_wing_state] Updated free state in rotwing_state

* [fp] Added free state standby waypoint to rotwing EHVB fp

* [rotwing_state] Removed non used speed_to_target variable
2024-05-23 13:37:16 +02:00
Christophe De Wagter b29b94d811 [module] parachute (#3273) 2024-05-23 11:15:42 +02:00
Christophe De Wagter 8a9e1411de Fix for new stabilization (#3274) 2024-05-22 15:01:35 +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
Dennis-Wijngaarden 893a65f17e [guidance_indi_hybrid] Added airspeed filtering with separate filter values for guidance (#3260)
* [guidance_indi_hybrid] Added secondary airspeed filtering in guidance

* Rename for clarity: guidance_indi hybrid can have a separate filter

---------

Co-authored-by: Christophe De Wagter <dewagter@gmail.com>
2024-04-17 17:06:53 +02:00
Tomaso Maria Luigi De Ponti 50694ba217 Use Commands instead of actuator_pprz (#3265)
* Add actuator type attribute to command

* Implemented new command based counting of the atuators in the oneloop controller

* Added group attribute to dtd file. Initialize as empty subgroup count of commands. Avoid unnecessary array to list conversion.

* Generate list of names from defined commands

* Use the defined commands number and  name in NPS

* Update sw/tools/generators/gen_airframe.ml

Co-authored-by: Gautier Hattenberger <gautier.hattenberger@enac.fr>

* Added logic to remove redundant code

---------

Co-authored-by: Gautier Hattenberger <gautier.hattenberger@enac.fr>
2024-04-16 23:06:23 +02:00
Christophe De Wagter d0f97e143d Rotwing show both CAN bus messages... (#3263) 2024-04-11 12:03:02 +02:00
Fabien-B 15d8a63956 Bidirectionnal DShot for H7 (#3253) 2024-04-10 00:44:47 +02:00
Tomaso Maria Luigi De Ponti 6fb37f8b00 [modules] EKF2 fixed initialization warning (#3262) 2024-04-09 13:36:33 +02:00