Commit Graph

16 Commits

Author SHA1 Message Date
Gautier Hattenberger 4ae40567ed [hitl] rewrite support for hardware in the loop simulation (#3146)
- old way (based on ins_vectornav) is not supported anymore
- directly send sensor data and receive commands with a dedicated link
- examples with USB link for better results
- update sphinx documentation
- compilation in a single build
2023-10-31 14:48:55 +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
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
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 a117c9a374 [modules] enable test for telemetry modules 2021-11-29 11:24:55 +01:00
Gautier Hattenberger eef2792d39 [modules] move datalink from subsystems to modules 2021-11-13 00:48:14 +01:00
Gautier Hattenberger d02ec5ba98 [modules] update modules XML for proper dependcies and tasks 2021-07-27 13:34:23 +02:00
Gautier Hattenberger 5b8a9ce371 [rover] small corrections and user files for rover operation 2019-07-01 12:16:11 +02:00
Michal Podhradsky 74f8b74624 First shot towards a separate HITL target (#2062)
* First shot towards a separate HITL target

* Changes in HITL - still doesn't compile

* Added makefile selection

* HITL target works for fixedwing and rotorcraft - still needs cleanup and TLC

* Removed info messages from compilation process
2017-06-13 13:39:10 -07:00
Gautier Hattenberger 4316871b63 Telemetry modules (#1835)
* [modules] convert telemetry subsystems to modules
* [modules] add init and event functions to modules
* [datalink] remove old datalink lib export
* [datalink] drop audio_telemetry code
* [modules] generate modules functions grouped into tasks
2016-10-07 14:35:07 +02:00
Felix Ruess e5e1615f95 [conf] telemetry_transparent: fix targets 2016-04-29 11:14:28 +02:00
Gautier Hattenberger ac4d2368df [ocaml] treat target list as a boolean expression
this way, inverted selectiono should be handled correctly in all cases
2016-04-26 23:30:19 +02:00
Felix Ruess 5a15023832 Revert "[modules] fix telemetry_transparent for non ap targets"
This reverts commit 3afcce0737
until module target exclusion is fixed.

target="!sim" doesn't add it to the ap target anymore...
2016-04-20 15:12:59 +02:00
Felix Ruess 3afcce0737 [modules] fix telemetry_transparent for non ap targets
add telemetry to all targets except simulation, so e.g. also usable for demo_ahrs_actuators, etc.
2016-04-20 14:52:21 +02:00
Freek van Tienen 9cfdd83a2b [telemetry] Fix transparant pprzlink include 2016-04-19 14:38:42 +02:00
Gautier Hattenberger d76887c062 [build] add firmware option to modules' makefile section
- allow to make a single module with specific firmware support
- example with telemetry_transparent module
2016-02-10 19:06:58 +01:00