21349 Commits

Author SHA1 Message Date
Beat Küng
5c2fa034da load_mon: rename low_stack -> task_stack_info & always publish it
- use uorb queue to not drop any info, only do 2 tasks per cycle
- also print a warning on low stack (which will be added to ulog)

this allows to gather statistics of each task's stack usage over time.
2017-02-04 12:15:59 +01:00
Beat Küng
c02f1946eb load_mon: fix stack check: use up_check_tcbstack_remain()
The previous method did not work anymore since the NuttX upgrade.
2017-02-04 12:15:59 +01:00
Lorenz Meier
0e64f8c288 Matrix update with CLANG compile fix 2017-02-04 11:21:38 +01:00
Lorenz Meier
1b01546d4b Revert "Update matrix lib"
This reverts commit d75024b987cc047b32d08c48597cc13385993709.
2017-02-04 11:14:42 +01:00
Lorenz Meier
d75024b987 Update matrix lib 2017-02-04 10:42:47 +01:00
Lorenz Meier
bf26bec46c Fix gyro init 2017-02-04 10:38:11 +01:00
Lorenz Meier
72156fe9c1 Temp cal: Fix matrix initialization 2017-02-04 08:54:15 +01:00
Lorenz Meier
51e156e1f4 Code style fix 2017-02-04 08:54:00 +01:00
Stephan Brown
54cc212d46 test_autodeclination: Add world endpoints to test. 2017-02-04 08:52:04 +01:00
Stephan Brown
0d219caae3 geo_mag_declination: Fix interpolation when inputs are outside of sampling min and max. 2017-02-04 08:52:04 +01:00
Stephan Brown
20e7bd082a unittests: Remove geomag tests which are now covered in systemcmds tests. 2017-02-04 08:52:04 +01:00
Stephan Brown
614853b023 test_autodeclination: Update mag declination test value. 2017-02-04 08:52:04 +01:00
Stephan Brown
bb0d01d812 geo_mag_declination: Update declination values according to 2015 NOAA data. 2017-02-04 08:52:04 +01:00
Stephan Brown
fc34eef53a unittests: Add unittests for geo_mag_declination. 2017-02-04 08:52:04 +01:00
Stephan Brown
ab9fa59dd2 geo_mag_declination: Fix table bounds checking. 2017-02-04 08:52:04 +01:00
Daniel Agar
384e3bb693 meas_airspeed status aspd_com_err 2017-02-04 08:47:37 +01:00
Beat Küng
d3f71454cc posix_sitl_default.cmake: add modules/events
It's not used yet, just to make sure it compiles fine.
2017-02-03 13:57:48 +01:00
Beat Küng
0d000173b5 l3gd20 selftest: don't check for 0 offset
If temperature compensation is enabled, the offset will be 0
2017-02-03 13:57:48 +01:00
Beat Küng
32ed939ea4 param_shmem: readd dropped static to function definition 2017-02-03 13:57:48 +01:00
Beat Küng
ea4d3d970b temperature_calibration: make sure to save the params after the process 2017-02-03 13:57:48 +01:00
Beat Küng
6583f73cfa temperature_calibration: reduce code duplication by adding a TemperatureCalibrationCommon class 2017-02-03 13:57:48 +01:00
Beat Küng
38b4984c36 temperature_calibration: make sure to call orb_unsubscribe() when objects are destroyed 2017-02-03 13:57:48 +01:00
Beat Küng
980c3bc6a7 temperature_calibration: notify system about param changes 2017-02-03 13:57:48 +01:00
Beat Küng
b89b76fbe6 gyro_calibration: use param_notify_changes 2017-02-03 13:57:48 +01:00
Beat Küng
3eecd16309 accelerometer_calibration: use param_notify_changes 2017-02-03 13:57:48 +01:00
Beat Küng
a802caca87 param: add param_notify_changes() method
Can be used for example after several calls to
param_set_no_notification() to avoid unnecessary system notifications,
as it is an expensive change.
2017-02-03 13:57:48 +01:00
Beat Küng
4b8e6cf9cd temperature_calibration: make sure to always do an orb_copy() even when already finished
... since we do poll() on the gyro fd.
2017-02-03 13:57:48 +01:00
Beat Küng
d2dd61dfbd temperature_calibration: make sure to report an error only once 2017-02-03 13:57:48 +01:00
Simone Guscetti
fe53e3a0d5 commander: add status_changed when battery is low 2017-02-03 13:53:51 +01:00
Beat Küng
c4a8aa9c68 temperature_calibration: refactor to separate code & reduce code duplication 2017-02-02 23:54:06 +01:00
Beat Küng
b6f3cf9425 events: refactor temperature_calibration command to take options and use a single vehicle_command
This makes it easier to start calibration for all sensors at once.
2017-02-02 23:54:06 +01:00
Beat Küng
603cd1e6dc refator events: move temperature calibration implementation into subdirectory 2017-02-02 23:54:06 +01:00
Paul Riseborough
b36e65fd6d events: Improve consistency of console messages 2017-02-02 23:54:06 +01:00
Paul Riseborough
9e219fba0c events: make required temp rise for calibration adjustable 2017-02-02 23:54:06 +01:00
Paul Riseborough
4ff5e7c5ab systemlib 2017-02-02 23:54:06 +01:00
Paul Riseborough
8001db257c ROMFS: enable auto start of thermal calibration 2017-02-02 23:54:06 +01:00
Paul Riseborough
8aa91512e9 systemlib: Add parameters to control thermal calibration startup behaviour 2017-02-02 23:54:06 +01:00
Paul Riseborough
f86347f1e2 Tools: Enable offline calibrator to handle less than 3 inertial sensors 2017-02-02 23:54:06 +01:00
Paul Riseborough
4d163eebb9 events: Add accelerometer and baro thermal calibration 2017-02-02 23:54:06 +01:00
Paul Riseborough
f0c456dd54 events: give gyro cal unique names in preparation for other sensor types 2017-02-02 23:54:06 +01:00
Matthias Grob
9e80a6c9d6 sensors: rc filter no unstable cutoff, better initialisation, reset filter on change, constrain output
Filter gets unstable if cutoff is above sample rate/2.
Filter initial frequencies do not matter a lot because they get replaced by parameters anyways.
Filter delay values get reset to 0 when the filter is reconfigured otherwise there can be some weird spikes in the output.
Filter output gets constrained to the range again because of possible overshoot.
2017-02-02 21:24:05 +01:00
Matthias Grob
81dcba3a2a sensors: rc added low pass filter parameters 2017-02-02 21:24:05 +01:00
Matthias Grob
c2be4b2b29 mc_pos_control: added exponential curve to manual x,y velocity setpoint
controlled by parameter MPC_XY_MAN_EXPO that is disabled (0) by default
2017-02-02 21:24:05 +01:00
Matthias Grob
661832ca1d mathlib: added exponential curve function 2017-02-02 21:24:05 +01:00
Matthias Grob
d991285406 sensors: rc filter: added sample rate of 33.3Hz and lowpass cutoff 5Hz hardcoded for testing 2017-02-02 21:24:05 +01:00
Matthias Grob
27a4ce2691 sensors: rc added lowpass filters to the 4 main channels without useful samplerate and cutoff frequency yet 2017-02-02 21:24:05 +01:00
Matthias Grob
a14dbdcfdb sensors: rc refactored min max ifs to constrain 2017-02-02 21:24:05 +01:00
David Sidrane
9527dd7714 Add auav-x21_default to the qgc firmware for distribution 2017-02-02 14:39:43 +01:00
Beat Küng
3dc6e7b574 LandDetector: use a 64bit counter for total system flight time
The previous 32bit counter wrapped in ~1.19h, this switches to 2 32bit
counters, wrapping in 584942 years.
2017-02-02 09:22:25 +01:00
Beat Küng
05b649cc86 LandDetector: fix total system flight time (landed & takeoff logic) 2017-02-02 09:22:25 +01:00