Commit Graph

16233 Commits

Author SHA1 Message Date
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 Wagter 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
Freek van Tienen ff4bb2d107 [ahrs] Fix AHRS float DCM memory warnings (#3123) 2023-10-02 19:32:01 +02:00
Gautier Hattenberger de6a1ad38d [fix] led_hw.h fix dummy interface for testing (#3112) 2023-10-02 12:09:54 +02:00
Christophe De Wagter 46ea0a56be WLS update NaN (#3120)
* wls_alloc update
2023-10-02 11:31:55 +02:00
Gautier Hattenberger 01ac335eb7 [wls] make WLS lib, add support for guidance_indi_hybrid (#3115)
* [wls] make WLS lib, add support for guidance_indi_hybrid

* [wls] update test program

* [wls] restore static matrix size for WLS

* [wls] update test prog

* [indi] ABI thrust message to 3D vector (#3116)

* [indi] ABI thrust message to 3D vector

Common WLS for innerloop and outerloop

Co-authored-by: Christophe De Wagter <dewagter@gmail.com>

* Bound defaults to min in case of NaN

---------

Co-authored-by: Christophe De Wagter <dewagter@gmail.com>

* [guidance_indi] lift effectiveness and set stabilization limits in WEAK (#3117)

* do not allow code to run with insufficient matrix sizes

* Prefer not to roll when able.

* [wls] only check size if WLS is used

---------

Co-authored-by: Christophe De Wagter <dewagter@gmail.com>
Co-authored-by: Ewoud Smeur <e.j.j.smeur@tudelft.nl>
2023-10-01 23:15:36 +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
Ewoud Smeur 92f467f8cc Bound function also bounds NaN (#3118)
* Bound function also bounds nan

* Update comment

Co-authored-by: Christophe De Wagter <dewagter@gmail.com>

* Bound defaults to min in case of NaN

---------

Co-authored-by: Christophe De Wagter <dewagter@gmail.com>
2023-09-30 13:04:53 +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
Gautier Hattenberger 00970157fc Features for the ground segment (#3110)
* [server] expand FP includes to have a correct replay

* [log] tools to extract a basic CSV from log file

This is specific tools used for IMAV2023, but it is still a good example
how to make a custom log extractor

* [pprzcenter] sort the session in alphabetical order
2023-09-27 14:32:15 +02:00
Gautier Hattenberger 6948aef012 [dc] add pprzlink digital cam module and factorize modules (#3111)
- new digital_cam_pprzlink module
- factorize module with digital_cam_common
- rename digital_cam to digital_cam_gpio
- add test nodes to modules
2023-09-27 14:31:14 +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
Gautier Hattenberger ffcbfb6c2f [nav] small improvements to rotorcaft nav (#3108)
- macro for oval count
- set in_flight to true during takeoff with module
- specify the height of hybrid survey in a parameter
2023-09-26 22:11:43 +02:00
Gautier Hattenberger 76a9415aae [mag] fix typo and rotations (#3109)
- fix typo in ist8310 driver
- add rotation option to lis3mdl driver (for old style calibration)
2023-09-26 17:55:48 +02:00
Gautier Hattenberger dd7b07ab60 [mission] improvements to mission module (#3107)
- register mission status message for telemetry, so it can be used on
  extra link with companion computer
- add altitude proximity option to check alt on waypoints, not only
  2D position
- add documentation to XML file
2023-09-26 17:54:49 +02:00
Gautier Hattenberger acc6833af7 [ins] register new message and add ins_reset for EKF2 (#3106) 2023-09-26 17:52:46 +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
Gautier Hattenberger f4f0cf2f3b [gps] add a timeout on gps fix lost (#3105) 2023-09-25 21:52:32 +02:00
Gautier Hattenberger 4812be6096 [fix] adapt object_tracking module to new nav interface (#3103) 2023-09-25 21:45:48 +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
Freek van Tienen b65e1da017 [periph] Invensense2 add timebase correction for PLL (#3099) 2023-09-25 11:46:25 +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 Wagter 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 Wagter 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
Florian Sansou 536a9647a3 Solve problem with python version for pybullet (#3090)
Co-authored-by: Florian Sansou <florian.sansou@enac.fr>
2023-09-21 14:39:40 +02:00
Freek van Tienen b11dcf7f79 [imu] Enable the sending of specific IMU sensors (#3084) 2023-09-21 11:24:32 +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
Freek van Tienen e39d4d80b8 [imu] Change cube orange+ IMU2 range 2023-09-20 18:13:49 +02:00
Freek van Tienen 7ae5f91a2a [modules] Fix flight recorder and MAVLink frequency to TELEMETRY_FREQUENCY and configuration (#3085) 2023-09-20 18:08:59 +02:00
Christophe De Wagter 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