89 Commits

Author SHA1 Message Date
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
Lorenz Meier
4f666cebe7 Commander: RRelax mag cal requirements and report offsets on failure 2016-02-25 01:49:59 +01:00
Mark Charlebois
fea910d45a Code cleanup and ifdefs required for qurt build
Code that was previously out of tree that was #if 0, is now #ifdef __PX4_QURT.
These changes were required for flight using the qurt build.

Changes include code cleanup for shmem_posix.c.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2016-02-19 16:59:43 +01:00
Lorenz Meier
4f548f328a Set range to 0.9 Ga max since full scale range is 1.3 Ga 2015-12-30 11:54:52 +01:00
Lorenz Meier
3bb733018b Commander: Add range check to mag cal 2015-12-27 01:13:05 +01:00
Lorenz Meier
53ff04e016 Commander: Finish preflight update for prime sensor IDs 2015-10-14 19:35:12 +02:00
Lorenz Meier
e5bb1cff91 Store primary sensor ID to allow cross-check of calibration on next boot 2015-10-14 19:35:12 +02:00
Lorenz Meier
ea7ae7d019 Merged beta into master 2015-08-01 16:58:02 +02:00
Lorenz Meier
0d90cf19dd Mag calibration: Reduce time required to complete calibration significantly 2015-07-20 10:45:15 +02:00
Lorenz Meier
0d37de005b Merged beta to master 2015-07-17 23:42:23 +02:00
Lorenz Meier
ec21a71b36 Commander: increase mag cal timeout 2015-07-17 23:41:00 +02:00