Commit Graph
16343 Commits
Author SHA1 Message Date
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-WijngaardenandChristophe De Wagter 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 PontiandGautier Hattenberger 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-WijngaardenandChristophe De Wagter 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
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
Gautier Hattenberger 6f3d9f68c2 mark v7.0 unstable
since it is a major version, backward compatibility is not guaranteed
v6.4_unstable
2023-12-21 15:29:25 +01:00
Gautier Hattenberger 5113a2105d stable release v6.3 v6.3.0_stable 2023-12-21 15:07:35 +01:00
Christophe De Wagter d5097190b8 New final corrections (#3224)
* Silent warning: accel_x shadows global declaration

* [disco] was a shared airframe file with ENAC
2023-12-20 17:39:43 +01:00
Gautier Hattenberger 378b9367de Enac conf cleaning (#3223)
move boards test files to separated folder
2023-12-20 09:33:15 +01:00
Christophe De WagterandDennis van Wijngaarden c1ab6d5418 [airframes] cleanup all tudelft airframes (#3221)
* bug fixes: simulation not selecting airframe, error when removing command, ADC not present in simulation

* remove command_trimmed not used warning (indeed not used) + add comments

* RAM3 overflow. Test of module done in RW3.

* coverity - Microjet - SIM

* clean BR

* CDW + tests

* make openuas/mavlab

* Remove Special ARDrones

* conf

* fixed typ in  eff_scheduler of rotwing_25kg

* Updated preflight checks for rotwing v3b actuators

* Updated tudelft conf

---------

Co-authored-by: Dennis van Wijngaarden <32736330+Dennis-Wijngaarden@users.noreply.github.com>
2023-12-19 21:30:49 +01:00
6614729042 Gvf for rotorcrafts (#3197)
* Core GVF changes
* Update GVF module conf file for rotorcrafts
* Integration of acceleration in guidance rotorcraft firmware
* Update command chain in guidance for ACCEL command integration
* [guidance] select guidance sp mode with enum instead of bitmask
* [guidance] reset ref if input type has changed

---------

Co-authored-by: Mael FEURGARD <mael.feurgard@laas.fr>
Co-authored-by: Gautier Hattenberger <gautier.hattenberger@enac.fr>
2023-12-19 15:04:30 +01:00
Gautier Hattenberger cf23b6bd27 [fix] nominal throttle was not initialised (#3222) 2023-12-19 14:34:29 +01:00
Freek van Tienen 3a956fa4aa [link] Pprzlink router (for herelink) (#2497) 2023-12-19 10:22:20 +01:00
Christophe De Wagter 20ef4162bc Remove command_pitch and command_roll and command_yaw (#3208)
... when not used
2023-12-19 09:58:39 +01:00
Christophe De Wagter 1ea818de9c [xml] Airframe updates after testflights (#3218) 2023-12-19 08:54:46 +01:00
Christophe De Wagter 94c79d42ca Cleanup airframes: make test_all_confs (#3217) 2023-12-18 21:51:01 +01:00
Christophe De WagterandFreek van Tienen 5fd7d56630 [pfc] Actuator motion pre-flight-check (#3202)
* PFC for actuator deflections

* [checks] Preflight check actuators

[checks] PFC actuators

merge-error

* Fixes for other airframes

* [pfc] Fix better debug information for actuator checks

* [modules] Fix warnings in test build

* Update conf/modules/imu_mpu9250_i2c.xml

* Update conf/modules/imu_mpu9250_spi.xml

* [uavcan] Fix possible misconfiguration and overflow

---------

Co-authored-by: Freek van Tienen <freek.v.tienen@gmail.com>
2023-12-18 15:47:40 +01:00
Fabien-B 751edc5170 Add flash mode: STM32CubeProgrammer (#3204) 2023-12-18 15:16:03 +01:00
Christophe De WagterandFreek van Tienen e0d188a4ab Electrical update: add VBoard for CUBE (#3213)
* [electrical] Add board voltage

[energy] Test energy message

[conf] Fix offset

Testing airspeed fixes

[arch] Fix i2c invalidate buffer when reading

* Revert debug

* Default when not defined

* Send VBoard in ROTORCRAFT_STATUS

---------

Co-authored-by: Freek van Tienen <freek.v.tienen@gmail.com>
2023-12-18 14:53:18 +01:00
Christophe De Wagter a07d674c19 Fix compile warnings in ``make test`` (#3216)
* Silent compile warnings in tests

* silent warnings in conf_test

* fix defines: if OLD -> warn and convert. If new, then use. If no old and no new, use default.
2023-12-18 12:34:58 +01:00
Christophe De Wagter f0d2cd3bdc [rotwing_state] Redundant reading of actuator feedback (#3215) 2023-12-18 11:15:44 +01:00
Christophe De WagterandFreek van Tienen ab18f2a6f3 [modules] Add offset and scaling to UAVCAN airspeed sensor (#3212)
Updated airspeed and servo endpoints

Airspeed debugging

Co-authored-by: Freek van Tienen <freek.v.tienen@gmail.com>
2023-12-18 10:22:50 +01:00
Christophe De Wagter b040314103 [imu] simulating 3 IMU's failed since an NPS IMU is added. Increase MAX_IMU to 4 (Solves #3135) (#3211) 2023-12-17 15:29:53 +01:00
Christophe De Wagter 4d8c690d8f Hide actuator driver number from code (#3206)
* Hide actuator internal driver number. Should never be used in code.

* Bugfix ... these should not be actutator_driver numbers but INDI output numbers
2023-12-15 08:25:23 +01:00