Commit Graph

99 Commits

Author SHA1 Message Date
Daniel Agar f396224d41 mag calibration add notifications to rotate 2017-07-08 21:54:04 +02:00
davidaroyer 99799d83b1 ocpoc support: update copyright dates 2017-06-04 04:24:50 +08:00
Mohammed Kabir ed5cf9f729 commander : simplify platform defines 2017-05-27 00:31:05 +02:00
Mohammed Kabir 302e2372cf mpu9250 : fill correct device ID into uORB topic 2017-05-27 00:31:05 +02:00
Mohammed Kabir d7611cac89 commander : make mag calibration correctly lock-in to corresponding uORB topic 2017-05-27 00:31:05 +02:00
Paul Riseborough 6473f1458f commander: reset learned ekf2 mag biases when performing a mag cal
The learned ekf2 mag bias values are invalidated when the sensor calibration is updated and must be reset.
2017-05-03 08:37:14 +02:00
Mohammed Kabir 74f4f72a4c commander : add support for calibrating 4 magnetometers 2017-04-24 12:24:11 +02:00
Mohammed Kabir 9909a373b0 commander : warn if more than 4 mags are connected 2017-04-24 12:24:11 +02:00
Beat Küng 43afb8d41e sensor calibration: remove param_save_default() calls 2017-04-06 11:49:03 +02:00
Daniel Agar e927f3e040 clang-tidy modernize-use-nullptr 2017-02-01 22:15:50 -05:00
pixhawk ef2a5599a1 mag_calibration: Make sure calibration fails if any mag fails; More checks on calibration results 2017-02-01 08:38:26 +01:00
pixhawk 5c96c8c1b3 Removed std::fill_n since it is not supported 2017-02-01 08:38:26 +01:00
pixhawk 9fe65d0957 Fix array initialization bug 2017-02-01 08:38:26 +01:00
Siddharth Bharat Purohit 78b8deda15 commander: add ellipsoid 9 param fit for magnetometer corrections 2017-02-01 08:38:26 +01:00
Siddharth Bharat Purohit c9ac15f0dd commander: fix code style 2017-02-01 08:38:26 +01:00
Siddharth Bharat Purohit f811777789 commander: add new math for sphere fit for compass calibration 2017-02-01 08:38:26 +01:00
Beat Küng 241fd629ce ERROR macro: get rid of the many 'oddly, ERROR is not defined for c++', use PX4_ERROR 2016-09-30 13:50:51 +02:00
Michael Schaeuble 8351afdca8 Initialize mag scaling with reasonable defaults 2016-08-05 10:15:11 +02:00
Michael Schaeuble 6aa8fcdf53 Enable commander module for Parrot Bebop 2016-08-05 10:15:11 +02:00
Julian Oes fa614a3cc1 RPi: just use RPI instead of RPI2.
The reason for this change is that RPi2 and RPi3 are compatible, and
hopefully all differences coming up can be resolved without ifdefs but
at runtime.
2016-07-16 15:51:00 +01:00
Miguel Arroyo 3c11c0d8d8 Adds Calibration Support for RPi2 and Navio2 (#4999) 2016-07-07 22:38:17 +02:00
Lorenz Meier 56ddd29f1a Commander: Update params on last step of mag cal 2016-06-22 16:03:01 +02:00
Lorenz Meier 0917a346e4 Mag cal: allow 6, 3 and 2 side calibrations (and anything in-between with bitfields) 2016-05-09 00:32:54 +02:00
Daniel Agar 7aa6e85563 enable Wshadow 2016-05-05 13:32:42 +02:00
Lorenz Meier e7b23a557a Mag cal: Require only three sides, robustify output. 2016-04-30 09:16:12 +02:00
Julian Oes 92afa7c258 mag_calibration: bugfix for device ID of mag
The device ID is defined as a uint32_t in the driver and topic but
stored as a int32_t param. It is therefore sufficient if the device ID
is not 0 in order to be valid.
2016-04-24 17:07:37 +02:00
Lorenz Meier 34a9449df9 Include cal status data for mag 2016-04-09 18:00:38 -07:00
Lorenz Meier 224aaeddfe Harden calibration experience on master 2016-04-09 13:44:53 -07:00
Lorenz Meier d9b32221e7 Commander: Reduce mag output 2016-04-09 11:53:44 -07:00
Lorenz Meier 275fe8ee2d Play safe with calibration done messages 2016-04-09 11:50:50 -07:00
Lorenz Meier 9fdbaa5a22 Mag cal 2016-04-06 14:30:51 -07:00
Lorenz Meier 6d24e33819 Commander: Space out mag feedback further 2016-04-06 14:23:49 -07:00
Julian Oes 8707cfe9f2 commander: use macro with wait in all calibrations 2016-04-05 15:36:03 -07:00
Julian Oes 1fc9b99307 commander: some rebase fixes 2016-03-24 13:10:02 +01:00
Julian Oes bba0d0384d drivers/modules: changes after mavlink_log change
The mavlink_log API changes lead to changes in all drivers/modules using
it.
2016-03-24 13:10:02 +01:00
Julian Oes 790fa7667c commander: cherry-pick fixes 2016-03-24 13:08:31 +01:00
Julian Oes 88a812618c commander: fix the calibration for NuttX.
This fixes some regressions on the calibration using NuttX, especially
considering the PRIME param and the device ids.
2016-03-24 13:08:31 +01:00
Julian Oes d0e9ec0c67 commander: get PRIME parameter back
The PRIME param got lost on the way of the refactoring.
2016-03-24 13:08:31 +01:00
Julian Oes e949d6d18a commander: get PRIME parameter back
The PRIME param got lost on the way of the refactoring.
2016-03-24 13:08:31 +01:00
Julian Oes 10ce1c19a2 mag_calibration: small fix for non QURT 2016-03-24 13:08:31 +01:00
Julian Oes 1b5210ca13 sensors/calibration: use params in DF wrappers
Instead of using a uORB topic with the calibration values published in
sensors and consumed by the DriverFramework driver wrappers, let's just
use the the params directly. This is quite a rough change and needs
definitely some cleanup and refactoring.
2016-03-24 13:08:31 +01:00
Julian Oes b9cc0b74e2 drivers: re-use calibration topic
E.g. instead of defining a gyro_scale struct in drv_gyro.h, use the
gyro_calibration message.
2016-03-24 13:08:30 +01:00
Julian Oes 98e407696e commander: whitespace only
Trailing whitespace all over.
2016-03-24 13:08:30 +01:00
Mark Whitehorn 8e4a1ca36e change large mag offset from error to warning 2016-03-11 13:58:26 -07:00
Lorenz Meier f34f5c4f5a Mag: Shift output argument 2016-03-02 02:37:23 +01:00
Lorenz Meier 4185d0ae41 Better error reporting on mag failure 2016-03-02 02:12:48 +01:00
Lorenz Meier 984f07d8c4 Commander: Relax mag offset to maximum 2016-03-02 02:03:12 +01:00
Lorenz Meier 3575984f59 Mag cal: Be more specific which unit failed 2016-02-26 09:24:18 +01:00
Lorenz Meier ae90084977 Fix build error 2016-02-25 02:17:00 +01:00
Lorenz Meier 0a8a75af1f Commander: Provide better calibration errors 2016-02-25 01:56:17 +01:00