Commit Graph

7425 Commits

Author SHA1 Message Date
NoahWe d610ef1bef [conf] Fix rotating with V3H (#3338) 2024-07-22 17:57:45 +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
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
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
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
Christophe De Wagter dc46222082 Flightplan icons hybrid (#3318)
* Hybrid ICONS

* Fix Herelink

* Activate icons
2024-06-18 11:15:09 +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
Christophe De Wagter 7fd72c8fbf PFC struct to field (#3315)
* start converting structs to readable

* Comvert all airframes
2024-06-16 14:50:15 +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 97ca88a017 Herelink command (#3303)
* Herelink command

* Cleanup control_panels
2024-06-15 22:07:44 +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
NoahWe a988756bde PFC fix for Rotwing3 (#3310)
Co-authored-by: Christophe De Wagter <dewagter@gmail.com>
2024-06-14 16:29:53 +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
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
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
Fabien-B 41af453cd5 [airframe] Fix airframe.dtd, following #3276. (#3281)
Co-authored-by: Fabien-B <Fabien-B@github.com>
2024-05-29 14:30:21 +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
Christophe De Wagter 98d4ec734e fix target case (#3279) 2024-05-24 21:30:53 +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
Ewoud Smeur 35e90b5d2d add nav_hybrid module to rotorcraft disco (#3275) 2024-05-23 10:06:14 +02:00
Christophe De Wagter 8a9e1411de Fix for new stabilization (#3274) 2024-05-22 15:01:35 +02:00
Dennis-Wijngaarden 48048bdba2 [rot_wing] Configured correct YAW_DISURBANCE_LIMIT in airframes (#3270)
* [rot_Wing] Configured correct YAW_DISURBANCE_LIMIT in airframes

* [v3g] Updated elevator endpoints
2024-05-22 10:44:21 +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
Christophe De Wagter f0607badaf Update cv_opencvdemo.xml (#3272) 2024-05-21 15:21:12 +02:00
Dennis-Wijngaarden e9b81bb885 [rot_wing_v3d] Updated magneto calibration (#3266) 2024-04-24 16:43:59 +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
Dennis-Wijngaarden 16068cc905 [rot_wing nps] add more aerodynamic drag in rotwing simulation (#3259)
* [rot_wing nps] add more aerodynamic drag in rotwing simulation

* Triple the CD * surface

---------

Co-authored-by: Christophe De Wagter <dewagter@gmail.com>
2024-04-16 18:03:10 +02:00
Fabien-B 15d8a63956 Bidirectionnal DShot for H7 (#3253) 2024-04-10 00:44:47 +02:00
Tomaso Maria Luigi De Ponti afa93784ed [modules] Rotating wing better ADC sensor integration (#3251)
* Make adc sensor mappable from the airframe. Better interface for adc in the rotwing state.

* Added parameters to v3b airframe

* Addressed the comments

* Removed external variable
2024-04-09 11:25:44 +02:00
Christophe De Wagter 25ec86275f TUD course update 2024 (#3258)
* removed the -o flag because it caussed natnet errors

* smaller obstacle zone for first week testing

* Updated distance measurement script

* 3x3 convolution addition (#97)

Added a convolution algorithm for a general 3x3 kernel

---------

Co-authored-by: robinferede <robinferede@tudelft.nl>
Co-authored-by: yamacbirol <y.birol@student.tudelft.nl>
Co-authored-by: dvanwolffelaar <50547974+pigparty6@users.noreply.github.com>
2024-04-04 11:00:14 +02:00
Ewoud Smeur 69f2248a32 INDI restructuring (#3256) 2024-04-04 10:55:41 +02:00
Tomaso Maria Luigi De Ponti 6667d5091d Slight Changes to INS EXT POSE and INS EKF2 (#3233) 2024-04-03 15:02:25 +02:00