Commit Graph

418 Commits

Author SHA1 Message Date
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 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 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
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
Freek van Tienen 528f5d5b10 [boards] Add support for the CubePilot - Cube Orange+ (#3017)
* [imu] Add Invensense V3 driver

* [imu] Add samplerate to raw ABI message

* [boards] Add support for the CubePilot - Cube Orange+
2023-09-20 11:16:01 +02:00
guidoAI a40e0fa4e1 Pull request with all the code for 6 DOF optical flow control, the ba… (#3028)
* Pull request with all the code for 6 DOF optical flow control, the basis of a Nature and Nature Machine Intelligence paper.

* Camera ID was already added.

* Remove a duplicate airframe file.

* Cleanup

* Simulator does not work with opticflow

* Incorporated comments review

* fix provides

---------

Co-authored-by: Christophe De Wagter <dewagter@gmail.com>
2023-09-13 15:46:23 +02:00
Freek van Tienen d27ef116f4 [uavcan] Add support for the EQUIPMENT_ACTUATOR_ARRAYCOMMAND message (#3016) 2023-03-29 22:57:56 +02:00
Gautier Hattenberger 7f620c0449 [board] basic support of matek h743 slim (#3001)
only flashing with DFU for now
default orientation for MPU6000 imu
fix small bugs
2023-03-06 18:03:00 +01:00
Gautier Hattenberger 28ef30ed80 Nav rotorcraft rework (#2964)
This is a complete rework of the navigation for rotorcraft with the key features:

- all nav functions and interface in float
- nav function are registered (decoupling between nav API and implementation of standard pattern)
- submodes to specify if setpoint is a position (legacy), speed or accel (better integration of algorithms like GVF)
- guidance (H and V) is reorganized with default function to implement (run_pos, run_speed, run_accel) 
- guidance control (the old default PID) is separated from the guidance logic

---------

Co-authored-by: Freek van Tienen <freek.v.tienen@gmail.com>
2023-03-02 22:15:23 +01:00
Ewoud Smeur bf4adb45a2 INDI hybrid updates (#2954)
- Two interpolation segments during transition
- Quadratic lift effectiveness with airspeed
- Velocity setpoint input possible from module via ABI message
2022-12-02 21:58:48 +01:00
Ewoud Smeur 351d90f86e File logger rename (#2956)
* file logger namechange to logger file

* airframe file updates with namechange
2022-11-29 21:58:02 +01:00
Freek van Tienen 6fa9cdfa53 [imu] Add heater and temperature options (#2929) 2022-10-27 14:00:13 +02:00
Freek van Tienen 46055fc8f8 [chibios] Fix i2c error handling (#2898)
* [chibios] Fix i2c hanging full autopilot for 50ms and better error handling
* [airspeed] Fix ms45xx faulty readings
* [board] Fix cube orange test build
* [actuators] Remove actuators_ppm which is not implemented
* [ppm] Fix warnings for lisa mx and lisa m
* [tests] Fix test build and std.h include for TRUE/FALSE
* [chibios] Update to latest paparazzi version
2022-10-07 15:27:43 +02:00
Freek van Tienen 3e473e72a6 [imu] Enable IMU integration and fix small mistakes 2022-09-21 23:05:11 +02:00
Freek van Tienen 4b28d6d592 [nps] Set the default sensor parameters 2022-09-20 14:37:58 +02:00
Freek van Tienen 1307cff084 [modules] Remove imu_mag_current module 2022-09-20 14:37:58 +02:00
Freek van Tienen 7c7cfbc395 [imu] Multi IMU support 2022-09-20 14:37:51 +02:00
Freek van Tienen ad4654b77f [imu] Add Invensense V2 driver 2022-09-20 14:33:37 +02:00
Freek van Tienen 85d6056d37 [boards] Remove swing 2022-05-18 18:58:40 +02:00
Freek van Tienen 2a0dba4025 [chibios] Add STM32H7 (#2859)
* [chibios] Add STM32H7

* [chibios] Update to latest version

* [chibios] Cleanup board configuration

* [chibios] Cleanup peripheral drivers

* [chibios] Fix bootloader interrupt vector done inside ChibiOS

* [sdlogger] Enable RTC by default

* [chibios] Fix DMA buffers SPI/I2C

* [formatting] Fix formatting/styling of files

* [chibios] Change PWM configuration (small fixes i2c and makefile)

* [chibios] Generic board files

* [boards] Fix apogee board

* [conf] Cleanup airframes and remove Navstik board
2022-05-18 17:38:58 +02:00
Freek van Tienen a0e00fd753 [ins] EKF2 update to latest version (#2829)
* [conf] Add splash4 airframe
* [ins] Update EKF2
* [ekf2] Add support for optitrack and update gps datalink module
* [modules] Fix gps datalink module heading calculations
* [ground] Remove old natnet2ivy
2022-04-12 11:08:20 +02:00
Gautier Hattenberger e436d78c84 [autopilot] merge AP and FBW in normal operation (#2828)
There is no longer a separated FBW in normal operation for fixedwing,
only a single AP task/thread.
The code for main_ap is now factorized for all firmwares.
Dual MCU support (separated AP and FBW) is still possible, based on the
rotorcraft implementation and intermcu pprzlink messages. Relevant code
is also factorized and available in all firmwares.
The recovery mode (in case of hard fault) is still available for
fixedwing with ChibiOS implementation.
Only intermcu_uart is supported at the moment. Other options (spi/can)
might be added back in the future if really used.

Some other evolution are made:
- in the radio_control and actuators modules, now integrated to AP and
using ABI messages
- the message parsing on datalink event (defined in module) that is now
properly filtering the messages based on their class and allowing to
have multiple callbacks for the same message
- cleaning the part of code that were using the old intermcu fixedwing
interface
2022-03-10 14:21:04 +01:00
Gautier Hattenberger 1e14fd5bde [modules] clean some remaining traces of subsystems 2021-11-13 00:48:14 +01:00
Gautier Hattenberger 23d9957955 Merge pull request #2721 from paparazzi/autopilot_reorg
Autopilot reorg
2021-08-27 10:23:32 +02:00
Gautier Hattenberger db64a3819c [nps] clean sensors params files (#2769)
- try to set the sensor frequency automatically at the correct value
- make more parameters configurable
- set higher bounds for all sensors to avoid saturation
- remove old unused files
- update airframe files
2021-08-24 15:27:10 +02:00
Gautier Hattenberger 11ac07d385 [conf] update airframe files
minimal changes, mostly to move the 'modules' node inside firmware
section
2021-07-27 13:34:23 +02:00
Fabien-B bfee649fe9 Fix example conf. 2021-07-05 10:44:57 +02:00
Ewoud Smeur e44277d1f9 Filter rates indi (#2718)
* Changed to use the filter interface

* Cleaning defines from airframe files

* update module doc

* [conf] Fix Nederdrone back wing numbering

* Filter frequency in Hz

* Fix nameing with prefix

Co-authored-by: Freek van Tienen <freek.v.tienen@gmail.com>
2021-05-12 22:41:32 +02:00
Gautier Hattenberger fdd82745cb restore deleted module and clean other config files (#2697) 2021-04-18 16:06:12 +02:00
Gautier Hattenberger addc8d051c [cleaning] removing some old stuff (#2696)
* [cleaning] removing some old stuff

- infrared sensors and related ahrs
- mkk and asctec actuators
- old carto modules
- fix bebop actuators for NPS
- clean airframe and conf

* [conf] add back asctec_v2 actuators that is still being used
2021-04-16 17:56:16 +02:00
Gautier Hattenberger 4c1785d00b [cleaning] drop support of LPC21 boards and related conf (#2695) 2021-04-14 14:05:17 +02:00
Christophe De Wagter 951019e34b Cleanup TUD Conf and Airframes (#2690)
* Cleanup: dual identical conf: mk=delfly, renames, removed doubles

* [airframes] remove doubles, move modules to firmware section

* [airframes] modules -> firmware

* more fixes
2021-04-09 12:59:44 +02:00
Gautier Hattenberger 20900c46fb [fix] remove all ref to UPDATE_ON_AGL for sonar (#2683)
This is no longer used since #1910

Close #2671
2021-04-09 09:11:13 +02:00
Fabien-B 61261aa19c [examples] migrate modules from deprecated "modules" node to "firmware". (#2678) 2021-03-25 09:54:02 +01:00
Tom van Dijk 1cc01d4653 Eachine Trashcan support (#2540)
Co-authored-by: Open UAS <>
Co-authored-by: Tom van Dijk <tomvand@users.noreply.github.com>
2020-07-03 15:52:32 +02:00
Ewoud Smeur ce4f35bbe4 Bebop2 flight delft (#2527)
* Flying a bebop2 outside in Delft

* tagged flying bebop2 airframe
2020-05-01 23:37:42 +02:00
Chris de Jong b16271b814 Added tuned energy airframe for Parrot Disco
New
2020-02-03 15:35:24 +01:00
Freek van Tienen 009b121cfd [ins] Add EKF2 from the PX4 ECL library (#2402)
* [abi] Add timestamp to AGL and BARO_ABS

* [make] Add support for c++0x for all architectures

* [math] Add air density calculation

* [gps] Add horizontal and vertical position accuracy

* [boards] PX4FMU change default baudrate and add SBUS

* [ins] Add EKF2

* [tests] Add Bebop2 with EKF2

* [nps] Fix jsbsim simulator initialisation and GPS accuracy
2019-04-12 23:12:31 +02:00
Freek van Tienen 22be04faf9 [tests] Fix unneeded warnings for test build (#2403) 2019-03-15 11:34:50 -07:00
Kirk Scheper 6d36c581cb Restructure bebop camera settings and ISP (#2364) 2019-01-28 15:44:22 +01:00
Christophe De Wagter 00f5745df6 TUDelft airframes clean-up: a first sweep (#2346)
* cleanup TUD airframes part1

* Remove firmware sections
2018-10-06 21:46:33 +02:00
guidoAI 54745b4807 Derotate flow front camera (#2315)
* Predicting flow

* setting the camera intrinsic paramters in the videoconfig struct (and potentially in the airframe file)

* Code style fixed

* implemented all suggested changes

* Removed remaining error - checked both front and bottom cam

* Last changes for pull reques, plus removed warning local shadowing success variable
2018-09-04 10:02:12 +02:00
guidoAI cccd86f93a Solving problems flying with optical flow (#2297)
* some changes, but still not working

* For now, never send vertical velocity estimations from optical flow

* changed vertical velocity limits

* Also set the variance of the vertical measurement high.

* Negative value for variance should disable the vertical velocity update altogether
2018-07-26 10:55:10 +02:00
Bart Remes 6374655d46 Quadshot (#2300)
* first master quadshot build with ppm on uart1 not flow

* first autonomus forward flight
2018-07-24 16:58:45 +02:00
Ewoud Smeur 3a58c4be72 Removed spektrum signs from quadshot airframe 2018-07-24 14:14:28 +02:00
Tom van Dijk c870e27ac5 [gazebo] Cyberzoo model (#2230)
* First steps towards detailed cyberzoo model. Got transparency working.

* Fix ambient lighting of cyberzoo_solid

* Import improved model

* Fix optitrack cameras

* Fix lighting colors

* Fix optitrack camera color

* Add orange pole and traffic mat objects

* Fix orange_pole2 smoothing errors

* Fix cyberzoo origin

* Add first draft of cyberzoo surroundings

* Add updated cyberzoo surroundings and outside walls

* Minor fixes to surroundings

* Create cyberzoo world

To-do: set origin coordinates and rotate environment

* Set world coordinates and rotation, fix naming conflict

* Add cyberzoo world with orange poles for orange_avoider

* Remove old cyberzoo model, fix dependencies

* Add daylight in windows on outer walls

* Separate cyberzoo model into layers

Makes it easier to hide parts of the model in the GUI.

* Add cyberzoo surroundings to main model in separate layers

* Restore cyberzoo floor collision box

* Add cyberzoo props

* Minor tweaks to models

* Compress textures

Reduced texture dimensions. Size of model folder is now approx.
20 MB instead of 60+ MB.

* Remove origin marker from worlds

* Move CyberZoo models to submodule

- All new models are moved to the tudelft/gazebo_models repository, which is included as a submodule in sw/ext/tudelft_gazebo_models/
- Changed vehicle and world SDF loading to use URI's, these can be used with multiple search paths
- Added gzclient_launcher.sh script that sets up environment variables before launching gzclient. This prevents errors if the user forgets to add the paths to .bashrc. Added as a tool to control_panel_example.xml
2018-05-30 15:32:10 +02:00
Tom van Dijk cfabb51eed [gazebo] Add actuator dynamics and bebop model (#2219)
* Add gazebo model for Parrot Bebop 1

* Add first-order high pass filter

* First implementation of actuator dynamics and spinup torque

Flies ok with PID control

Does not fly ok with INDI, the required G1 R is 0.159 instead of
0.0022 (estimated by flying in adaptive mode). The other parameters
are close to those specified in the airframe file.

* FIX incorrect yaw behavior

Fixed two bugs:
1. gazebo_actuators.torques was set to NPS_ACTUATOR_THRUSTS
2. spinup torque direction is now also controlled by motor mixing

* Clean up debug code and file logger

* Clean up gazebo example airframes

* Minor cleanup

* FIX warnings about missing initializer in fdm_gazebo

* Update documentation

* Remove modules section, move to firmware

* Minor fixes to fdm_gazebo and high_pass_filter

* Move actuator dynamics to included airframe files

Should prevent duplicate actuator defines spread accross all
airframe files.

* Fix FILTER_ROLL_RATE in bebop2_indi airframe

Moved to firmware targets so it will be disabled in gazebo.
Is this actually working in jsbsim??

* Update documentation

* Fix newlines

* Minor fixes in nps_fdm_gazebo.cpp

* Re-enable filter roll rate

Caution: causes oscillations around roll axis in gazebo

* Disable roll filter and cleanup
2018-01-30 16:39:18 +01:00
Titus b6efd958eb ARDrone vision fix (#2215)
* Test fix

* added fix to other ardrone airframes using vision

* removed tabs
2018-01-16 14:50:08 +01:00
Michal Podhradsky 2c35ebeb80 Update HACL-C snapshot as a proper submodule (#2199) 2017-12-04 09:22:33 +01:00
Michal Podhradsky 640c5aa8c5 Update libopencm3 and add Random Number Generator (RNG) (#2192)
* Compilation fixes (CAN bus)

* Update libopencm3

* Compilation fixes

* Added Random Number Generator for stm32 autopilots

* Compilation fixes
2017-11-28 15:01:36 -08:00