Commit Graph

16362 Commits

Author SHA1 Message Date
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
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
Gautier Hattenberger f41c32a4bf mark v7.0 unstable
since it is a major version, backward compatibility is not guaranteed

WARNING: this tag have been moved to integrate the v6.4 stable version
v7.0_unstable
2024-05-21 16:06:30 +02:00
Gautier Hattenberger 232f532dc3 stable release v6.4 v6.4.0_stable 2024-05-21 15:45:39 +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
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
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
Gautier Hattenberger 5b13467c71 [board] fix crazyfly board files (#3255)
- use correct main file with chibios
- fix pin definitions
2024-03-26 10:11:58 +01:00
Ewoud Smeur 3bedf9576d Use altitude waypoints for EKF2 2024-03-25 11:20:36 +01:00
Ewoud Smeur 757c6372f0 fix omega discontinuous (#3250)
* fix omega discontinuous

* readable code, add comment
2024-03-14 13:23:25 +01:00
Till Blaha 12da43ec1b Fix natnet2ivy rotation order (#3231) 2024-03-01 14:50:54 +01:00
Fabien-B ae5f47a518 Add vl53l5cx driver (#3240)
Based on St ULD
2024-02-29 10:46:01 +01:00
Dennis van Wijngaarden edff4bc3b9 [airframes] Updated calibrations of rotating wing drones 2024-02-27 09:26:41 +01:00
Dennis-Wijngaarden f44444c918 Rot wing updates (#3238)
* [airframes] rot_wing airframe updates

* Updated small rot_wing drones

* Updated rot_wing_v3f calibrations
2024-02-13 13:33:23 +01: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 19952d8e04 [fix] guidance sp was not correct in speed mode (#3236)
After #3197, the functions guidance_h_set_xxx are reseting the state so
it creates inconsistent behavior when abusing the 'set_pos' to update
the gcs display.
2024-02-07 10:20:27 +01:00
Gautier Hattenberger bbcb166d37 [nav] remove nav_manual mode (#3234)
This mode is not really used and not even recommended. It is also not
implemented in all firmwares. If a direct call to stabilization command
is needed, it should be done with a specific function but not from a
builtin instruction from the flight plan.

It was discussed in #3208, but not applyied because of nav_heli_spinup.
A new h_mode 'NONE' allows to disable guidance and stabilization while in
NAV mode, which allows to set directly the commands.
2024-02-05 09:40:09 +01:00
Gautier Hattenberger fe35af7382 [nps] fix inconsistent sensor scaling in simulation (#3230) 2024-01-29 16:19:05 +01:00
Fabien-B 41998a12b3 [doc] Update pprzcenter and GCS presentation. (#3229)
* [doc] Update pprzcenter and GCS presentation.
Simplify install instructions.

* [doc] Windows install + some fixes
2024-01-26 09:01:13 +01:00
Gautier Hattenberger 1b345804b4 [generator] add support for matrix and struct in airframe (#3228)
* [generator] add support for matrix and struct in airframe

update ENAC airframe and code for indi G1 matrix and IMU calib

* update calibration tool output
2024-01-09 10:46:47 +01:00
Gautier Hattenberger 175e3e018c [doc] fix version number in doc 2023-12-22 12:00:40 +01:00
Christophe De Wagter 45884b3eea Fix all compile warnings confs (on 20.04) (#3227)
* JP aircraft removed from ENAC

* Silent compile warnings GVF

* silent warning: periodic freq must be dividable by telemetry freq

* NPS_COMMANDS_NB

* gzip -f since compiling make small targets in a row can have the same file name if compiling is too fast.
2023-12-22 10:36:40 +01:00
Christophe De Wagter 78c3ff3401 [flightplans] tudelft flightplans (#3220)
* 4 different files

* Landing based on height
2023-12-22 10:35:49 +01:00