Commit Graph

170 Commits

Author SHA1 Message Date
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
Mark Charlebois 28dd9759a6 POSIX: fixes for use of open vs px4_open, etc
Fixes for the posix build when virtual devices are used.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-07-01 23:51:12 +02:00
Lorenz Meier dfae432f1a commander: Fix mag cal printing 2015-06-27 11:55:02 -07:00
Lorenz Meier 454becdae5 Merged release_v1.0.0 branch into master 2015-06-25 21:45:17 +02:00
Don Gagne 338404b4b3 Change mag cal to 6 orientations 2015-06-25 14:44:24 +02:00
Lorenz Meier 1fdc6a9221 commander: Remove unused min sample dist 2015-06-25 14:44:24 +02:00
Lorenz Meier 4fadb65ac6 commander: Reject mag samples which are on top of each other 2015-06-25 14:44:23 +02:00
Mark Charlebois 36f5d47ed9 Merge remote-tracking branch 'upstream/master' into linux
Signed-off-by: Mark Charlebois <charlebm@gmail.com>

Conflicts:
	src/modules/commander/gyro_calibration.cpp
	src/modules/mavlink/mavlink_ftp.cpp
2015-05-16 15:04:38 -07:00
Lorenz Meier e7c3032218 Mag calibration: Accept less rotation to start the UI, ensure calibration abort does indeed abort. 2015-05-14 17:31:05 +02:00
Lorenz Meier 29eeb724a1 commander: Enforce rotation during mag calibration step 2015-05-08 11:23:19 +02:00
Mark Charlebois 190814bc97 Merge remote-tracking branch 'upstream/master' into linux
Signed-off-by: Mark Charlebois <charlebm@gmail.com>

Conflicts:
	src/drivers/rgbled/rgbled.cpp
	src/modules/commander/PreflightCheck.cpp
	src/modules/commander/airspeed_calibration.cpp
	src/modules/commander/calibration_routines.cpp
	src/modules/commander/gyro_calibration.cpp
	src/modules/commander/mag_calibration.cpp
	src/modules/mc_att_control/mc_att_control_main.cpp
2015-04-28 11:48:26 -07:00
Lorenz Meier 362672ece8 commander: Fix calibration feedback so that QGC picks up all error conditions 2015-04-26 17:33:45 +02:00
Don Gagne a7f88d97b8 Sensor cal rework
- cancel support
- versioned cal messages
- better still detection
- better messaging
2015-04-26 14:34:19 +02:00
Mark Charlebois a1332e699c QuRT and POSIX changes - part 5
Last part of the main QuRT related changes

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-04-24 01:39:25 -07:00
Mark Charlebois 694427e4ba Converted commander to use px4_posix calls
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-04-20 11:37:50 -07:00
Don Gagne bb6b30f57a Report alternate side done 2015-04-03 19:51:58 -07:00
Don Gagne 48e88ec551 Set CAL_MAG_ID correctly 2015-03-28 13:09:07 -07:00
Don Gagne d88916d20e New mag cal changes
- Use new calibrate_from_orientation worker routine to detect
orientaions
- Calibrate all mags at once
- Change to 3-side calibration mechanism
2015-03-28 13:09:07 -07:00
Lorenz Meier 2bddaa9573 commander: Mag calibration: Use c++ syntax for array initialization 2015-03-15 14:33:57 +01:00
Lorenz Meier dc67834222 Mag cal: Add 100% message 2015-03-01 19:04:14 +01:00