Commit Graph

326 Commits

Author SHA1 Message Date
Michal Podhradsky d66fc0c3b7 galois embedded crypto module and secure transport (#2205)
* Added RNG for NPS, cleaned up telemetry config files
* Added Rust submodules
* Added simple status message
* Updated gec transport and key exchange
* Update pprzink
* Compilation fix for Travis
2018-01-19 00:09:17 +01:00
Michal Podhradsky 528a7b5882 Update AggieAir configs 2018-01-12 11:36:51 -08:00
Tom van Dijk 73993ee708 Drag-based velocity estimator (#2132) 2017-11-13 10:28:25 +01:00
Ewoud Smeur 2e0a520bb7 Rename TUDELFT to tudelft, remove tudelft_ prefix 2017-10-30 17:30:10 +01:00
Michal Podhradsky 28c343468d Refactor battery monitor to use asynchronous i2c API (as does regular paparazzi) (#2082) 2017-06-21 11:29:53 -07:00
Michal Podhradsky 8806e853f3 Aggieair updates (#2081)
* Updated aggie air configs

* Updated configs and some small compilation fixes

* Added layouts and control_panel updates

* An example with a new flight plan. Note the plane doesn't fly very well because of the model mismatch.
2017-06-21 10:51:53 -07:00
guidoAI 30d5e73242 Exponential gain landing pull request (#2071)
* Adding bebop to my own conf file

* Added Bebop 2 OF to my conf file

* Introducing an exponentially decaying gain and a rework of the optical flow landing module

* Fixed code style, set parameters to standard optical flow control, tested everything on Bebop 2.

* Implemented all remarks, placing function definitions in the c-file, getting the state properly, getting the time properly, making div_factor a setting.

* Set minimum of D-gain to 0
2017-06-13 22:06:42 +02:00
Open UAS 9fb9d310e0 Added LisaS based Fixedwing UMX SBach 342 2017-05-30 11:20:01 +02:00
Open UAS 2a1eea87ac Fixedwing for Pixracer 2017-05-30 08:12:20 +02:00
Michal Podhradsky 005b5cbc14 Updated aggieair conf 2017-05-06 13:37:14 -07:00
Michal Podhradsky ca68570d03 Mission Computer and payload computer support (#2053)
* Copilot module
* Added mission computer status
* modules_parse_datalink() now accepts arguments
* Update pprzlink
* Update cartography module to comply with the extended CAMERA_SNAPSHOT message
2017-04-19 18:11:54 +02:00
Michal Podhradsky 8f1e082cfe [HITL] Fixed fixedwing simulation - runs now nicely with Minion Lia as an example (#2054) 2017-04-15 23:16:44 +02:00
Gautier Hattenberger 3f4a05d13a [rtcm] RTK with UBlox8 modules (#2034)
* [rtcm] RTK with UBlox8 modules

based on #1902, with fragmentation of packets to fit in RF modems if
necessary

* fix warnings

* [pprzlink] update pprzlink for RXMRTCM message

* [rtcm] add missing files
2017-03-18 16:03:17 +01:00
Gautier Hattenberger aea1d5f8e9 [sdlog] update sdlog for chibios (#2029)
* [sdlog] update sdlog for chibios

- fix several small bugs
- update to fatfs 0.12b
- add status report

* calculate mass storage thread size accordingly to ffconf choice for _USE_LFN and _FS_EXFAT

* [sdlog] improved documentation
2017-03-01 13:05:48 +01:00
Gautier Hattenberger 41ae80a307 Wind estimation (#2028)
* [nps] add angle of attack and sideslip to NPS

* [module] extra_dl can work with nps

* [module] add sideslip sensor to aoa_pwm module and fix apogee board file

* [module] add wind estimation module

This module is an experimental wind estimation filter based on UKF that
aims at estimating all 3 local wind components in real-time.
It is based on ChibiOS as the algorithm runs in a dedicated thread.
The algorithm itself is generated from a Matlab/Simulink model.

* [tool] read Meso-NH meteo data and feed NPS with wind information

* [module] remove nps target from extra_dl, uart not well supported on FW

* [mesonh] remove unused UDP interface

* [chibios] add compilation error message for wind estimator module
2017-02-28 10:42:58 -08:00
Michal Podhradsky 002a36c4a7 [aggieair] Added calibration values for Iris 2017-02-24 19:43:50 -08:00
kevindehecker d585ee9b08 Added Robird 2017-02-24 22:02:09 +01:00
Felix Ruess 5399bd98c7 remove trailing whitespaces
via `make cleanspaces`
2017-01-06 16:14:42 +01:00
Ewoud Smeur 6dcabb3a57 update INDI tu use full control effecitvens matrix (#1916)
* update INDI tu use full control effecitvens matrix

Instead of using commands (roll, pitch, yaw, thrust), give the
controller direct control over all actuators.
This allows for online individual actuator control effectiveness
estimation and inversion, as well as better saturation handling.
The INDI controller as it was previous is renamed to 'simple'.

* Made INDI more flexible wrt number of actuators

- 4x4 matrix inverse to accomodate the thrust axis as well
- support for more actuators
- cleanup of code

* Change filters guidance indi to butterworth

* Added body acceleration to state interface

* Better adaptation and guidance thrust increment

- Adaptation flexible wrt. number of actuators.
- Added adaptation of the specific force effectiveness of the actuators.
- Added connection to guidance INDI through ABI. The thrust increment is
  caclulated in guidance INDI and sent to the stabilization.

* lower case variables

* change filter of indi to butterworth

* INDI fix array index & no declarations in for loop

- Also added doxygen comments

* Added actuators_pprz

the array actuators is used to drive the servos, so a new array to store
the command to the actuators in pprz scale is needed

* Removed hardcoded scaling
2016-12-01 10:02:36 -08:00
Michal Podhradsky 8cfa5f18dd PX4FLOW integration (#1907)
Fixed the velocity messages (using the correct variables)
Works for PX4FLOW mounted as described here: https://pixhawk.org/modules/px4flow
Option to use i2c or UART to get data from PX4FLOW
Sends debug messages (maybe make optional if needed).
2016-11-10 21:18:51 +01:00
Hector Garcia de Marina 2257a889da Guidance Vector Field (#1919)
* pprzlink updated to master

* guidance vector field module

* sin trajectory, forgot a minus sign...

* xml files for GVF

* control/gvf.xml not needed anymore

* added some structs for settings and placing gvf_variables into structs

* demo flight plan for testing the settings of the GVF

* style fixed

* trigonometry calculations made only once

* syntax fixed

* pprzlink updated

* added defines and improved description in the module .xml

* module only works for fixedwing (so far)
2016-11-03 22:48:02 +01:00
Michal Podhradsky 49e058010e Nps update - proof of concept of HITL+SITL integration (#1831)
* FlighGear and Ivy thread working

* Main loop replaced with main_thread

* Cleaned up nps_main

* HITL main - test TX with Vectornav

* Added AggieAir control panel

* [modules] Flight logger module added

* [fixedwing] Airframe configuration updated

* [hitl] Proof Of Concept - IO and simulation running

* [nps] Minor changes in main hitl

* [nps] Performance Test with Pthread library

* [hitl] Working with pthreads instead of glib threads

* [hitl] Minor updates

* [nps] Refactoring to get rid of Gthreads

* [nps] Minor changes, added mutex guards

* [nps] Minor Ivy fix

* [nps] Threads working properly
[hitl] Ins separated

* [hitl] Check for launch variable

* [nps] Refactoring makefile into common and hitl/sitl specific

* [hitl] Hitl works, sitl too

* [hitl] ins_vectornav comments

* [hitl] Updated launch routine

* [nps_hitl Cleaned up version of NPS/HITL
- added support for ACTUATORS message (Rotorcraft)
- resolved start issue for Fixedwing (works fine now)
- minor improvements in threads (fg_thread, ap_init)

* [nps] Minor fixes to save current work

* [nps] Minor fixes

* Update to latest pprzlink

* FlighGear and Ivy thread working

* Main loop replaced with main_thread

* Cleaned up nps_main

* HITL main - test TX with Vectornav

* Added AggieAir control panel

* [modules] Flight logger module added

* [fixedwing] Airframe configuration updated

* [hitl] Proof Of Concept - IO and simulation running

* [nps] Minor changes in main hitl

* [nps] Performance Test with Pthread library

* [hitl] Working with pthreads instead of glib threads

* [hitl] Minor updates

* [nps] Refactoring to get rid of Gthreads

* [nps] Minor changes, added mutex guards

* [nps] Minor Ivy fix

* [nps] Threads working properly
[hitl] Ins separated

* [hitl] Check for launch variable

* [nps] Refactoring makefile into common and hitl/sitl specific

* [hitl] Hitl works, sitl too

* [hitl] ins_vectornav comments

* [hitl] Updated launch routine

* [nps_hitl Cleaned up version of NPS/HITL
- added support for ACTUATORS message (Rotorcraft)
- resolved start issue for Fixedwing (works fine now)
- minor improvements in threads (fg_thread, ap_init)

* [nps] Minor fixes to save current work

* [nps] Minor fixes

* Update to latest pprzlink

* Fixed the feed function

* Compilation fixes

* More compilation fixes

* Last compilation fixes

* Added a simple automated flight plan (auto take off and landing)

* Fixes in NPS

* Removed SBUS fakerator

* Removed superfluous "else"

* Renamed "flight recorder" to "xgear"

* Fixed formatting

* Updated extra_dl module

* Initial support for extra_dl to run over USB serial

* Fixed usb_serial for extra_dl

* extra_dl_periodic() called at TELEMETRY_FREQUENCY
2016-10-04 14:42:10 +02:00
Freek van Tienen 3c53dd79f6 [modules][intermcu] Add telemetry over InterMCU
Conflicts:
	conf/airframes/TUDELFT/tudelft_conf.xml
	sw/ext/pprzlink
2016-07-29 12:02:01 +02:00
Freek van Tienen aed5c935c7 [vision] Opticflow upgrade 2016-07-05 21:08:18 +02:00
Deon Blaauw f1f75e96b8 Hybrid guidance code for hybrid drones (#1769)
This pull request is for the guidance algorithms used to control hybrid drones like the Quadshot and MavShot. It supports autonomous waypoint navigation as well as "forward-flight". The code was flight tested in autonomous waypoint navigation mode, including autonomous landing (using sonar).
2016-06-30 21:51:52 +02:00
Deon Blaauw 8f75e25129 [xml] Flight plan and airframe file updates for outdoor testing with hybrid and Bebop2. (#1718)
* [xml] Bebop2 simple outdoor flight plan and flight testing. Added MavShot xml file. Added custom GCS layout in DB folder

* Removed deprecated file
2016-06-13 20:53:42 +02:00
Felix Ruess 2bfe560402 [generators][telemetry] remove module attribute (#1678)
The module attribute for a message was used to only include that message in the generated periodic telemetry if that module was loaded.
This is not needed anymore with the register_periodic_telemetry() funtions as unregistered messages are simply not sent.

see #1674
2016-05-22 00:30:57 +02:00
Freek van Tienen ae366e93ea [conf] Repair TUDelft telemetry and flight plans 2016-05-18 16:47:41 +02:00
Freek van Tienen eea355253c [conf] Update Outback airframe and Gyro filtering 2016-05-18 14:45:20 +02:00
Deon Blaauw 859d0f7b47 Created user-specific xml files and placed these into user-specific folders. 2016-05-10 11:18:07 +02:00
Gautier Hattenberger 84fd6f0bb6 [module] improve ADC generic module
allow to have the value reported by a periodic function
or with the telemetry system (including flight recorder)
2016-04-26 10:51:44 +02:00
Gautier Hattenberger f0f1d307c2 [module] add esc32 driver (#1636)
for testing as only one ESC is currently supported
2016-04-25 09:42:07 +02:00
Freek van Tienen b7b9edecf9 [intermcu] Cleanup and FBW status (#1608) 2016-04-20 17:32:47 +02:00
Felix Ruess 078ef199d8 Merge first part of Pixhawk board support
First PR for getting Pixhawk to play nice with PPRZ.

The Pixhawk can be flashed without external tools (i.e. no JTAG interface is needed). Instead, the PX4 bootloader is kept in place and used by pprz to flash both the AP (stm32f4) and FBW (stm32f1) devices. One important remark is that for the FBW device, currently the computer needs to be connected to the Telem2 port using a FTDI cable. This is because pprz does not support serial communication over USB, or so I've heard.

In any case, the Iris+ drone factory equipped with a Pixhawk flies both on INDI and PID in ATT mode. However, PPRZ currently uses the MPU6000 IMU, which was broken in my Iris+ (and there are indications that maybe in others Iris' and X8's as well). I had to replace it with a fresh Pixhawk.

Also tested with a Pixhawk clone: seems to work just as well.

closes #1551
2016-03-11 18:04:16 +01:00
Felix Ruess dbe0aae9f2 [conf] add air_data to some examples 2016-03-09 14:21:17 +01:00
kevindehecker 03dd41f641 Added Iris airframe and 3dr radio 2016-03-04 18:54:54 +01:00
kevindehecker 0ec787c365 Fixed all kinds of fbw related problems 2016-03-04 18:54:54 +01:00
Felix Ruess a8d581f680 remove some accidentally added stuff 2015-12-12 20:45:11 +01:00
Roland Meertens 6676015708 +description of module 2015-12-12 17:18:27 +01:00
Open UAS fd36c0a738 Fixed TU and related configs to new unified conf layout and cleanup files. Use of start.py may come in handy 2015-12-09 16:02:20 +01:00
Felix Ruess 20fae10f26 [mavlink] use register_periodic_telemetry for all messages
- if a mavlink process is specified in the telemetry file, use that, otherwise fall back to fixed message periods
- print warning if telemety file has no mavlink process
- fix code style
2015-11-30 17:44:05 +01:00
Felix Ruess 45d08b6f7f [telemetry] cleanup 2015-11-29 21:44:16 +01:00
Felix Ruess 348a0a2da5 possibility to use register_periodic_telemetry for mavlink and others
in the telemetry xml file a type can be specified for the process (default is "pprz").
You can also set "mavlink" and use mavlink messages, which will be sent as specified if the mavlink module is loaded and that mavlink message is registered there.
2015-11-27 16:37:54 +01:00
Felix Ruess 83065af402 Change register_periodic_telemetry() to use msg id 2015-11-27 14:40:33 +01:00
Felix Ruess ac901bce12 [ahrs] send some more messages
float cmpl and mlkf also register AHRS_EULER and AHRS_GYRO_BIAS_INT
2015-11-24 13:58:54 +01:00
Felix Ruess 53bb748556 Merge pull request #1392 'sdlogger_v2_release'
This module provides a tool for high-speed logging where weight- and size-limitations play part.
It only requires a micro-SD card which is soldered directly to the SPI-bus, for example on a lisa/s.

The logger is activated by flipping a switch on the transmitter. Up to 42 logs can be recorded during one session (battery kept connected). The data remains on the card when the battery is disconnected, so that you can replace the battery before downloading data to the computer. Previous logs will be overwritten as soon as the first log is initiated after boot.

The messages to be logged can be selected in the telemetry config file, under the Logger process. Next to that, it is possible to call pprz_msg_send_xxx from anywhere in the code, using a reference to the sdlogger.

See also http://wiki.paparazziuav.org/wiki/SDLogger_SPI_Direct
2015-11-22 13:05:20 +01:00
Bart Slinger ec15491b9a [sd logger] Version 2.0 release, direct SPI logging, UART download 2015-10-27 14:13:39 +01:00
kirkscheper e654b9a310 Merge branch 'master' of https://github.com/paparazzi/paparazzi into spi_slave 2015-10-19 16:20:00 +02:00
Open UAS f88d40b370 Update all configs to new UPPERCASE 3rd party naming convention and new aircraft ids 2015-10-13 15:18:25 +02:00
kirkscheper d9ad261af9 added temeltry mesage for bluegiga, added registration for periodic telemetry, started debuging slow uplink with bluetooth and updating spi_arch 2015-10-12 09:19:19 +02:00