Commit Graph

16148 Commits

Author SHA1 Message Date
Ewoud Smeur d1c8f1c4d2 Imu sample rate (#3035)
* correct sample rate at 500hz periodic

* don't set INDI rate gain to zero
2023-06-08 22:25:28 +02:00
Ewoud Smeur a1a8704b30 Only do one INDI init call (#3034) 2023-05-24 15:49:20 +02:00
Gautier Hattenberger e7781e7b87 [dshot] fix dshot telemetry and provide pprz message support (#3033)
* [dshot] fix dshot telemetry and provide pprz message support

each dshot driver supports it's own telemetry uart
pprz message ESC can be sent over telemetry or flight recorder
configuration is done by giving the uart number

* [dshot] send RPM Abi message from DSHOT driver
2023-05-17 10:05:21 +02:00
Ewoud Smeur 5dacd6a666 Fix indi wu initializer (#3032)
* update WU init and always return iter

* add another test case for WLS
2023-05-16 14:43:17 +02:00
Freek van Tienen b9564ddffc [nps] Fix NPS compile warnings 2023-05-12 13:38:03 +02:00
Gautier Hattenberger 10bdec0463 [ocaml] add old and new GCS srtm path to default directory list (#3030) 2023-05-09 09:09:46 +02:00
guidoAI 1a985e5623 Changes to fix video streams not working in Ubuntu 22.04 (#3029) 2023-05-03 21:06:35 +02:00
Freek van Tienen e5fa273f88 [board] Fix I2C 400kHz for H7 common board (#3027) 2023-05-01 14:32:09 +02:00
Hector Garcia de Marina cd03b42651 Merge pull request #3026 from paparazzi/fix-state_speed
[state] fix speed convert functions
2023-04-27 07:11:32 +02:00
Gautier Hattenberger 66363bf806 [state] fix speed convert functions 2023-04-27 01:08:55 +02:00
Gautier Hattenberger 5f4a4603f0 [nav] fix survey hybrid (#3025)
* [nav] fix survey hybrid

- call init function
- set to valid at the end of setup so it works with mission correctly

* [nav] fix unit, indexes and doc for survey hybrid
2023-04-24 14:51:52 +02:00
Fabien-B 2a98d9fb69 Add PyBullet FDM for nps. (#3024) 2023-04-16 22:10:53 +02:00
Gautier Hattenberger 53987d5a71 Merge pull request #3021 from paparazzi/survey_hybrid-integration
Survey hybrid
2023-04-14 22:14:15 +02:00
Gautier Hattenberger e5af06a001 [ocaml] parse XML file with ExtXml version (#3023)
it provides better messages in case of XML or DTD errors
2023-04-09 17:37:17 +02:00
Gautier Hattenberger eb83c03928 [modules] indicate that digital cam modules are providing 'digital_cam' 2023-04-04 20:07:12 +02:00
Gautier Hattenberger dbed41784e [nav] implement survey for hybrids
Survey based on the OSAM algo for rotorcraft. Instead of going from one
sweep line to the next with a line, a circle aligns the aircraft with
the next line.
Circles radius at the start of lines can be either automatic (sweep distance),
fixed or direct line (equivalent to original rotorcraft).

The code itself is reorganized to use a global structure instead of many
variables.
2023-04-04 20:00:40 +02:00
Gautier Hattenberger 07a43ca4c4 fix typo 2023-03-30 15:00:58 +02:00
Gautier Hattenberger 36fd2901f5 make GUIDANCE_H_MAX_BANK visible in header 2023-03-30 15:00:58 +02:00
Gautier Hattenberger 1a03da28ca [nav] implement nav_circle for hybrids
The flight speed is adapted to the circle radius according to the
maximum bank angle allowed.
The oval implemented in base rotorcraft nav is also compatible with the
hybrid primitives registered in nav.
2023-03-30 15:00:58 +02:00
Freek van Tienen d27ef116f4 [uavcan] Add support for the EQUIPMENT_ACTUATOR_ARRAYCOMMAND message (#3016) 2023-03-29 22:57:56 +02:00
Fabien-B aaa5368ea5 Allow to use extra_dl in simulation. 2023-03-29 14:42:18 +02:00
Dennis-Wijngaarden 366d451e7f [fix] guidance_indi_hybrid, bounding the vertical speed was inverted (#3019) 2023-03-29 09:36:47 +02:00
Gautier Hattenberger b855de512e Merge pull request #3015 from paparazzi/fix-chibios
[chibios] Small fixes
2023-03-28 09:42:43 +02:00
Gautier Hattenberger eba266a6b6 [fix] apply correctly horizontal and vertical setpoints (#3018)
horizontal and vertical can have setpoints of different types (pos, speed or accel) independently
2023-03-27 23:44:00 +02:00
Freek van Tienen f0a8ed3050 [mcu_periph] Disable USB serial debug endpoint when not in use 2023-03-24 11:10:11 +01:00
Freek van Tienen 5b7fd90c77 [modules] Fix SD logger errors 2023-03-24 11:10:06 +01:00
Freek van Tienen 009469f18a [tools] Update PX4 uploader to wait for autopilot 2023-03-24 10:57:44 +01:00
Freek van Tienen ba71081d9e [chibios] Disable GDB symbols by default 2023-03-24 10:56:49 +01:00
Fabien-B de8fb8b8fa [supervision] Add programs status. (#3014)
* [supervision] Add programs status.

* [supervision] turn program line red on error.
2023-03-23 21:18:38 +01:00
Gautier Hattenberger 767333a02c [fix] update generated rotorcraft autopilot for new guidance (#3012) 2023-03-17 21:44:20 +01:00
Gautier Hattenberger 1d7b6dff57 [nav] takeoff and land module (#3010)
* [nav] takeoff and land module

Functions for takeoff and landing (fixedwing and rotorcraft), can be
called from the flight plan or from the mission module.
Two flight plan examples are provided.
Various options are possible, see module description and header file.

* [sim] ins_sim module is only doing INS, not AHRS

add AHRS requirement for sim target, if needed provided by ahrs_sim
2023-03-16 21:45:21 +01:00
Gautier Hattenberger 02df6da2d7 Update README for new Semaphore badge 2023-03-13 22:19:23 +01:00
Ewoud Smeur 9c6c45ee9f Nederdrone trim and INDI startup PD control (#2960) 2023-03-13 21:44:09 +01:00
Gautier Hattenberger 4ba0f96458 Setup semaphore 2.0 (#3011) 2023-03-13 09:27:34 +01:00
Gautier Hattenberger 0844f72932 [guidance] fix missing dependency for guidance_hybrid 2023-03-09 08:53:54 +01:00
Gautier Hattenberger 03238c1639 [fix] fix dep solver to recursively check suggested module (#3009)
* [fix] fix dep solver to recursively check suggested module

the issue was that suggested modules can depend on modules that should
be found from the suggested list

also enforce that an autopilot should have at least an ins or a ahrs

* move dep to targets
2023-03-08 12:42:31 +01:00
Gautier Hattenberger 62646d68de Modules recommends and suggests (#3005)
Add two new items in module's dependency:
- recommends: a recommended module tells the sorting algo that if the module is found, it should be sorted accordingly. It is useful for optional dependencies, like shell or mission in some modules
- suggests: if a functionality is not provided by the user, a module can suggest a list of modules that can provide them. It is a convenient way to have "default" modules.

As a result the former autoload node is removed and replaced by suggested modules.
2023-03-07 17:14:15 +01:00
Freek van Tienen 7a3440fc3f [boards] Fix cube orange default GPS uart (#3007) 2023-03-07 14:14:36 +01:00
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