Commit Graph

151 Commits

Author SHA1 Message Date
Fabien-B b71d4793a6 [python] Fix shebangs to use the "right" interpreter. (#3292)
Co-authored-by: Fabien-B <Fabien-B@github.com>
2024-06-06 11:38:47 +02:00
Fabien-B 7f2d374c4f Update natnet SDK. (#3249) 2024-06-06 11:31:06 +02:00
Christophe De Wagter 308a698bf4 [tudelft] Rot Wing Updates V3 (#3278)
* max bank in deg

* takeoff no attitude msec timer

* Prepared elevator moment compensation fix

* [EHVB_rotwing fp] Updated takeoff stratgey with roll and pitch check and added standby_free to flightplan

* [fp EHVB] Takeoff 3 seconds on att 0,0

* increase filter freq and setting for max acc

* [rot_wing_eff_sched] Elevator 5 degrees higher

* [rot_wing] Decreased cutoff frequencies of filters

* [modules] Support dual ublox GPS modules

* [ekf2] Add failsafe remove yaw

* Reverted acceleration limits

* takeoff procedure update

* [flight_plan] Takeoff when hover motors are running

* scale elevator ctrl eff in transition

* [conf] Fix takeoff

* Higher pitch gains

* Fix conf

* Add extra throttle for spinup

* Update calibration

* max_bank in Radians only except in xml/gcs with auto-conversion

* cleanup

* Use flightplan variables instead...

* fix test

* revert debugging action

* cleanup unused

* cleanup more

* Fix compile bug

* [pfc] Fix actuators

* Add follow tests

* reduce pitch weight in forward flight

* correctly set cmd thrust in INDI

* fix takeoff unequal roll effectiveness and not in_flight

* Fix heading in approach

* fix double define and roll scaling setting

* settings names and roll scaling in right settings

* moving simulator stuff

* [flight_plan] Update angel for takeoff

* Update conf

* Conf update

* [conf] Update checks

* land in approach

* Fix flightplan

* Update sw/ground_segment/python/moving_base/moving_base.py

* input params for moving base sim

* no elevator compensation

---------

Co-authored-by: Ewoud Smeur <e.j.j.smeur@tudelft.nl>
Co-authored-by: Dennis van Wijngaarden <32736330+Dennis-Wijngaarden@users.noreply.github.com>
Co-authored-by: Freek van Tienen <freek.v.tienen@gmail.com>
2024-06-05 14:58:07 +02:00
Christophe De Wagter d0f97e143d Rotwing show both CAN bus messages... (#3263) 2024-04-11 12:03:02 +02:00
Till Blaha 12da43ec1b Fix natnet2ivy rotation order (#3231) 2024-03-01 14:50:54 +01:00
Christophe De Wagter 5c04a35a30 [quadplane] simulator, telemetry and visualizers ---> PR 3173 (#3173) 2023-11-11 10:26:48 +01:00
Tomaso Maria Luigi De Ponti cc071e1ca7 Oneloop Controller Pull Request (#3150) 2023-11-07 14:16:37 +01:00
Christophe De Wagter 59fac571a6 [tools] Python visualizer updates quadplane (#3119) 2023-10-01 20:43:14 +02:00
Christophe De Wagter 3da0992fd5 [tools] Visualizer Rotating Wing (#3070)
* Visualizer Rotating Wing

Rotwing Monitor

* executable + tool

* removed STL

* Apply suggestions from code review
2023-09-18 15:00:42 +02:00
Christophe De Wagter d967bf237b [python] Moving-base simulator (#3066)
Missing new heading field
2023-09-14 16:52:34 +02:00
Christophe De Wagter ce15efd045 [python] fuel-cell endurance estimators and status fixes (#3059)
* [python] fuel-cell endurance estimators and status fixes

* controlpanel

* [python] Update fuel cell python

---------

Co-authored-by: Freek van Tienen <freek.v.tienen@gmail.com>
2023-09-14 14:06:39 +02: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
Gautier Hattenberger 3502cab856 [natnet] display object in GCS based on optitrack markerset (#2958)
* [natnet] display object in GCS based on optitrack markerset

update natnet client to get markerset

* [natnet] Add a minimum refresh period for objects display.

Co-authored-by: Fabien-B <fabien.bonneval@gmail.com>
2022-12-16 16:00:36 +01:00
Till Blaha 27c9c8a27f More intuitive axes systems for indoor test areas with Optitrack positioning systems (#2947) 2022-11-17 14:31:11 +01:00
Gautier Hattenberger d721d0c727 Update conf enac imav (#2905)
* update enac conf and imav2022 flight plans

* collection of small corrections and improvements

- default mode is NAV for rover steering
- no rover throttle when killed
- xbee link doesn't send data to modem before end of config
- fix alt in server (geoid/ellipsoid)
- support GPS_INT in sd2log
- don't increment position in follow module
- use correct angles for hybrid
2022-09-28 15:34:59 +02:00
Freek van Tienen a0e00fd753 [ins] EKF2 update to latest version (#2829)
* [conf] Add splash4 airframe
* [ins] Update EKF2
* [ekf2] Add support for optitrack and update gps datalink module
* [modules] Fix gps datalink module heading calculations
* [ground] Remove old natnet2ivy
2022-04-12 11:08:20 +02:00
Gautier Hattenberger 49327fe0a3 [python] tool to read data from hotwire anemometer PCE-423 (#2851) 2022-03-30 12:13:56 +02:00
amtcvx 3172453e74 [LinkCombiner] rename function. (#2778) 2021-09-10 13:25:10 +02:00
Fabien-B fe8bbd3bb0 Fix python "Messages". (#2752) 2021-07-16 14:11:17 +02:00
Freek van Tienen 47c591f6fb [combined] Small fixes (#2750)
* [conf] Add NederDrone Trailing edge motors

* Update the enter function of guidance_indi_hybrid

* added guidance hybrid message

* [ekf2] Fix EKF2 capabilities to fly with optitrack system

* [ground] Add Herelink python script for logging RSSI

Co-authored-by: Ewoud Smeur <e.j.j.smeur@tudelft.nl>
2021-07-15 15:50:11 +02:00
Christophe De Wagter e8174bf853 [tools] Bugfix in wind plotter tool 2021-06-03 11:33:35 +02:00
Christophe De Wagter f5abd80e32 [tools] Minor fix in python tools. 2021-06-03 10:50:05 +02:00
Christophe De Wagter 030c5e71aa [python] Nederdrone Status Window: CAN Esc Status and Fuel-cell status (#2725) 2021-05-20 10:03:10 +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
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
xp31 ba931c0315 [fc_rotor] fix include and use python3 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
Mohammad Jafar Mashhadi eeac31e1e4 Added try...except to be more safe after pprzlink api changes. (#2548)
* Updated pprzlink library to the latest version

* Added try...except to crazyradio2ivy.py to be safer after pprzlink API changes. paparazzi/pprzlink#117

* Updated request messages with the new pprzlink API

* Added a #noqa comment so linters won't remove the seemingly unused import.

* Updated the guided_mode_example.py to have a wait timeout.
2020-07-14 01:01:36 +02:00
Christophe De Wagter b53f085f1d [ground] Distance measuring during flight, Ubuntu18.04 update + time (#2521)
* [ground] Distance measuring during flight, Ubuntu18.04 update + time counter

* remove printf as this freezes pprzcenter

Co-Authored-By: Matteo Barbera <matteo.barbera97@gmail.com>

* remove printf

Co-Authored-By: Matteo Barbera <matteo.barbera97@gmail.com>

* line endings

* Fix distance counter to work with different number of messages

* Nicer code in distance coutner

Co-authored-by: Matteo Barbera <matteo.barbera97@gmail.com>
Co-authored-by: danielwillemsen <danielwillemsen@live.nl>
2020-04-12 16:17:38 +02:00
Gautier Hattenberger 228737677e [tool] crazyradio to Ivy bridge
Used for datalink with crazyflie drones.
Update pprzlink for compatibility between Python 2 and 3.
Requires to install crazflie-lib-python from Bitcraze.
2020-01-13 14:21:54 +01:00
Hector Garcia de Marina 521f3cf8e8 Organize multi vehicles (#2473)
* source files moved to multi dir

* python scripts moved to multi dir

* short README for the multi directory

* correct paths to multi
2019-11-23 22:49:42 +01:00
Hector Garcia de Marina 5cf27ee25d Collective tracking control (#2469) 2019-11-16 00:43:46 +01:00
Gautier Hattenberger 4d7045d6ff [python] fix natnet3 speed filter
previously, only the last computed speed was return in the end,
regardless of the filter option (number of points to use)
2019-06-18 19:16:06 +02:00
Gautier Hattenberger def68323ad [matlab2pprz] fix nb of arguments and add to tools 2019-02-28 14:26:52 +01:00
Gautier Hattenberger 905c980223 [matlab] bridge between Natnet, Simulink and Paparazzi 2019-02-28 14:26:52 +01:00
Kirk Scheper 6ab48de161 added explicit pyhton2 binding where ambiguous (#2373) 2019-02-01 09:41:55 +01:00
Hector Garcia de Marina 46a8bfb0a2 Futaba16SZ, units in circular formation, and no IMU in default msg cfg (#2382)
* fixed tab and IMU not necessary in default

* explicit units

* Futaba T16SZ conf file

* units

* fixed tab and IMU not necessary in default

* explicit units

* Futaba T16SZ conf file

* units
2019-01-29 11:19:24 +01:00
Gautier Hattenberger 9cceab1c49 [imav] add support for direct control of a CX10DS from input2ivy tool
This is the basic manual operation mode of the IMAV2018 indoor mission
2018-12-03 21:54:38 +01:00
Christophe De Wagter cf9499012e Update multiple python tools (#2333)
* fix missing path, remove unused code, use more common fonts, make text rescale

* Save window position on close, better resize and font change, wind plotter, updated battery model

* Fixed merge problem, cleaned up and added to controlpanel

* Cleanup wind
2018-10-05 22:02:53 +02:00
Christophe De Wagter 018df2fb30 [visualizer] battery model plot 2018-08-07 20:57:00 +02:00
Hector Garcia de Marina da3e040ae4 Distributed formation circular control upgraded (#2293)
* -1 is the correct value to erase a neighbor

* nei_id 0 special msg to clean tables

* We control relative position in addition to the absolute angle

* faster convergence, and we control relative position too

* not needed, we have json conf files now

* forgot to remove the stdio for debugging

* forgot to remove this .txt, not needed with json

* fixed style
2018-07-12 15:25:44 +02:00
Christophe De Wagter e1ee5873d9 [airframes] test flight reports, controlpanel items, bugfix on icon 2018-07-05 13:44:05 +02:00
Hector G. de Marina 6317591144 ignore geo fence option 2018-07-03 00:07:44 +02:00
Tom van Dijk c0741e01ab MAVLab course 2018 (#2268)
* Merge cyberzoo model (squashed)

Squashed commit of the following:

commit 4ea7054205
Author: Tom van Dijk <tomvand@users.noreply.github.com>
Date:   Tue Feb 6 11:30:28 2018 +0100

    Remove origin marker from worlds

commit c008c9658a
Author: Tom van Dijk <tomvand@users.noreply.github.com>
Date:   Fri Feb 2 17:25:11 2018 +0100

    Compress textures

    Reduced texture dimensions. Size of model folder is now approx.
    20 MB instead of 60+ MB.

commit 5b63fc1988
Author: Tom van Dijk <tomvand@users.noreply.github.com>
Date:   Fri Feb 2 17:03:26 2018 +0100

    Minor tweaks to models

commit ed003351d1
Author: Tom van Dijk <tomvand@users.noreply.github.com>
Date:   Fri Feb 2 15:26:28 2018 +0100

    Add cyberzoo props

commit 751b94364a
Author: Tom van Dijk <tomvand@users.noreply.github.com>
Date:   Thu Feb 1 15:03:30 2018 +0100

    Restore cyberzoo floor collision box

commit 1d4fd2d92f
Author: Tom van Dijk <tomvand@users.noreply.github.com>
Date:   Thu Feb 1 14:59:44 2018 +0100

    Add cyberzoo surroundings to main model in separate layers

commit 9df9f2832c
Author: Tom van Dijk <tomvand@users.noreply.github.com>
Date:   Thu Feb 1 14:48:06 2018 +0100

    Separate cyberzoo model into layers

    Makes it easier to hide parts of the model in the GUI.

commit f8c4221e98
Author: Tom van Dijk <tomvand@users.noreply.github.com>
Date:   Thu Feb 1 11:47:52 2018 +0100

    Add daylight in windows on outer walls

commit b0e6a0c572
Author: Tom van Dijk <tomvand@users.noreply.github.com>
Date:   Mon Jan 29 16:25:08 2018 +0100

    Remove old cyberzoo model, fix dependencies

commit dd54000771
Author: Tom van Dijk <tomvand@users.noreply.github.com>
Date:   Mon Jan 29 15:04:43 2018 +0100

    Add cyberzoo world with orange poles for orange_avoider

commit a34e285082
Author: Tom van Dijk <tomvand@users.noreply.github.com>
Date:   Mon Jan 29 14:30:47 2018 +0100

    Set world coordinates and rotation, fix naming conflict

commit 1a99ebb7bd
Author: Tom van Dijk <tomvand@users.noreply.github.com>
Date:   Thu Jan 18 11:58:06 2018 +0100

    Create cyberzoo world

    To-do: set origin coordinates and rotate environment

commit ebf7eaf9a7
Author: Tom van Dijk <tomvand@users.noreply.github.com>
Date:   Thu Jan 18 11:41:37 2018 +0100

    Minor fixes to surroundings

commit c57312c557
Author: Tom van Dijk <tomvand@users.noreply.github.com>
Date:   Thu Jan 18 11:15:09 2018 +0100

    Add updated cyberzoo surroundings and outside walls

commit 58914e14ae
Author: Tom van Dijk <tomvand@users.noreply.github.com>
Date:   Wed Jan 17 17:24:57 2018 +0100

    Add first draft of cyberzoo surroundings

commit 40712f5f3b
Author: Tom van Dijk <tomvand@users.noreply.github.com>
Date:   Tue Dec 12 13:45:25 2017 +0100

    Fix cyberzoo origin

commit e47f76cee5
Author: Tom van Dijk <tomvand@users.noreply.github.com>
Date:   Tue Dec 12 13:34:11 2017 +0100

    Fix orange_pole2 smoothing errors

commit b1e08695e7
Author: Tom van Dijk <tomvand@users.noreply.github.com>
Date:   Tue Dec 12 13:09:09 2017 +0100

    Add orange pole and traffic mat objects

commit 8bd3d214e6
Author: Tom van Dijk <tomvand@users.noreply.github.com>
Date:   Fri Dec 8 14:48:53 2017 +0100

    Fix optitrack camera color

commit 59e7b67fef
Author: Tom van Dijk <tomvand@users.noreply.github.com>
Date:   Fri Dec 8 14:43:39 2017 +0100

    Fix lighting colors

commit 810e6124c1
Author: Tom van Dijk <tomvand@users.noreply.github.com>
Date:   Fri Dec 8 14:20:47 2017 +0100

    Fix optitrack cameras

commit e6e17c2677
Author: Tom van Dijk <tomvand@users.noreply.github.com>
Date:   Fri Dec 8 14:10:55 2017 +0100

    Import improved model

commit e9ed496af9
Author: Tom van Dijk <tomvand@users.noreply.github.com>
Date:   Thu Nov 30 16:38:22 2017 +0100

    Fix ambient lighting of cyberzoo_solid

commit 0e1c2600d6
Author: Tom van Dijk <tomvand@users.noreply.github.com>
Date:   Wed Nov 29 14:38:05 2017 +0100

    First steps towards detailed cyberzoo model. Got transparency working.

* Fix altitude overshoot in simulation

- Bypass INS
- Set nominal hover throttle to 0.51 (verified in simulation and on real drone).

* Fix INS horizontal offset

- Set flight plan origin to match gazebo spherical coordinates,
prevents https://github.com/paparazzi/paparazzi/issues/2134#issuecomment-342493105

* Increase link lost timeout to 5s

Otherwise gazebo will continuously lose link. Might need to lower
this for real-world flights...

* Fix image.c compilation warnings

* Move dummy waypoint to 0, 0

Should prevent "waypoint 'dummy' too far from HOME" warnings when
max_dist_from_home is small (e.g. cyberzoo flightplans) and when
HOME is set appropriately close to the flight plan origin.

* Rename 2017 -> 2018

Also removed simulation aircraft as it is no longer necessary.

* Move modules to firmware section

* Restore original nominal throttle

Nominal throttle of 0.51 was measured without bumpers! 0.68 is correct
with bumpers attached. Instead, increased the weight of the gazebo model.

* Clean up control panel

- Removed Bebop video stream since it did not work
- Removed the Gazebo tool. When pointed to /usr/bin/gazebo it does actually start, but
  the GAZEBO_MODEL_PATH appears to be ignored this way.

Also added conf/video.sdp to simplify video streaming (no such file
was present in var).

* Tag airframe after successful test flight

Performed test flight in cyberzoo with course2018_orangeavoid flightplan in NAV mode.

* Fix Gazebo tool, add Simulation - Gazebo + Joystick session

The new gzclient_launcher.sh script sets up the correct GAZEBO_MODEL_PATH
(which was not available when gzclient was started from the Paparazzi Center
even if it was added to ~/.bashrc). It also allows the client to be killed
from the pprz center.

* FIX remove natnet from simulation session

* Retune INDI for Bebop1 with bumpers

Previous tuning resulted in slight attitude oscillations.

* Tag after successful testflight

* Add GCS flags

* Change gazebo bebop colors

* Disable light and shadows

Top light caused ogre crash in gazebo 8.3 (not sure if version error or weak gpu).
Disabled shadow for performance since there is no light anymore.

* Reduce bebop front cam FoV to fix AxisAlignedBox crash in gazebo7

Apparaetly gazebo 7 does not yet support wide-angle cameras with
HFoVs above 180deg.

* Distance Counter Python

* Cleanup after merge

* Remove image.c fix (see #2237)

* Add 'Simulation - Gazebo' session

Avoids errors when joystick is not connected.
2018-05-30 17:34:03 +02:00
Gautier Hattenberger f3f70cb13d [python] get air traffic from opensky-network and display in GCS (#2259) 2018-05-11 10:52:58 +02:00
Gautier Hattenberger 5a00206826 [natnet3] only send valid rigid bodies 2018-05-11 10:52:09 +02:00
Gautier Hattenberger 789437978d [swarm] add formation control for rotorcraft (#2246)
* [swarm] add formation control for rotorcraft

Based on Ewoud Smeur (INDI) and Hector Garcia de Marina (Formation
control) work. See
https://blog.paparazziuav.org/2017/12/02/pilot-a-super-rotorcraft
- several UAV can be control from the ground (using a joystick for
  instance) by sending proper acceleration setpoint to the INDI guidance
  controller
- configuration of the formation is done from a JSON file (2 example
  files provided)

Some extra changes:
- update accel from IMU in GPS passthrough INS
- add accel setpoint to ABI messages
- by to accel setpoint in INDI guidance
- send ground reference from natnet2ivy
- possibility to have a joystick labeled 'GCS' with input2ivy
2018-03-20 16:07:16 +01:00
Gautier Hattenberger a628e6af97 [python] update python tools to use installed version of pprzlink 2018-03-12 14:00:01 +01:00
Hector Garcia de Marina 39f5e775aa updated paths for python tools (#2242) 2018-03-07 21:32:45 +01:00
Hector Garcia de Marina 695917a095 Circular formations. More elegant script and examples (#2206) 2017-12-20 18:39:24 +01:00