Commit Graph

15189 Commits

Author SHA1 Message Date
Titus 14d5bfe24b In void calc_edgeflow_tot, change flow_x into div_x as it is the divergence being set. 2017-03-23 16:04:01 +01:00
Titus 2195de3af8 In void calc_edgeflow_tot, prevent segfault due to memory leak in line 445-446 by freeing the malloc'd variables properly 2017-03-23 15:58:27 +01:00
Titus db6548ed67 in void line_fit, fixed sumx2 by correctly removing 1*1 +2*2 etc until and including (border-1)*(border-1) 2017-03-23 15:53:50 +01:00
Titus a75b2e82f0 in void calculate_edge_histogram, 1)IMPORTANT: corrected the index used for img_buf, the +1 caused a out of array memory address to be looked up. Also it caused wrong calculations to take place arround the borders of the image 2)removed comments that were from an old version 2017-03-23 15:28:38 +01:00
Titus aab67c06f3 in void calculate_edge_displacement, 1)corrected in/out comment 2)removed a pair of redundant {}'s 2017-03-23 15:22:03 +01:00
Hector Garcia de Marina cdf9b2247e Drawing circles in the GCS if the user is employing the Guidance Vector Field (#2045)
* If the ellipse is a circle, then we set PPZ Horizontal Mode to CIRCLE

* at least one byte has to be sent

* for now, if not in a CIRCLE, then a WAYPOINT, so the GCS will not draw anything
2017-03-22 17:22:19 +01:00
Wilco 0a061c57fd [MAG_CALIB_UKF] Online magnetomer calibration using unscented Kalman filter (#2043) 2017-03-22 09:37:23 +01:00
Michal Podhradsky 42c0cd27d1 [extra_dl] Extend module functionality (#2042)
use dedicated buffer
2017-03-21 11:08:15 +01:00
Wilco ec94d7dad9 [JOYSTICK] Added FrSky Tarranis X9D plus joystick xml (#2044) 2017-03-20 15:14:30 +01:00
Michal Podhradsky 734a29b567 [ubx_center] Fix no previous prototype warning 2017-03-19 18:44:59 -07:00
Gautier Hattenberger 1754ce0a41 Revert "[extra_dl] Added an example of processing a payload_command packet"
This reverts commit 7402d0a1b4.
2017-03-19 23:11:03 +01:00
kevindehecker 205559e825 Must turn on kill switch once before kill switch can be turned off in fbw (#2035) 2017-03-19 13:04:11 -07:00
Michal Podhradsky 7402d0a1b4 [extra_dl] Added an example of processing a payload_command packet 2017-03-19 12:38:38 -07:00
Hector Garcia de Marina f6b662b8cb Circular formation script (#2038)
* now we process only the msgs from the ac_id aircraft

* now we process only the msgs from the ac_id aircraft

* Circular formation Python script
2017-03-19 14:41:27 +01:00
Michal Podhradsky 5412f508af [airframes] Add optional comment and description elements in aiframe config file, with a small example in AggieAir Iris 2017-03-18 19:36:45 -07:00
Michal Podhradsky cb97a1c5cc [aggieAir] Updated default flash mode 2017-03-18 19:03:35 -07:00
Michal Podhradsky c801d45b41 Added info about Lisa MX bootloader 2017-03-18 18:56:31 -07:00
Michal Podhradsky 717cd10e49 [chibios] Bootloader support for Lisa/Lia M/MX and PX4FMU 2017-03-18 18:52:48 -07: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 a0dda6ed9d [chibios] set correct initial uart baudrate 2017-03-17 12:59:00 +01:00
Michal Podhradsky 38395f50ed [ECU] Small changes in the demo module 2017-03-13 09:42:32 -07:00
Hector Garcia de Marina 08026cc0f4 Small bug with the plotting of the sin track at the python App (#2036) 2017-03-13 16:57:04 +01:00
Ewoud Smeur 46fd092595 Fix typo in indi_simple 2017-03-13 14:05:24 +01:00
Gautier Hattenberger e733db4f47 [chibios] add missing board include in pwm_input driver 2017-03-10 11:45:24 +01:00
Alexandre Bustico 1ef3ca0547 raise dynamic ram pool size and sdLog ram cache size on STM32F7 (chimera) 2017-03-09 19:01:13 +01:00
Gautier Hattenberger 3b82986c1f [chimera] swap ADC affectation on AUX1 and 2 2017-03-09 18:52:19 +01:00
Felix Ruess fe957c7a7a [travis] run test_all_confs on cron job 2017-03-09 12:14:54 +01:00
Alexandre Bustico 409ae11f6a [sdlog] fix some bugs
- fix dma buffer allocation for STM32F7 in sd logger and usb storage
- fix sdLog race condition when sdLogWrite are done at high frequency before sdLogInit/sdOpenLog are done
- fix calls to APi that shluld have been atomic : two fonctions are merged in one at the expense of long argument list
- add attribute format to sdLogWriteLog function (add more static checking)
2017-03-08 18:44:50 +01:00
Gautier Hattenberger 210f94befa [arch] add empty gpio functions for linux arch
required to compile disco with SBUS
2017-03-08 11:23:21 +01:00
Michal Podhradsky 0b633e825c [imu] Vectornav as IMU (gyro and accel data only) (#2032)
* [imu] Vectornav as IMU (gyro and accel data only)

* [vectornav] Added simple Vectornav configuration tool.
2017-03-07 11:53:46 -08:00
Ewoud Smeur d85ae584bd simulation of bebop1 (#2033)
* simulation of bebop1

* update bebop sim with correct motor pos
2017-03-07 11:52:43 -08:00
Maximilian Laiacker ae8141490d added hott sumd radio control input (#2030)
Added Graupner HOTT SUMD serial rc control protocol.
I used the sbus implementation as base for the hott sumd input.
Tested with lisa m 2.0 uart1 and Graupner GR-12L with 9 and 12 channels.
Should work with 2 to 32 channels.
and example airframe config.
2017-03-06 21:23:53 +01:00
Michal Podhradsky 1a4cf57b0c [vms_ecu_demo] Added debugging message 2017-03-04 15:40:03 -08:00
Michal Podhradsky ae7b16411a [vms_ecu] Updated board config and added test module 2017-03-04 15:34:01 -08:00
Felix Ruess a5bb235fcb Merge pull request #2027 from martinmm/master_ins_temp_ctrl
- add temperature control module for Bebop2
- add usb dual cdc board to Bebop2 for serial modem and payload
  -  Sparkfun FIO v3 board adds simultaneous XBee serial modem and SHT75 humidity payload sensor.
2017-03-04 14:10:45 +01:00
Martin Mueller 0abc28a501 [joystick] add logitech 310 and ppm2usb adapter 2017-03-02 21:28:09 +01:00
Martin Mueller c062daec54 [bebop2] add example ac for usb cdc 2017-03-02 21:28:03 +01:00
Martin Mueller c8f657b39e [bebop2] add usb dual cdc board to Bebop2 for serial modem and payload
Sparkfun FIO v3 board adds simultaneous XBee serial modem and SHT75
humidity payload sensor.
2017-03-02 21:27:45 +01:00
Martin Mueller 784813824a add temperature control module for Parrot Bebop2/Disco
It is possible to control the temperature of the MPU6xxx in the Bebop2
and Disco through resistors powered by PWM_6. Code mostly taken from
Ardupilot

Seems this does not make a big difference even if flying in cold
conditions but does rather improve things than do harm. MPU temperature
will go to about +15 deg C in a Bebop2 at 0 deg C ambient temperature.
Having the gyro/accel calibrated at just below +50 deg C after running
the original Parrot software creates a 30+ deg C change.
2017-03-01 21:53:37 +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
Michal Podhradsky 356062f2f5 [wind_estimator] Typo fix and added link to the Simulink repo 2017-02-28 13:06:43 -08:00
Michal Podhradsky d2cfeb716c [iris] minor config changes 2017-02-28 13:02:56 -08: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
Gautier Hattenberger 5f269044ae [led] fix compilation warning for lisa/l
not a proper DISABLE function, but lisa/l is not really used anyway
2017-02-27 23:42:12 +01:00
Ewoud Smeur 099284f0bb include generated modules to use the module freq 2017-02-27 10:40:01 +01: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
Gautier Hattenberger 63388b2d40 [sbus] support end bytes for SBUS2 2017-02-24 22:01:42 +01:00
Gautier Hattenberger 9f74c89f3b [autopilot] make SetRotorcraftCommand a weak function so it can be redefined 2017-02-24 22:01:42 +01:00
Gautier Hattenberger 6da5030572 Disable all LEDs (#2025)
* [led] add LED_DISABLE option to disable all LED

This is done in most case by setting the GPIO as input with high
impedance.

* [led] remove some old led code for debug in i2c

it was still based on the ST library, not used anymore
2017-02-24 09:33:56 -08:00