Commit Graph
100 Commits
Author SHA1 Message Date
Christophe De Wagter f0607badaf Update cv_opencvdemo.xml (#3272) 2024-05-21 15:21:12 +02:00
Christophe De Wagter d0f97e143d Rotwing show both CAN bus messages... (#3263) 2024-04-11 12:03:02 +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
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
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
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
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
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
Christophe De Wagter 250250d04c Set wing rotation via rot_wing_state (#3177)
* Rotating wing controller moved to rotating wing state

extra airframe

* Update _IDX and rebase

* Requested changes from PR

* Code style

* xml fix

* Update sw/airborne/modules/ctrl/eff_scheduling_rot_wing.c
2023-12-13 14:23:52 +01:00
Christophe De Wagter a8f1c063a6 Rotwing State Update: no hardcoded defines in flightplan (#3201) 2023-12-13 13:22:07 +01:00
Christophe De Wagter 0b8cc6b5f2 Control camera's over MAVLink (#3178)
Allow to configure the MAVLINK autopilot type to drive e.g. DJI camera's but do not change the default behaviour
2023-12-08 10:49:02 +01:00
Christophe De Wagter 2083b5898f Fix continuous actuator (#3196)
* fix extra bug for #3190

* fix extra extra bug for #3190

* fix for fix of fix

* final fix?

* Update comment: specify natural log = ln
2023-12-07 20:19:08 +01:00
Christophe De Wagter dd49c23691 [fix] typo in master 2023-11-26 14:36:58 +01:00
Christophe De Wagter 44a3abb977 warnings (#3185) 2023-11-24 11:26:40 +01:00
Christophe De Wagter 80ad17cdfa [xml] final quadplane xml files rotwing (#3176)
* [xml] final quadplane xml files rotwing

* Since no other airframes use crossfire AUX4 we can modify the original instead of making a copy
2023-11-15 22:02:09 +01:00
Christophe De Wagter 9634e5615e nav_transition_automation (#3172)
* nav_transition_automation

* new filtering update

* fix compile

* Update conf/airframes/tudelft/rot_wing_25kg.xml

* Update conf/airframes/tudelft/rot_wing_25kg.xml

* filtering shorter and cleaner notation

* Typo

* docs

* freq from module

* Update sw/airborne/modules/rot_wing_drone/rot_wing_automation.c
2023-11-15 09:20:18 +01:00
Christophe De Wagter 82d1f94239 fix INT filtering: @freek this is nice but is this used? (#3174) 2023-11-14 11:29:19 +01:00
0ec27e76cf Rotating wing state machine (#3169)
* Rotating wing state machine
* state now drives the wing rotation
* module does not run stand-alone
* Update conf/modules/rotwing_state.xml

Co-authored-by: Dennis van Wijngaarden <D.C.vanWijngaarden@tudelft.nl>
Co-authored-by: Gautier Hattenberger <gautier.hattenberger@enac.fr>
2023-11-11 15:51:41 +01:00
Christophe De Wagter 5c04a35a30 [quadplane] simulator, telemetry and visualizers ---> PR 3173 (#3173) 2023-11-11 10:26:48 +01:00
Christophe De Wagter 8d40909aad [modules] wing-rotation controller with servo (#3143)
* [modules] wing-rotation controller with servo
2023-11-09 15:10:27 +01:00
Christophe De Wagter dc042ac992 CommandsFromRC overwritten in INDI (#3162)
* AutoCommandsFromRC overwritten in INDI

fix?

git status

No hidden define but a clear RADIO_CONTROL_THRUST_X

* Let's put it in stabilization and read RC directly after all...
2023-11-07 10:16:50 +01:00
Christophe De Wagter 140e359b21 Fix nav hybrid speed (#3165)
* fix incomplete rename

* add nav_hybrid to test conf for next time
2023-11-06 14:52:19 +01:00
Christophe De Wagter 7320b652aa Do not kill quadplanes in-flight. (#3163) 2023-11-06 12:14:57 +01:00
Christophe De Wagter 92afdb8a3b Debugging guidance (#3157) 2023-11-06 10:56:02 +01:00
Christophe De Wagter 54d2a2b681 hybrid quadplanes and tailsitters explicit (#3161) 2023-11-06 10:49:20 +01:00
Christophe De Wagter c7511f54fe Updated ctrl_eff_sched_rot_wing (#3158) 2023-11-04 20:14:13 +01:00
Christophe De Wagter adc25c4db6 Ground-detect-fix (#3156) 2023-11-03 20:19:52 +01:00
Christophe De Wagter 1229e0489a [modules] EKF Airspeed and Wind (#3078)
* [modules] EKF Airspeed and Wind

* Test EKF_AW

* Also compile for non-rot-wing

* fix RPM in EKF_AW

* rpm fix

* Remove double debug messages

* follow master spacing

* Fix code style

* rotwing_controller renamed
2023-10-19 16:34:48 +02:00
Christophe De Wagter 515cb9167f [airframe] Airframe update, missing default telemetry & fix reading angle 2023-10-16 15:54:57 +02:00
Christophe De Wagter 2b89019f1d [electrical]: extra ADC (#3134) 2023-10-16 12:29:27 +02:00
Christophe De Wagter 673beb5e6e [fix] Optical-Flow: configures not configuring, possible FAST9 segfault, several parameters not active in OF (#3140) 2023-10-11 11:35:42 +02:00
Christophe De Wagter 15120ea87d [cleanup] remove infrared sensor messages (#3137) 2023-10-09 09:13:00 +02:00
Christophe De WagterandguidoAI 4df13209e5 [opticalflow] bebop2 with dual optical flow (#3136)
* Squash on master
* fix bebeop2_flow
* Divergence is more noisy than previous time... added a low-pass filter, and allow for a higher threshold...
* fixed the sim, removed warnings, removed double airframe
* cleanup airframe, remove all warnings, allow placing camera parameters in sections
* PPRZLINK
* Silent warnings and compile errors
* reintegrated pprzlink
---------
Co-authored-by: guidoAI <guido.de.croon@gmail.com>
2023-10-09 08:35:07 +02:00
Christophe De Wagter cb97031d47 [airframes] RW25kg (#3133)
* [airframe] RW25kg
2023-10-09 08:08:32 +02:00
Christophe De Wagter 650509808d [fix] errors from last 10 PR (#3138) 2023-10-09 08:07:36 +02:00
Christophe De Wagter 5af84a4851 [ctrl] Morphing quad-plane control eff (#3124) 2023-10-06 14:06:04 +02:00
Christophe De Wagter 6983ecd5bb Notch filters (#3128) 2023-10-05 21:20:01 +02:00
Christophe De Wagter 889521b53e Negative airspeeds from negative differential pressures. (#3126)
* Negative airspeeds from negative differential pressures.
* Some protections against negative airspeeds
2023-10-05 20:46:27 +02:00
Christophe De WagterandFreek van Tienen 5b254269fc UAVCAN telemetry (#3129)
* UAVCAN telemetry

* [modules] Actuator feedback rewrite

---------

Co-authored-by: Freek van Tienen <freek.v.tienen@gmail.com>
2023-10-04 16:29:40 +02:00
Christophe De Wagter db4c67d64a [fix] cleanup make all conf airframes (#3127)
* cleanup all conf airframes

* docs update
2023-10-04 08:21:19 +02:00
Christophe De Wagter 4c848665d7 [jsbsim] Morphing quadplane models (#3125) 2023-10-03 12:51:54 +02:00
Christophe De Wagter 19875f6343 quadplane guidance (#3122)
* quadplane guidance
* Function doc and ifdef protect for normal guidance
2023-10-03 08:18:02 +02:00
Christophe De Wagter 8353c0ac36 quadplane stabilization (WLS-only) (#3121)
* quadplane stabilization (WLS-only)
* code style and unnecessary change
2023-10-02 22:54:50 +02:00
Christophe De Wagter 46ea0a56be WLS update NaN (#3120)
* wls_alloc update
2023-10-02 11:31:55 +02:00
Christophe De Wagter 59fac571a6 [tools] Python visualizer updates quadplane (#3119) 2023-10-01 20:43:14 +02:00
Christophe De Wagter 25ba13db70 [guidance_indi] lift effectiveness and set stabilization limits in WEAK (#3117)
* [guidance_indi] lift effectiveness of the wing and weak function to set stabilization limits

Weak function to set indi_stab_dumin

* WEAK instead of ABI
2023-09-30 13:16:24 +02:00
Christophe De Wagter ae1f8ed350 [indi] ABI thrust message to 3D vector (#3116)
* [indi] ABI thrust message to 3D vector

Common WLS for innerloop and outerloop

* fix both guidance

* cleanup

* cleanup
2023-09-28 09:39:58 +02:00
Christophe De Wagter b9bcd654a5 [ms45xx] Unscaled airspeed offset (#3114)
- same unit as raw in message, much simpler formula, no more problems when re-scaling.
2023-09-27 14:35:08 +02:00
Christophe De Wagter 63fd5837a8 [fix] rates and attitude use the same memory, so they could be used at the same time. (#3113)
[fix] stabilization FF
2023-09-27 14:30:40 +02:00
Christophe De Wagter 46b07c1e9a Feed forward guidance (#3068) 2023-09-27 08:53:49 +02:00
Christophe De Wagter b033c90132 [stabilization_indi] 2nd order rate filters and disabling pseudoinverse (#3104)
* [fix] MS45xx print MSG

* [stabilization_indi] second order rate filters and disabling pseudoinverse

* Apply suggestions from code review

* [fix] alternate in_flight detectors need motors_on.

* Default behaviour is WLS
2023-09-26 14:10:42 +02:00
Christophe De Wagter 3e27292244 move ground detection and in_flight detection to overridable functions (#3081) 2023-09-25 15:55:11 +02:00
Christophe De Wagter 0e50371dad [nav_rotorcraft_hybrid] tune deceleration (#3102)
Updated comments
2023-09-25 11:47:50 +02:00
Christophe De Wagter fda4ce96b1 [ms45xx] Harmonize airspeed, send pressure to air_data and downlink via telemetry (#3098)
* [fix] Airspeed data different from airspeed state
* Update conf/modules/airspeed_ms45xx_i2c.xml
* [ms45xx] do not set state_speed but send to <air_data>, downlink now via telemetry.xml (no more sync send)
2023-09-25 11:30:27 +02:00
Christophe De Wagter 7bb581ddae [INDI] Harmonize INDI Simple and Full downlink (#3101) 2023-09-25 11:28:24 +02:00
Christophe De Wagter be32e5421b [module] ground_detect_sensor module (#3077)
fix tests

ground_detect_sensor

cleanup unused

final update
2023-09-25 08:53:54 +02:00
Christophe De Wagter 57756b0493 [important fixes] make test all confs (#3100)
* silent warnings make test_tudelft

* [fix] bugfix

* info instead of warning

* fix optical flow landing

* module that can not stop does not need a stop function

* missing CAMERA

* dangerous define not standard

* simulator not working at 120Hz

* When no if-statement was triggered, this is information and not a warning.

* remove doubles

* point to inexisting telemetry

* firmware settings hardcoded to need 7 actuators

* Merge double file into 1

* untested airframe

* old sim can only handle 60Hz

* non-existing telemetry

* old sim not accepting 120Hz

* Unify info messages

* only 60Hz sim

* survey no height

* Missing camera

* WP further from HOME than MAX_DIST_FROM_HOME

* No more warning when there is no heading feedback by design, only an info message

* clean releases

* no warning on free floating heading in manual controlled AC

* no double firmware block: use dual target instead

* fixedwing: PERIODIC must be multiple of TELEMETRY_FREQ

* missing camera

* error with dual heading feedback

* missing kill switch

* remove prefix

* implicit declaration of function 'scb_reset_system'

* implicit declaration of function 'spektrum_try_bind'

* no dual firmware

* shadowed variable

* wrong header

* typo in fix

* TELEMETRY_PERIOD should be a multiple of PERIODIC

* Missing struct dshot actuators_dshot_values in sim during e7781e7b87

* matek sim does not compile

* bebop misses a camera

* silent compile warnings opticflow

* silent compile warnings

* guido fixed

* double prefix

* changed confs

* new way

* setup_actuators setting up 8 actuators needs 8 actuators

* [openuas] so many comments that the compiler failed.

* [tests] make test_tudelft has 4 coonfs

* [ins_flow] depends on gps (called in initialization of  NED)

* [doc] update

* update naming convention

* an octocopter needs 8 ports please

* pprz_can_init type change

* changed conf
2023-09-25 01:12:39 +02:00
Christophe De Wagter 9541c19bc1 [fix] extra for #3089 2023-09-23 15:27:25 +02:00
Christophe De Wagter 17d86418df [flight_plan] set circle radius from flightplan Fixes: #3069 2023-09-22 07:33:30 -07:00
Christophe De WagterandFreek van Tienen 5672d5fcd6 [rpm_actuators] actuators on a bus require indices (#3089)
* [rpm_actuators] actuators on a bus require indices

* Fix all other ABI RPM messages

* [tools] Add servo driver offset in gen_airframe

* [fix] test actuators_bebop

* [test] disco fix

---------

Co-authored-by: Freek van Tienen <freek.v.tienen@gmail.com>
2023-09-22 14:10:33 +02:00
Christophe De Wagter 640d94102d [geofence] When altitude of the geofence is not changed, this is not a warning but Info. When the WP are too low it remains a warning. (#3097) 2023-09-22 13:12:32 +02:00
Christophe De WagterandFreek van Tienen 609241add3 [airspeed] reduce number of airspeed raw messages: (#3094)
* [airspeed] reduce number of airspeed raw messages: ETS, MS45xx, SDP3x, UAVCAN -> RAW

* compile warning

* typo

* Update sw/airborne/modules/sensors/airspeed_ms45xx_i2c.h

* warning

* UAVCAN -> RAW

* ETS register airspeed

* AIRSPEED_RAW in telemetry

* cleanup SYNC-SEND but use register-telemetry instead

* [ardrone] Fix values variable

* [sim] Fix compile warnings discaring const

* [modules] Fix airspeed ETS

---------

Co-authored-by: Freek van Tienen <freek.v.tienen@gmail.com>
2023-09-22 12:04:13 +02:00
Christophe De Wagter ca1c1dbe8f [uavcan] ESC temperature and motor temperature (#3088)
* [uavcan] ESC temperature and motor temperature

All to Celcius

PPRZLINK

* silent compile warning
2023-09-21 19:51:56 +02:00
Christophe De Wagter f65b4ae84d [modules] system identification update (#3075)
* [modules] system identification updates: auto-doublet-sequence, new doublets, RC-triggered chirps, testing

extra sysid

rename generic

test compile

* defines in a section instead of gcc, cleanup docs
2023-09-21 15:33:25 +02:00
Christophe De Wagter f835b95ab0 [modules] Approach moving target fixes: parameters in airframe files (#3086)
* [module] moving_target allow storing specific gains in airframe files and put all settings in the struct and remove unused

* requested changes

* [airframes] update setting defines
2023-09-21 11:23:06 +02:00
Christophe De WagterandDries Borstlap a98fd3ab49 [fix] distance counter update (list of rigidbodies) + typo in install 22.04 (#3083)
* Bugfix 22

* FIX dist script (#87)

Verfied in zoo

---------

Co-authored-by: Dries Borstlap <dries.borstlap@gmail.com>
2023-09-20 13:31:45 +02:00
Christophe De Wagter b7fca88f8d [airframes] harmonize airframes, test all flightplans and test compile all nederdrones (#3082) 2023-09-20 13:31:02 +02:00
Christophe De Wagter 6aa81f3d7b [modules] airspeed UAVCAN (#3074)
* [modules] airspeed UAVCAN

ABI

* UAVCAN fix

* disable ABI send, define sensor rate
2023-09-18 17:04:32 +02:00
Christophe De Wagter d5f0875f42 [fix] hanging rm3100 (#3080) 2023-09-18 17:04:16 +02:00
Christophe De Wagter 3da0992fd5 [tools] Visualizer Rotating Wing (#3070)
* Visualizer Rotating Wing

Rotwing Monitor

* executable + tool

* removed STL

* Apply suggestions from code review
2023-09-18 15:00:42 +02:00
Christophe De Wagter 2a5c6d3eec [modules] Approach moving target filter (#3067) 2023-09-15 21:51:20 +02:00
Christophe De Wagter 1b5068eb5b [fix] missing line in #3062 2023-09-14 08:38:16 -07:00
Christophe De Wagter 18483578f0 [install] Small update (#2998) 2023-09-14 17:21:00 +02:00
Christophe De Wagter 6435c9fc43 [airframes] Airframe fixes (#3061) 2023-09-14 16:58:15 +02:00
Christophe De Wagter d967bf237b [python] Moving-base simulator (#3066)
Missing new heading field
2023-09-14 16:52:34 +02:00
Christophe De Wagter d3dfb2c5af [modules] Generic UART Sensor (#3060) 2023-09-14 14:10:36 +02:00
Christophe De WagterandFreek van Tienen ce15efd045 [python] fuel-cell endurance estimators and status fixes (#3059)
* [python] fuel-cell endurance estimators and status fixes

* controlpanel

* [python] Update fuel cell python

---------

Co-authored-by: Freek van Tienen <freek.v.tienen@gmail.com>
2023-09-14 14:06:39 +02:00
Christophe De Wagter 18963250b1 [modules] Follow me bugfixes (#3065) 2023-09-14 13:49:19 +02:00
Christophe De WagterandEwoud Smeur 10fedcc487 Eff_scheduling update (#3062)
* Eff_scheduling update

* add setting to differentiate front and back wing

* back wing pitch eff scaling

* actually implement back wing pitch eff

* fix

* fix mistake setting

* add some comments

---------

Co-authored-by: Ewoud Smeur <e.j.j.smeur@tudelft.nl>
2023-09-09 10:04:21 +01:00
Christophe De WagterandFabien-B a75f011050 [install] Ease installation with a GUI (#2991)
* [install] Ease installation with a GUI that automatically adapts to the OS

---------

Co-authored-by: Fabien-B <fabien.bonneval@gmal.com>
2023-02-15 14:32:01 +01:00
Christophe De Wagter da8a00f2e7 [INS_EXT_POSE] Kalman Filter based on external attitude measurements (#2993) 2023-02-15 09:57:06 +01:00
Christophe De Wagter cd546696ef [c++17] Increase the C++ standard to 2017 (#2992) 2023-02-13 13:31:54 +01:00
Christophe De Wagter 0e604606b2 [ubuntu18.04] Update documentation + legacy: solves #2987 (#2990)
Fix for newer ubuntus
2023-02-13 13:22:11 +01:00
Christophe De Wagter 970c31707a Silent compile warnings 2023-02-11 14:49:31 +01:00
Christophe De Wagter 3002893a01 [ubuntu22] Silent warnings and fix compile errors 2023-02-11 00:03:11 +01:00
Christophe De Wagter c614a5c6be Wider range of orange, so it avoids rather too much than too little to start with. 2023-02-11 00:03:11 +01:00
Christophe De Wagter 97e12c6c14 [conf] Fix natnet3 flags (#2984) 2023-02-08 11:20:31 +01:00
Christophe De Wagter 5d8a967665 [airframes] XML error, solves #2868 2022-05-03 09:10:13 +02:00
Christophe De Wagter 856710b386 [ariframe] sample bebop with 2x 30Hz optic flow: front and bottom cam: pyramid=0, img=240x240, fps=30Hz, corner=30 (#2868) 2022-04-22 23:21:47 +02:00
Christophe De Wagter 4d1c433c2b [sd_log] replay fails due to space since IVY uses spaces to separate fields. (#2736) 2021-06-03 11:38:49 +02:00
Christophe De Wagter e8174bf853 [tools] Bugfix in wind plotter tool 2021-06-03 11:33:35 +02:00