Commit Graph
156 Commits
Author SHA1 Message Date
Lorenz Meier 93580da922 commander: Restructure ifdef logic for POSIX build to keep NuttX and POSIX implementations aligned 2015-06-29 16:24:34 +02:00
Lorenz Meier a97931bf20 Update orb advert type in commander, by @boosfelm 2015-06-29 15:46:59 +02:00
Lorenz Meier 454becdae5 Merged release_v1.0.0 branch into master 2015-06-25 21:45:17 +02:00
Lorenz Meier c9fefe236b Merged release into master 2015-06-13 11:06:01 +02:00
Lorenz Meier 92aeef2b84 commander: Better text feedback 2015-06-12 15:57:57 +02:00
Lorenz Meier 086123fe84 Fix RC failsafe handling when landed 2015-06-11 12:40:39 +02:00
Mark Whitehorn 05f935cd77 inhibit more sensor checks 2015-06-06 08:53:56 -06:00
Lorenz Meier 8e935e6fa6 Add new stabilize mode 2015-06-05 22:45:05 +02:00
Lorenz Meier 4565f57468 Merged release_v1.0.0 into master 2015-05-27 15:28:41 -07:00
Mark Charlebois 1ca05aaa64 orb_advert_t changed to void * and checks changed to nullptr
The existing orb_advert_t use thoughout the code sometimes tries
to treat it as a file descriptor and there are checks for < 0
and ::close calls on orb_advert_t types which is an invalid use
of an object pointer, which is what orb_advert_t really is.

Initially I had changed the -1 initializations to 0 but it was
suggested that this should be nullptr. That was a good recommendation
but the definition of orb_advert_t had to change to void * because
you cannot initialize a uintptr_t as nullptr.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-05-27 14:42:49 -07:00
Lorenz Meier 6253f6154f commander: rename field for RC input mode 2015-05-25 16:34:42 +02:00
Lorenz Meier 009815deb0 Improve config and mapping 2015-05-24 20:11:51 +02:00
Lorenz Meier bed746c213 commander: Add param and mode to disable RC input in general and required validation / setup. 2015-05-24 20:11:50 +02:00
Lorenz Meier 9cf1b4ba7a Merge branch 'release_v1.0.0' 2015-05-22 07:24:57 +02:00
Lorenz Meier 9179fcefc9 Calibration state machine fixes, generates less bogus error messages during calibration 2015-05-21 17:25:37 +02:00
Lorenz Meier fb4dc27bc9 commander: Improve user feedback on sensor health, in particular during calibration 2015-05-21 10:27:12 +02:00
Lorenz Meier d906fb8f31 Merged master into linux 2015-05-19 21:00:02 +02:00
Mark Charlebois 9f391b1867 NuttX: fixes for NuttX build
In the upstream tree ringbuffer.h includes the method implementations
in the header file which causes multiple definitions in the link for
other targets. Changed so ringbuffer.cpp is build separately for other
platforms and is included by ringbuffer.h on NuttX.

uORB changes do not link without uORBTest_UnitTest.cpp enabled for
the NuttX build.

px4_getopt was not exported and wasn't visible in NuttX build.

The makefiles were restored to be as close as possible to upstream
so the NuttX build builtin's work again. The code will have to be
refactored after the merge.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-05-15 12:56:18 -07:00
Johan Jansen 510b6124ec Commander: Fix inverted circuit breaker logic 2015-05-14 21:20:05 +02:00
Johan Jansen fee02c6943 Commander: Fix parameter bug in preflight check function 2015-05-14 20:30:10 +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 a57030c836 commander: Do not lock down the system once HIL has kickeed in 2015-04-26 18:27:48 +02:00
Lorenz Meier b07964660e commander: prune old code, do not run preflight checks when nothing relevant in the system is changing. 2015-04-26 17:39:00 +02:00
Lorenz Meier 1b6742cebe commander: Better user feedback after resolving preflight check warnings 2015-04-26 12:04:16 +02:00
Mark Charlebois d913ec8dc9 Changed device::px4_device_handle_t to device::file_t
This change allowed the _posix.cpp file changes to be merged
back into the original files.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-04-24 17:49:35 -07:00
Lorenz Meier 5c4494b1c9 commander: Fixing HIL operation with failing preflight checks 2015-04-24 21:06:45 +02:00
Lorenz Meier 0a526e2a5f commander: Provide feedback that preflight check failed. 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 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 4654d0f4fc Commander: Enter ARMING_STATE_STANDBY_ERROR by default if preflight has failed 2015-04-20 09:14:12 +02:00
philipoe 9a9efdaaa5 commander: Increase timeout on airspeed sensor for the prearm_check 2015-04-07 15:25:45 +02:00
Lorenz Meier e4830eb53f mag detection (sensors / commander): Default all sensors to internal, set the ones which have been found explicitely to zero if they were -1. 2015-02-28 04:01:10 +01:00
Lorenz Meier 807cf7bd16 Commander: Implement calibration routines for multi-sensor setups 2015-02-09 22:56:23 +01:00
Thomas Gubler 2d124852c1 propagate uorb contants change through all modules/drivers 2015-01-28 16:31:41 +01:00
Lorenz Meier 9bb0ecf0ca Airspeed calibration feedback: Improve wording 2014-11-22 15:06:32 +01:00
Julian Oes d63c054bb0 state_machine_helper: changed failsafe behaviour: always require at least one link for default, do RTGS as soon as datalink is lost if datalink loss mode is enabled 2014-11-12 09:48:32 +10:00
Julian Oes 3c9a73f3e4 fixed empty if body 2014-11-11 10:28:24 +10:00
Julian Oes fa5f365882 state_machine_helper: fixed comments 2014-11-11 10:25:53 +10:00
Julian Oes 2c57781581 state_machine_helper: trying to clean up some failsafe logic 2014-11-10 21:40:13 +10:00
Julian Oes f8bed3cd89 state_machine_helper: whitespace 2014-11-10 21:39:35 +10:00
Thomas Gubler e174117698 gps failure has priority over engine falure, in case both fail make sure
that the gps failure mode does not turn on the engine
2014-09-22 10:54:27 +02:00
Thomas Gubler 3d528a2c97 introduce new nav state to allow normal rtl with RC switch 2014-08-26 22:22:59 +02:00
Thomas Gubler e52f7770be Merge remote-tracking branch 'upstream/master' into obcfailsafe 2014-08-24 16:26:42 +02:00
Lorenz Meier 64d3c48770 Add warning for non-standard avionics rail voltages 2014-08-24 13:32:46 +02:00
Lorenz Meier bf8956d2e8 Be only reasonably strict on avionics supply voltage. 2014-08-24 13:26:28 +02:00
Thomas Gubler 3c10b78e20 stae machine helper: remove unnecessary check for RC loss 2014-08-23 14:02:22 +02:00
Thomas Gubler 4d75222b67 switch to rc loss mode if rc loss commanded 2014-08-22 21:41:24 +02:00
Thomas Gubler 760a7ff548 gpsfailure: add skeleton class, activate in commander 2014-08-20 07:45:01 +02:00
Thomas Gubler f480c10282 state machine helper: use stay in failsafe flag 2014-08-16 14:37:46 +02:00