Commit Graph

11624 Commits

Author SHA1 Message Date
Fabien-B 614f6a1c6a [tracker] Identifier is now stored in the tracker, not the autopilot. (#2638) 2021-01-05 11:26:14 +01:00
Gautier Hattenberger f98a7ffdd4 Fix pwm index (#2633)
* [fix] offset of 1 for pwm channels from boardGen
* [fix] pwm index for nucleo144
2020-12-17 17:18:24 +01:00
Gautier Hattenberger 905a396246 [module] fix formation flight module and load from flight plan (#2630) 2020-12-11 17:03:05 +01:00
Tom van Dijk 172f8fe44b SPI SD Logger updates (#2605)
* modify spi sd logger for arbitrary downlink devices
* Update sglogger_download to pprzlink v2
* Fix logger_sd_spi_direct enum settings
* Change commented printf to DEBUG_PRINT
* settings_xml_parse.py: print errors and warnings to stderr

Co-authored-by: Tom van Dijk <tomvand@users.noreply.github.com>
2020-12-10 09:41:41 +01:00
Gautier Hattenberger fbf19a8fa1 [fix] log plotter not crashing with ubuntu 20.4 in debug mode
For unknown reason, log plotter is crashing with ubuntu 20.04, but seems
to work when the ocaml tools are compiled with debug flag. This should
not slow down execution but produce bigger code.
A proper fix or replacement should still be found to this issue.

see #2621
2020-12-03 09:16:41 +01:00
Gautier Hattenberger d9d3498ca2 [board] add nucleo144 dev board (#2624)
* [board] add nucleo144 dev board

it is a cheap dev board for testing, using the same processor than the
Tawaki autopilot and configured (almost) with the same pins (except for
the leds and some original servo and aux pins)

* remove SD card support for nucleo144

* clean cfg file
2020-12-02 09:57:37 +01:00
Gautier Hattenberger 688ac6aeca [fix] fix DSHOT driver and corresponding boards (#2625) 2020-12-02 08:47:51 +01:00
Gautier Hattenberger 4a41d1ebf6 [fix] wrong adc for VBAT (from boardGen script, fixed) 2020-11-25 15:19:09 +01:00
hendrixgr ce5d9680e6 Fix some errors, added two modules and improved OSD files (#2614) 2020-11-15 22:22:19 +01:00
Fabien-B 03a937c2d8 [server] Remove aircraft on AIRCRAFT_DIE message. (#2619) 2020-11-12 15:42:45 +01:00
Fabien-B bb7986f8ec [Server] modify ac_id field of CONFIG message for replay sessions (#2616)
* [server] Send real ID with CONFIG message instead of the original ID.

* Fix pprz_connect to accept non integer ac ids.
Makes "conf_by_id" docstring true.

* Makes suggested modifications.
2020-11-10 16:42:45 +01:00
jburns11 5887bf9746 Added extern statement for oval_status in firmwares/fixedwing/nav.h, so that this variable can be used in flight plans. If you try to compile with flight_plans/cube.xml, you can see the undefined error for this variable. (#2610) 2020-11-07 22:12:39 +01:00
jburns11 3ced6ffe2c Fixed paths in nav_cube.xml module file. Also fixed setter macros in nav_cube.h for offset values (#2609)
close  #2608
2020-11-03 23:51:58 +01:00
Gautier Hattenberger 9dd0a81f11 [fix] parse correctly settings with names (#2604)
the appear with a ~ in the settings list which should be removed before
testing for modules
2020-10-29 10:35:42 +01:00
Gautier Hattenberger 6f216e3e2f [nav] bio-inspired navigation module (#2597)
* [nav] bio-inspired navigation module

based on the preliminary work of an internship
integrate a bio-inspired navigation based on the behavior of fish

* update pprzlink ref

* add citation to module description
2020-10-22 10:54:59 +02:00
hendrixgr dbff73a054 Some minor improvements and probably the last ones. (#2602)
* removed "MAX7456_SLAVE_IDX" redefined warnings

 changed <define name="MAX7456_SPI_DEV" value="spi2" /> AND  <define name="MAX7456_SLAVE_IDX" value="SPI_SLAVE1" />
to  <configure name="MAX7456_SPI_DEV" value="spi2" /> AND  <configure name="MAX7456_SLAVE_IDX" value="SPI_SLAVE1" />
otherwise i was getting to many warnings about "MAX7456_SLAVE_IDX" redefined

* improved osd busy flag checks

Removed one static function and the code now checks both the OSD busy flag and the OSD Reset flag.

* Added THE OSD status register bits

Added two more definitions about the OSD busy flag and the OSD reset flag.

* Made the busy flag check a litle more strict.

Removed one static function and the code now checks both the OSD busy flag and the OSD Reset flag.

* Changed the busy flag check

Removed one static function and the code now checks both the OSD busy flag and the OSD Reset flag always after writing to the OSD
The code is also a bit cleaner.

* changed the OSD STATUS register bit positions 

I changed the OSD status register bit positions and names to better blend with the rest of the file.
They weren't used anywhere else except for the busy flag checks.

* STATUS register bit position names and style change

I changed the OSD status register bit positions and names to better blend with the rest of the file and to look better to the eye.
Those and the older ones are only used to check the busy flag.

* Made the BUSY flag check more robust.

The busy flag (actually the NVRAM Busy FLAG) and the Power On Reset flag now is checked every time the code writes something to NVRAM.

* Delete max7456.c
2020-10-15 22:42:13 +02:00
hendrixgr 8b56049d21 [board] add support of the MatekF405 board
includes baro bmp280 and updated max7456 osb

Squashed commit of the following:

commit 647ec61a9a16966b523bbf5f535ce85679785c9a
Author: Gautier Hattenberger <gautier.hattenberger@enac.fr>
Date:   Wed Oct 14 18:33:02 2020 +0200

    [conf] matek board module only configure internal sensors

    it makes it easier to reuse by other people

commit 9bfa96685d
Author: hendrixgr <hendrixgr@gmail.com>
Date:   Wed Oct 14 17:41:32 2020 +0300

    Easyglider with Matek F405 Wing autopilot airframes

    Added coordinated turning using both the ailerons and the rudder in Auto2

commit e736781ac3
Author: hendrixgr <hendrixgr@gmail.com>
Date:   Wed Oct 14 17:40:05 2020 +0300

    Easyglider with Matek F405 Wing autopilot airframes.

    I added the combi switch for coordinated turns using both the alilerons and the rudder in Auto2.

commit 8be348a1d8
Author: hendrixgr <hendrixgr@gmail.com>
Date:   Wed Oct 14 17:39:02 2020 +0300

    Easyglider with Matek F405 Wing autopilot

    I added the combi switch for coordinated turns using both the alilerons and the rudder in Auto2.

commit c0f7339686
Author: hendrixgr <hendrixgr@gmail.com>
Date:   Wed Oct 14 16:19:35 2020 +0300

    Easyglider and Matek wing autopilot module autoload file

    I just added some comments.

commit c4645705ad
Author: hendrixgr <hendrixgr@gmail.com>
Date:   Wed Oct 14 16:12:44 2020 +0300

    Easyglider with Matek wing autopilot and module autoload/

    This airframe file needs the paparazzi/conf/module/board_matek_wing.xml file in order to compile.

commit 2c273589d3
Author: hendrixgr <hendrixgr@gmail.com>
Date:   Wed Oct 14 16:04:50 2020 +0300

    board module for auto loading the required modules

    I don't usually change those airframe modules so i put them all in the board module file.

commit 58e1e551d1
Author: hendrixgr <hendrixgr@gmail.com>
Date:   Wed Oct 14 13:34:18 2020 +0300

    Removed the Baro definitions and cleaned up the file.

commit a1a47ec150
Author: hendrixgr <hendrixgr@gmail.com>
Date:   Wed Oct 14 13:30:02 2020 +0300

    Corrected the autopilot type and link to the manufacturer.

commit 870f2d2e94
Author: hendrixgr <hendrixgr@gmail.com>
Date:   Wed Oct 14 13:26:41 2020 +0300

    Removed the .xml file type from modules and changed the spoken aircraft name.

commit 700141cc9c
Author: hendrixgr <hendrixgr@gmail.com>
Date:   Wed Oct 14 08:05:31 2020 +0300

    Added support for the Matek F405 Wing autopilot OSD.

    Removed all warning and pragma messages and used PRINT_CONFIG_MSG() instead.
    Added support for rotorcrafts which i don't like....
    Matek osd will work now, TEXT artificial horizon is added, additional string format capabilities are given in the osd_put_s() and osd_sprintf() functions , able to inject special osd character code in to a string to be sent to the osd display
    and the code now checks the osd chip's busy flag instead of waiting and hoping that the OSD is not busy.

commit fe17c0250c
Author: hendrixgr <hendrixgr@gmail.com>
Date:   Wed Oct 14 07:30:11 2020 +0300

    Update osd_max7456.xml

    I removed the PAL or NTSC selection because i think this should be done in the airframe file.

commit a1966511f9
Author: hendrixgr <hendrixgr@gmail.com>
Date:   Tue Oct 13 22:38:21 2020 +0300

    Matek F405 Wing OSD support

    Added support for rotorcrafts which i don't like....
    Matek osd will work now, TEXT artificial horizon is added, additional string format capabilities are given in the osd_put_s() and osd_sprintf() functions , able to inject special osd character code in to a string to be sent to the osd display
    and the code now checks the osd chip's busy flag instead of waiting and hoping that the OSD is not busy.

commit 4edaecc3bf
Author: hendrixgr <hendrixgr@gmail.com>
Date:   Tue Oct 13 21:34:38 2020 +0300

    Matek OSD support

    I changed the HOME waypoint altitude to ground alt in order to avoid a compiler error about not finding  waypoints[WP_HOME].a
    Matek osd will work now, TEXT artificial horizon is added, additional string format capabilities are given in the osd_put_s() and osd_sprintf() functions , able to inject special osd character code in to a string to be sent to the osd display
    and the code now checks the osd chip's busy flag instead of waiting and hoping that the OSD is not busy.

commit 201d5e7793
Author: hendrixgr <hendrixgr@gmail.com>
Date:   Tue Oct 13 19:51:15 2020 +0300

    Delete Easystar_matek_f405_wing.xml

commit a6730fb148
Author: hendrixgr <hendrixgr@gmail.com>
Date:   Tue Oct 13 19:49:50 2020 +0300

    Easyglider airframe file corrected.

    It had the parachute radio channel in it which doesn't exist but strangely it was compiling fine here until i deleted the aircraft and created a new one.

commit a430091754
Author: hendrixgr <hendrixgr@gmail.com>
Date:   Tue Oct 13 18:26:31 2020 +0300

    Baro BMP280 files

    I can only test the BMP280 in I2C mode so SPI must wait...

commit 2bc25212ac
Author: hendrixgr <hendrixgr@gmail.com>
Date:   Tue Oct 13 18:22:47 2020 +0300

    Barometer BMP280 files

    This time only double precision is available.

commit 03dc09de77
Author: hendrixgr <hendrixgr@gmail.com>
Date:   Tue Oct 13 18:18:16 2020 +0300

    Matek F405 Wing board header file

    The Matek autopilot can measure up to 104A so logically 104 /4096 step of the ADC should give 25,3 ma for every adc count.
    Some measurements are needed.

commit c77c2365da
Author: hendrixgr <hendrixgr@gmail.com>
Date:   Tue Oct 13 18:04:49 2020 +0300

    Barometer BMP280 module XML file.

commit 2e3721bbad
Author: hendrixgr <hendrixgr@gmail.com>
Date:   Tue Oct 13 16:21:06 2020 +0300

    Improved OSD and Matek type OSD support.

    Matek osd will work now, TEXT artificial horizon is added, additional string format capabilities are given in the osd_put_s() and osd_sprintf() functions , able to inject special osd character code in to a string to be sent to the osd display
    and the code now checks the osd chip's busy flag instead of waiting and hoping that the OSD is not busy.

commit f67172d1a6
Author: hendrixgr <hendrixgr@gmail.com>
Date:   Tue Oct 13 15:48:54 2020 +0300

    Radio file for OPENTX radios and 8 channels PPM signal

commit 294341357e
Author: hendrixgr <hendrixgr@gmail.com>
Date:   Tue Oct 13 15:45:37 2020 +0300

    Telemetry file for use with the orangerx loaded with the OPENLRSNG firmware

    Telemetry file for use with the orangerx 433 Mhz receiver or any other OPENLRSNG capable receiver.
    The OPENLRSNG receivers have a transparent serial datalink built in to the radio control signal thus eliminating the need for a separate modem.

commit e8905c8158
Author: hendrixgr <hendrixgr@gmail.com>
Date:   Tue Oct 13 15:38:53 2020 +0300

    Easystar glider with the MATEK F405 WING

    Airframe file of the Easystar powered glider with the Matek F405 Wing autopilot.

commit de3f5f54b3
Author: hendrixgr <hendrixgr@gmail.com>
Date:   Tue Oct 13 12:33:09 2020 +0300

    improved osd

    Matek osd will work now, TEXT artificial horizon, additional string format capabilities, able to inject special osd character code in to a string to be sent to the osd display
    and the code now checks the osd chip's busy flag instead of waiting.

commit 78ae7cccc3
Author: hendrixgr <hendrixgr@gmail.com>
Date:   Tue Oct 13 12:27:56 2020 +0300

    matek f405 wing autopilot makefile
2020-10-14 21:30:16 +02:00
Gautier Hattenberger 972b17a37f [board] make the Tawaki header file more generic (#2596)
it is fixing some wrong pin and timer assigments
2020-10-13 14:06:48 +02:00
Fabien-B adce81e35e [Python libs] Start python settings and flight plan libs. (#2592)
* [Python libs] Start python settings and flight plan libs.

* [Python libs] Robustify XML attribute getters.

* [Python libs] Adds WP number, improve getters.

* [Python libs] Adds license headers.
2020-10-13 11:19:16 +02:00
Gautier Hattenberger f8f4142f6b [fix] use aligned_alloc only if glibc >= 2.16 (#2598) 2020-10-13 11:14:45 +02:00
Christophe De Wagter 9ace12432c MAVLab course update: typos, comments (tudelft pr#64) (#2593)
* MAVLab course update: typos, comments (tudelft pr#64)

* used more recent functions to update waypoints

Co-authored-by: Matteo Barbera <matteo.barbera97@gmail.com>
2020-10-13 11:13:43 +02:00
Gautier Hattenberger fab1253574 [stm32] add support of TIM9 and TIM12 for PPM input (#2584)
with libopencm3 and stm32F4
2020-10-01 12:47:51 +02:00
Gautier Hattenberger f15a2c8653 [pprzlink] update pprzlink for bug fix
tools using request messages in python (for example pprz_connect) are
currently crashing
2020-09-25 17:02:42 +02:00
Gautier Hattenberger 603c0c17bc [pprzlink] fix bug in request message callback
- update pprzlink to fix bug for the number of parameters in callback
- also split pprzlink makefile rules for update and install (it allows
to install the libraries with local changes)
2020-09-24 22:02:36 +02:00
Hector Garcia de Marina 82a81cbf24 gvf and python3 ubuntu 20.04 (#2588)
* compatible python3 ubuntu 20.04

* python3 by default
2020-09-23 09:28:05 +02:00
Gautier Hattenberger 5e041b5090 [nav] selectable navigation functions from flight plan (#2585) 2020-09-21 14:38:56 +02:00
Hector Garcia de Marina f38be8110c GVF Parametric (#2559)
Co-authored-by: Hector Garcia de Marina <hgdemarina@gmail.com>
2020-09-18 20:52:35 +02:00
Gautier Hattenberger 99c8d473aa [generator] generate the number of telemetry processes
also increment properly process id
2020-09-18 17:59:54 +02:00
Fabien-B befc20b8dd [Joystick] Add option to wait for an event on all axis to start. (#2579) 2020-09-17 10:50:29 +02:00
OpenUAS 6693952fdb Added sensor for using TFMini via I2C port (#2578)
Co-authored-by: Open UAS <noreply@openuas.org>
2020-09-16 21:54:02 +02:00
Gautier Hattenberger 3c5e7d0f08 [fix] check FP and AP modules for correct firmware (#2581) 2020-09-16 10:59:41 +02:00
Ewoud Smeur e83643812c Protect quat to euler conversion for NaN (#2580)
If the quaternion is slightly off around +-90 degrees pitch, the result
might be a NaN if the asin is computed. Added bounds to make sure this
can never happen. The argument should not be outside [-1,1] anyway.
2020-09-14 18:56:21 +02:00
Gautier Hattenberger bfcd114c32 [ahrs] use quaternion to compute initial DCM orientation
the euler formula is not correct when the IMU is upside-down
2020-09-10 13:48:43 +02:00
Gautier Hattenberger 7198f6c88b [sdlog] fix file name report 2020-09-08 14:34:18 +02:00
Gautier Hattenberger 3267f13c64 [dshot] remove (wrong) assert used for debug 2020-09-08 13:51:38 +02:00
Gautier Hattenberger 9b13fc7a61 [bebop] improve network script (#2571)
* [bebop] improve network script

- check that wifi join command is actually correct, with retries
- allow configuration for static IP

* [bebop] Fix install script for old configuration

* [bebop] add encryption configuration

Co-authored-by: xp31 <xp31@free.fr>
2020-09-04 18:49:32 +02:00
Gautier Hattenberger 6aef1fe591 [ocaml] iter on correct target name 2020-09-04 14:37:10 +02:00
xp31 ba931c0315 [fc_rotor] fix include and use python3 2020-09-04 14:37:10 +02:00
Gautier Hattenberger 06cb3e4d78 [actuator] add dummy file for simulation with dshot driver 2020-09-04 14:37:10 +02:00
Gautier Hattenberger 7e34121c6d [natnet] fix timestamp scale to have ms 2020-09-04 14:37:10 +02:00
Gautier Hattenberger a52867294c [traffic] fix scaling of position of AC_INFO messages 2020-09-04 14:37:10 +02:00
Gautier Hattenberger 206216c34f [server] protect SETTING callback from failure (Hashtbl.find) 2020-09-04 14:37:10 +02:00
Gautier Hattenberger 002ac9f505 [board] add tawaki v1.1 board file (#2574)
factorize code with v1.0
2020-09-04 13:48:51 +02:00
OpenUAS 2c535d7953 Add sensor for ranging with IO is PWM (#2575)
Co-authored-by: Open UAS <noreply@openuas.org>
2020-09-04 13:11:47 +02:00
Ewoud Smeur 79db939836 [FIX] Forgot to change name to indi_gains (#2573) 2020-08-28 15:36:53 +02:00
Ewoud Smeur a1b2d0ba65 INDI code cleanup
Renaming confusing variables
Fixing rate interface
2020-08-26 19:32:39 +02:00
Ewoud Smeur 733ddb06f9 fixing tudelft_gazebo_models 2020-08-26 19:32:39 +02:00
Rohan 7db8673774 [NOT FINAL] - forgot declaring stabilization_rate_indi_cmd in .h - v2 2020-08-26 19:32:39 +02:00
Rohan a43ebbfd2a [NOT FINAL] - forgot declaring stabilization_rate_indi_cmd in .h 2020-08-26 19:32:39 +02:00
Rohan f5292d3662 [NOT FINAL] - Solving on how to get gazebo files from previous commit 2020-08-26 19:32:39 +02:00