Commit Graph

733 Commits

Author SHA1 Message Date
Lorenz Meier 75df06bc76 commander: Better text feedback in preflight-check 2015-04-25 09:43:54 +02:00
Lorenz Meier 5c4494b1c9 commander: Fixing HIL operation with failing preflight checks 2015-04-24 21:06:45 +02:00
Roman Bapst 5b772e5720 update vehicle status before doing preflight checks 2015-04-22 13:32:09 +02:00
Lorenz Meier 5e584c2942 commander: Better low battery failure feedback 2015-04-22 09:27:03 +02:00
Lorenz Meier 5a8eca75bf Commander: Fix RTL mode switch logic 2015-04-21 06:54:16 +02:00
Lorenz Meier b9d17241a3 RTL mode switching: Allow to flick to RTL in any mode. 2015-04-21 06:54:15 +02:00
Lorenz Meier 0a526e2a5f commander: Provide feedback that preflight check failed. 2015-04-20 09:14:14 +02:00
Lorenz Meier 17e487cad4 Update commander test suite 2015-04-20 09:14:14 +02:00
Lorenz Meier c92afb99b6 Prearm check: provide user instruction to power cycle if things look good 2015-04-20 09:14:14 +02:00
Lorenz Meier 554719c78f Harmonize preflight and prearm checks, run same code except for dynamic range check only on arming 2015-04-20 09:14:13 +02:00
Lorenz Meier 4f0896b105 commander tests: Update test routine to match expected / designed error handling behaviour 2015-04-20 09:14:13 +02:00
Lorenz Meier 7dbb6c4fa8 Commander: Improved preflight check routines. Running checks on all connected sensors. Re-run checks once GCS is connected. 2015-04-20 09:14:13 +02:00
Johan Jansen 7a4ac0ad7f Commander: Ignore sensor status on in-air restore 2015-04-20 09:14:13 +02:00
Johan Jansen 4654d0f4fc Commander: Enter ARMING_STATE_STANDBY_ERROR by default if preflight has failed 2015-04-20 09:14:12 +02:00
Johan Jansen b70138c631 Commander: Re-run preflight check after calibration 2015-04-20 09:14:12 +02:00
Johan Jansen c5a178a777 Commander: Play startup tune if preflight checks are good, play alarm otherwise 2015-04-20 09:14:12 +02:00
Johan Jansen 6f338eb1b2 Commander: Run preflight check on boot 2015-04-20 09:14:12 +02:00
Johan Jansen fde244f903 Commander: Add PreflightCheck to the commander 2015-04-20 09:14:12 +02:00
Lorenz Meier 1da048549a commander gyro cal: Optimize parameter set calls and allow up to 0.0055 rad/s deviation - tuned to allow in-field calibration, but fail anyone really rotating during the step 2015-04-19 16:06:52 +02:00
Lorenz Meier 1685f77031 Loosen the thresholds on gyro calibration based on in-field calibration feedback 2015-04-19 15:36:02 +02:00
Daniel Agar 2e824bbeea fix incorrect argc < 1 check for no arguments
-requiring arguments should be argc < 2
2015-04-18 12:02:58 +02:00
Don Gagne 05c351183f Parameter meta data fixes 2015-04-15 11:29:37 -07:00
Don Gagne 3dc8cf8769 Clean up parameter meta data as needed by QGC 2015-04-14 23:26:14 -07:00
Lorenz Meier 2d985dbed3 commander: Set param autosave to on by default 2015-04-10 17:32:09 +02:00
Thomas Gubler a872b69df1 add parameter to control autosave of parameters 2015-04-10 17:30:22 +02:00
Thomas Gubler f6f8d646d1 commander: rename variable to avoid confusion with parameter 2015-04-10 17:30:22 +02:00
Thomas Gubler 7a2bb7c03a commander: fix whitespace 2015-04-10 17:30:22 +02:00
philipoe 9a9efdaaa5 commander: Increase timeout on airspeed sensor for the prearm_check 2015-04-07 15:25:45 +02:00
Lorenz Meier 26ccac347d commander: Go only into armed error state if on low battery and disarmed 2015-04-04 10:18:40 +02:00
Lorenz Meier 64cdcfc0cc Fix detection of USB connected state. Needs bench test without USB 2015-04-04 10:15:46 +02:00
Don Gagne bb6b30f57a Report alternate side done 2015-04-03 19:51:58 -07:00
Lorenz Meier 17ee20a338 commander: Improve gyro cal 2015-03-28 16:44:26 -07:00
Lorenz Meier cb99467cde commander: Remove unnessary sleep 2015-03-28 14:00:17 -07:00
Lorenz Meier 8ebf9755e4 commander: Fix battery config 2015-03-28 13:54:05 -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
Don Gagne 716fb561aa Include sensor number 2015-03-28 13:09:07 -07:00
Don Gagne 9d61e3a7db Use new calibrate_from_orientation api 2015-03-28 13:09:07 -07:00
Don Gagne fdc053e883 Add sensor number to messages 2015-03-28 13:09:07 -07:00
Don Gagne eff3d9d713 New worker routines for orientation detection 2015-03-28 13:09:07 -07:00
Lorenz Meier a098ca4ec6 Move autosave into the 1-second timeout check. 2015-03-28 13:07:01 -07:00
Lorenz Meier f8fd67d3e1 Auto-save parameters on change 2015-03-28 13:07:01 -07:00
Daniel Agar 8aae66b893 trivial code style cleanup round 2 2015-03-27 23:38:58 -04:00
Daniel Agar c2abb0f82a fix code style if trivial one line difference 2015-03-19 23:49:36 +01:00
dogmaphobic b78a021fb9 Adding a few missing units to the Battery Calibration group. 2015-03-19 12:07:15 -04:00
Lorenz Meier ad54ff616d commander: Increase frame size limit 2015-03-15 17:24:50 +01:00
Lorenz Meier 904fc9b21c commander: Improve gyro calibration 2015-03-15 17:24:29 +01:00
Lorenz Meier 37de377dcf commander: Increase stack size for low prio task to accomodate accel cal. 2015-03-15 17:24:11 +01:00
Lorenz Meier 1e54dc4409 commander: Accel calibration: Reduce memory footprint, be more responsive 2015-03-15 17:23:48 +01:00
Lorenz Meier 2bddaa9573 commander: Mag calibration: Use c++ syntax for array initialization 2015-03-15 14:33:57 +01:00