Commit Graph

16110 Commits

Author SHA1 Message Date
Gautier Hattenberger 04ad9f6097 Fix small errors (#3006)
* [gvf] fix mode name

* [stab] fix typo and factorize files in stab modules
2023-03-07 14:13:49 +01: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 b152b927b3 Fix nav rework (#3004)
* fix guidance_v in flight plan and remove old settings

* nav radius, descend and climb

* [stab] make a attitute set quat function

* fix function name

* fix parsing of variables in proc, don't use = in fp

* fix nav heading in modules

* fix some more errors

* fix var name
2023-03-06 10:45:44 +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
Fabien-B e42330c58d Supervision improvements (#3002)
* [supervision] disable build and clean buttons during build/clean.

* [supervision] Move AC color at the left.

* [supervision] Add shortcuts and rename "flash" to "upload".

* [supervision] Fix telemetry select base path.

* [supervision] return key terminate program.

* [supervision] Add option to keep "build" programs after they finished.
2023-02-28 18:49:42 +01:00
OpenUAS 4ef8b85690 PPM input, GPS input and Telem etc. all working now (#3000) 2023-02-28 18:38:32 +01:00
Ewoud Smeur b73086a6e1 fix state update equation (#3003) 2023-02-25 14:02:59 +01:00
Gautier Hattenberger 6169709da6 [plotter] implementing a realtime plotter in python (#2997)
* [plotter] implementing a realtime plotter in python

based on pyqtgraph
it should implement most of the functionalities of the legacy ocaml plotter
it is replacing the previous implementation in python

* Format code.
* Add requirements
* refactor plotter

---------

Co-authored-by: Fabien-B <fabien.bonneval@gmail.com>
2023-02-24 00:20:05 +01:00
Fabien-B 3badcfa367 [supervision] Fix session save programs. (#2999)
Arguments like "-ac a b" was previously parsed as "-ac b".
2023-02-20 22:43:44 +01:00
Fabien-B 2bb87eb026 [Log] flush log buffer on USB storage. (#2996) 2023-02-16 15:16:29 +01:00
Fabien-B 63983bd6f6 Log message, and forward it to link. (#2995)
* Log message, and forward it to link.

* Update pprzlink.
2023-02-16 14:39:20 +01:00
Fabien-B 5e2c9e488a Usb add serial (#2966)
* [USB Serial] Cleanup serial USB configuration.
* [USB Serial] Add 2nd serial.
* [USB Serial] Add udev symlinks.
* [ChibiOS Mass storage] Change USB stop sequence. (Seems to works better this way)
* [USB Serial] Fix thread blocked when port is not opened.
* [USB Serial] Adapt number of CDC to the number of endpoints.
      STM32F7: 2 serial
      STM32F4: 1 serial
* Mark telemetry_transparent_usb as deprecated.
2023-02-15 22:04:53 +01:00
Christophe De Wagter 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
Gautier Hattenberger 86fd9005cb remove old code panic button 2023-02-14 10:07:45 +01:00
Gautier Hattenberger 8dafb7840a [ocaml] fix warnings in ubuntu 22.04 2023-02-14 10:07:45 +01:00
Gautier Hattenberger cf150db155 [ocaml] move the GCS-only related code out of xpprz lib
Most of the pprz.xlib is used by the legacy GCS only, using in
particular the deprecated canvans.
This PR is isolating the relevant part to the GCS folder, so it will be
easier in the future to avoid the compilation of this part by default.

Conditional compilation of the old GCS: test if glade is installed
to build supervision, logplotter and the (legacy) GCS.
2023-02-14 10:07:45 +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
Fabien-B 4aedbf1590 Update targets only. (#2983) 2023-02-11 17:55:41 +01:00
Gautier Hattenberger 5cad3f1390 Merge pull request #2986 from paparazzi/ubuntu22_fixes
Ubuntu22 fixes
2023-02-11 17:52:57 +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
OpenUAS 5b4ac81c68 Fix Pixracer upload using PX4 bootloader (#2985)
Fix upload failing if using PX4 bootloader on a Pixracer R14/15 Flightcontroller to upload the PPRZ AP main firmware. Tested with Fix Pixracer R14 and one R15
2023-02-09 10:51:42 +01:00
Christophe De Wagter 97e12c6c14 [conf] Fix natnet3 flags (#2984) 2023-02-08 11:20:31 +01:00
Gautier Hattenberger 27b4571f5e [supervision] rename clean target to avoid removing files 2023-02-08 08:51:13 +01:00
Fabien-B de258cf6bd [supervision] Do not crash if qtwebkit is not installed. (#2982)
* [supervision] Do not crash if qtwebkit is not installed.

* Fix test

* fix return type.

* Better conf error propagation.
2023-02-07 17:47:22 +01:00
Fabien-B 8833bb4fc5 [supervision] Adds documentation tab. (#2972)
* [supervision] Adds documentation tab.

* [generator] add a target option to dump modules by target with load type

* [supervision] doc: handle modules type.

* [supervision] modules doc: add filter.

* [supervision] Use internet doc by default.

* [supervision] Move the header out of the configuration tab.

* [supervision] Add target label.

* [supervision] Gracefully handle Ctrl-C.

* [supervision] Add new session to combobox.

* Update sw/supervision/python/doc_panel.py

---------

Co-authored-by: Gautier Hattenberger <gautier.hattenberger@enac.fr>
2023-02-07 15:51:55 +01:00
Gautier Hattenberger 902f9adf65 Update requirements.txt 2023-02-07 15:38:15 +01:00
Fabien-B 27edd6b089 [doc] Force sphinx version. (#2981) 2023-02-07 15:09:24 +01:00
Fabien-B 12d6f205fd [doc] add readthedocs configuration file. (#2980) 2023-02-07 14:23:22 +01:00
Fabien-B d3561570e9 [doc] deduce parser path from conf.py absolute path. (#2979) 2023-02-07 09:46:30 +01:00
Fabien-B 152953af13 Update README.md. (#2978)
Update build badge,
Add link to sphinx doc,
Update example AC.
2023-02-06 21:34:14 +01:00
Fabien-B 9b18744322 [doc] Add parser for modules doc generation. (#2973) 2023-02-06 11:16:10 +01:00
Gautier Hattenberger 336ecddfc6 remove file from conf that doesn't exist 2023-02-04 22:22:04 +01:00
Gautier Hattenberger 6aac9db885 [doxygen] add v6.2 to the doxygen doc generation 2023-02-03 15:54:28 +01:00
Gautier Hattenberger fa678bed53 mark v6.3 unstable v6.3_unstable 2023-02-03 15:48:40 +01:00
Gautier Hattenberger b06828ed23 stable release v6.2 v6.2.0_stable 2023-02-03 15:36:13 +01:00
Freek van Tienen fbb8951976 [conf] Small fixes TU Delft (#2965)
* [conf] Small fixes TU Delft

* Apply suggestions from code review

---------

Co-authored-by: Ewoud Smeur <e.j.j.smeur@tudelft.nl>
Co-authored-by: Gautier Hattenberger <gautier.hattenberger@enac.fr>
2023-02-03 11:25:10 +01:00
OpenUAS f59a809411 Update bmp_swd_nopwr_flash.scr (#2976)
Fixes #2974 Tested with tested with BMP Firmware v1.9.0 Hardware v2.3  OK and to test NOPWR in airframe defined:
      <configure name="FLASH_MODE"   value="SWD_NOPWR"/>
      <configure name="BMP_PORT" value="/dev/ttyACM0" />
2023-02-03 09:20:41 +01:00
OpenUAS 26d64c19ed Update bmp_swd_flash.scr (#2975)
To fix #2974  tested with:
tested with BMP Firmware v1.6.1 Hardware v1.0  OK
tested with BMP Firmware v1.8.2 Hardware v1.0  OK
tested with BMP Firmware v1.6.1 Hardware v2.0  OK
tested with BMP Firmware v1.8.2 Hardware v2.3  OK
tested with BMP Firmware v1.9.0 Hardware v2.3  OK
2023-02-03 09:18:56 +01:00
Fabien-B 59a89ae954 [Libopencm3] Fix #2969. (#2970)
* [Libopencm3] Fix #2969.

* [libopencm3] Replace timer_reset by rcc_periph_reset_pulse.
2023-01-27 12:35:36 +01:00
Fabien-B 47c75e0525 [doc] Add a Debug section. (#2968) 2023-01-26 22:23:18 +01:00
Gautier Hattenberger c1f47742ab [fix] missing ; after #2922 2023-01-25 23:35:00 +01:00
Fabien-B f60c68c130 Fix gcc prefix and update libopencm3. (#2922)
* Fix gcc prefix and update libopencm3.

See:
https://github.com/libopencm3/libopencm3/commit/7be50a5e75ed2d163d38a6759347c5e778ac02ab
https://github.com/libopencm3/libopencm3/commit/034dbf20ff8c54dcbee5238390b37a0d35180f44

* update luftboot
* Update linker scripts.
* Update deprecated function.
* Update rcc_clock_scale structure.
* Add compatibility defines.
2023-01-25 14:11:53 +01:00
Fabien-B c08a472eaa Update hacl-c. (#2967) 2023-01-25 12:06:46 +01:00
Fabien-B d2b8cdd7a0 Clean unwanted file. (#2962) 2023-01-09 17:36:52 +01:00
Fabien-B b9fb7f01fe [supervision] Add missing files. (#2961) 2023-01-09 13:43:36 +01:00
Fabien-B a5a5f0dc31 [supervision] Make python supervision the default one. (#2943) 2022-12-17 22:16:42 +01:00