Commit Graph

15885 Commits

Author SHA1 Message Date
Gautier Hattenberger 1e14fd5bde [modules] clean some remaining traces of subsystems 2021-11-13 00:48:14 +01:00
Gautier Hattenberger dbf6396a58 [modules] move intermcu to modules
both fixedwing and rotorcraft
2021-11-13 00:48:14 +01:00
Gautier Hattenberger d146f61525 [modules] move navigation from subsystems to modules 2021-11-13 00:48:14 +01:00
Gautier Hattenberger eef2792d39 [modules] move datalink from subsystems to modules 2021-11-13 00:48:14 +01:00
Gautier Hattenberger 304f957a0b [modules] move actuators from subsystems to modules 2021-11-13 00:48:14 +01:00
Gautier Hattenberger f7e16fce9b [modules] move INS from subsystems to modules 2021-11-13 00:48:14 +01:00
Gautier Hattenberger 246de70255 [modules] move AHRS from subsystems to modules 2021-11-13 00:48:14 +01:00
Gautier Hattenberger 7408724495 [modules] move IMU from subsystems to modules 2021-11-13 00:48:14 +01:00
Gautier Hattenberger a4632c33ca [modules] move gps from subsystems to modules 2021-11-13 00:48:14 +01:00
Gautier Hattenberger f638a40b83 [modules] move radio control to modules 2021-11-13 00:48:08 +01:00
Gautier Hattenberger 445383e0fc [modules] move baro header to modules 2021-11-13 00:46:45 +01:00
Gautier Hattenberger 6694dd4e72 [modules] move ABI interface to modules 2021-11-13 00:46:56 +01:00
Gautier Hattenberger 491aefb45c [modules] move commands from subsystems to modules 2021-11-13 00:46:45 +01:00
Gautier Hattenberger 721aeb6acf [modules] move settings from subsystems to modules
also move rc_settings
2021-11-13 00:46:45 +01:00
Gautier Hattenberger b7d18eef9b [modules] move electrical subsystem to module 2021-11-13 00:46:45 +01:00
Gautier Hattenberger 5b0b732c1f [fix] add missing control event call (#2795)
event function from control group where not called
2021-11-10 11:10:12 +01:00
Gautier Hattenberger eceffb8bd5 [ocaml] apply a second topological sort to modules (#2793)
* [ocaml] apply a second topological sort to modules

After the first one, all functionalities are checked, but corresponding
modules are not ordered with the other one.
This second sorting algorithm (simpler) is just checking that final
selection of modules is correctly ordered and check for possible cyclic
dependencies not yet found.
ahrs_common dep node is fixed to avoid such a situation.

* [modules] trying to fix cyclic dependency in rotorcraft gnc modules

the main issue is that the rotorcraft navigation is not explicitely
included by the user but automagically included, which is not a good
idea, same goes for guidance.

* [modules] fix dep

system_core is already provided by firmware module and @no_settings
was making a cyclic dep for fbw
2021-11-09 16:04:04 +01:00
Hector Garcia de Marina 360b6a82f9 Setteable MIN_COUSE_SPEED in ahrs_float_dcm (#2794)
Co-authored-by: jesusBV20 <jesbauti@ucm.es>
Co-authored-by: Hector Garcia de Marina <hgdemarina@gmail.com>
2021-11-06 20:41:35 +01:00
Gautier Hattenberger ce706bcd04 Server json stream (#2792)
* [server] stream telemetry messages as JSON string
can be used by external plotter like PlotJuggler (default port)
always enabled by default

* update pprzlink

Co-authored-by: Fabien-B <fabien.bonneval@gmail.com>
2021-11-02 18:51:07 +01:00
Hector Garcia de Marina abaf60b29d Merge pull request #2791 from paparazzi/fix-ocaml_latlong_and_gcs_warning
[fix] correct ocaml wgs84_distance function
2021-10-27 15:24:10 +02:00
Gautier Hattenberger cae5024cb2 [fix] correct ocaml wgs84_distance function
also remove the warning in the GCS for "approaching" which is not
producing anything since 2016
2021-10-27 14:19:46 +02:00
Prawien Kanhai 165dd5c1d3 - Fixed svd function with min (#2790) 2021-10-20 23:05:57 +02:00
Gautier Hattenberger 83a74e412f Drop old compat (#2786)
* [ocaml] drop of compat for Ocaml < 4.05

this is linked to Ubuntu 16.04 that have reached end of life

* [pprzlink] update pprzlink for removed old compat
2021-10-08 13:01:28 +02:00
Matteo Barbera da5b527795 RM3100 i2c dependency (#2783)
* Added i2c dependency to mag_rm3100.xml

* Added task in module node
2021-09-23 23:34:28 +02:00
Ewoud Smeur 5dd484ec8d ADD tilt twist control (twist around z) (#2782)
This commit implements tilt twist control for vehicles that rotate slow
in the z axis compared to the other axes (like tailsitters).

The attitude error is decomposed in a tilt and a twist part, and the
tilt error is compensated assuming that the rotation around z is zero
(very slow in comparison).
2021-09-22 23:26:11 +02:00
Fabien-B 17422e468b Add PprzGCS tool. (#2780) 2021-09-17 10:24:17 +02:00
Pietro Campolucci 69c55a0663 EKF2 Optical Flow Interface (#2779)
Co-authored-by: Dennis van Wijngaarden <wijngaarden.dennis@gmail.com>
2021-09-15 22:26:28 +02:00
amtcvx 3172453e74 [LinkCombiner] rename function. (#2778) 2021-09-10 13:25:10 +02:00
Fabien-B 77155579bc Better link status (#2777)
* [server] Make "time_since_last_msg" of TELEMETRY_STATUS link specific.

* [GCS] Handle link specific "time_since_last_msg".

* Fix for old OCaml compatibility.

* Fix minimum last_msg time.

* Update link_id when no_id is replaced.
2021-09-10 11:03:15 +02:00
winkelst d4919419de Fix path to gosu in entrypoint.sh (#2776)
daba128 changed the Dockerfile to install gosu from the official Ubuntu repositories but did not change the path in entrypoint.sh

gosu ist now located at /usr/sbin/gosu and no longer at /usr/local/bin/gosu
2021-09-01 17:39:46 +02:00
Fabien-B 45360907b3 Update pprzlink. (#2775) 2021-09-01 15:54:31 +02:00
Gautier Hattenberger e77e5a5745 [ins] add support for gps course as heading (for indoor use) (#2763)
Co-authored-by: xp31 <xp31@free.fr>
2021-08-31 13:21:22 +02:00
Freek van Tienen dcceffe1b4 Pixhawk ADC 5 and ADC 6 (#2762)
* [actuators] Add randomness to UAVCan telemetry

* [conf] Update Nederdrone

* [boards] Add ADC5 and ADC6 for the pixhawk 4
2021-08-30 20:55:03 +02:00
Gautier Hattenberger 1d3eee4267 [fix] repair some broken conf from CI night build errors (#2773) 2021-08-30 20:52:55 +02:00
Fabien-B e8ca332b6b [libs] Fix python settings lib. (#2774) 2021-08-30 20:52:36 +02:00
Gautier Hattenberger 73249228dc [module] update module creator for tasks and dependencies (#2771) 2021-08-30 00:28:18 +02:00
Ewoud Smeur c992e5bb5a CHG correct mag ID for cyclone and nederdrone (#2772) 2021-08-27 18:24:39 +02:00
Ewoud Smeur 2efa66bbb6 Fix: prevent lock of as parameter (#2770) 2021-08-27 14:40:53 +02:00
Gautier Hattenberger 23d9957955 Merge pull request #2721 from paparazzi/autopilot_reorg
Autopilot reorg
2021-08-27 10:23:32 +02:00
Gautier Hattenberger 7b8b87c3c5 [boards] add i2c to lisa M 2.x boards 2021-08-26 22:28:11 +02:00
Hector Garcia de Marina dcc14164d8 Merge pull request #2768 from enacuavlab/fix-ins_invariant_reset
[ins_invariant] reset state position and speed properly
2021-08-26 15:33:04 +02:00
OpenUAS 32eb688f2c Fix MPU6000 spikes in certain chipbatches (#2759)
* Fix MPU6000 spikes in certain chipbatches

* Adjusted according to mergerequest codereview remarks

Co-authored-by: Open UAS <noreply@openuas.org>
2021-08-24 16:43:13 +02:00
Fabien-B ee9a1855ef [replay] Use generated settings. (#2767) 2021-08-24 16:39:44 +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 affd433ea0 [ins_invariant] reset state position and speed properly
It prevents the filter to jump to the new position, which can create a
wrong estimation of the accelerometer scale bias.
Aligner is restarted if needed.

Also fix float constants and other small details.
2021-08-24 10:51:58 +02:00
Gautier Hattenberger f02dc8abb9 [fix] correct extraction of settings (empty if not found) (#2766)
close #2765
2021-08-22 14:20:45 +02:00
Ewoud Smeur 3217e4167e FIX simulation mag saturation 2021-08-20 10:53:06 +02:00
Gautier Hattenberger 3250aa8dcd [fix] correct ADC buffer offset for ChibiOS (#2761)
- with ChibiOS 20.3 the half buffer starting position is computed by
  hand and was wrong in this case: it should be the product of the half
  buffer size by the number of channels
- some other minor fixes:
  - using && instead of & in boolean comparison
  - suppress a warning (comparison always true/false due to limited data range)
    when the number of channels is zero (no ADC in use)
2021-08-17 17:24:52 +02:00
Gautier Hattenberger cf49ef3303 [ocaml] make a clean functional version of topological sort algorithm 2021-08-17 12:50:03 +02:00
Fabien-B 8ffd3dfcaf Replay settings (#2754)
* [replay] remove legacy code.

* [replay] Generate settings file.
2021-08-16 18:18:05 +02:00