Commit Graph

185 Commits

Author SHA1 Message Date
Andreas Antener
eb5b8a32ee transition alignment will force heading now and go to RTL if it cannot reach it in time, handle mission failure correctly, reset after mission update, issue message with actual problem 2016-02-15 23:29:38 +01:00
sander
d5eae460c0 VTOL transition failsafe RTL 2016-02-10 16:30:57 +01:00
Lorenz Meier
19b81b9ab2 Commander: Rate-limit preflight check 2016-01-22 11:31:39 +01:00
Andreas Antener
fbf42c8949 added auto takeoff support, updated configuration for solo and generalized landing mission items 2015-12-28 15:21:50 +01:00
Lorenz Meier
e715610887 Be more forgiving on avionics power voltage 2015-12-07 11:41:01 +01:00
Lorenz Meier
a242c0ff6d Commander: Add takeoff command handler. Do not check RC config in SITL RC mode 2015-11-20 11:15:17 +01:00
Lorenz Meier
75e962ee7c Merged master into driver_framework 2015-11-20 09:14:37 +01:00
Mark Charlebois
34410e7ce4 Changes for updated DriverFramework
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-11-19 19:03:10 -08:00
Lorenz Meier
7a5391a723 Commander: Fix preflight check reporting and simplify logic 2015-11-19 18:28:16 +01:00
Lorenz Meier
f2b988dcaa Fix error reporting logic 2015-11-19 17:48:39 +01:00
Lorenz Meier
173edcef63 Commander: Fix reporting in presence of no telemetry link 2015-11-19 16:33:56 +01:00
Lorenz Meier
092a51426f Build fix and airspeed console cal 2015-11-17 12:59:45 +01:00
Lorenz Meier
0509a5a9ea Enforce airspeed check for VTOLs 2015-11-17 12:35:24 +01:00
Mark Charlebois
618626103f Use DevMgr::getNextDevicePath()
Also, a fix for number of args passed for accelsim.

Updated to newest version of DriverFramework.

DF drvices show up now in list_devices

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-11-16 16:57:57 -08:00
Mark Charlebois
dbe3b0e52b Re-enabling code to handle DF framework
Updated to latest DriverFramework and changed ioctl args to
unsigned int from void *.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-11-16 13:51:39 -08:00
Lorenz Meier
ff88fc00c0 Commander: Preflight check reporting cleanup, add USB breaker 2015-11-14 15:02:56 +01:00
Lorenz Meier
cc8f159bcc REVERT THIS COMMIT LATER: Temporarily disable the device listing 2015-11-12 15:31:38 +01:00
Kabir Mohammed
5fcfdb759c commander : hotplug sensor support, better failure reporting 2015-11-11 15:53:44 +05:30
Mark Charlebois
efd9995a10 Ported more simulated sensors to DriverFramework
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-11-10 07:45:13 -08:00
Roman Bapst
2cf9294c68 Merge pull request #3053 from PX4/usb_enforce
Commander: prevent the user from arming the system with USB
2015-10-30 17:51:41 +01:00
Eddy Scott
c4a82d78c8 Added commander support for rattitude mode. Still need to incorporate attitude/rate switching in multicopter control 2015-10-28 08:37:12 -04:00
Lorenz Meier
55cf08d383 Commander: prevent the user from arming the system when USB was ever connected 2015-10-23 17:47:22 +02:00
Lorenz Meier
ccf19d12f2 Commander: Provide better status feedback for sensor init / check routine 2015-09-26 17:20:08 +02:00
Lorenz Meier
996a6ee437 Commander: Do not lock in user on a single boot assignment failure 2015-09-23 18:36:29 +02:00
Lorenz Meier
067c0fd328 Commander: Add required POSIX header 2015-09-20 10:58:04 +02:00
Lorenz Meier
849b61213c commander: Remove unused error variable 2015-09-12 10:51:52 +02:00
Lorenz Meier
be92c1189b Fix handling of RC mode selection 2015-09-04 19:57:44 +02:00
Lorenz Meier
509ec90b76 Merge pull request #2406 from mcharleb/logging-v3
Improved logging with both compile and runtime level filtering
2015-07-01 23:31:50 +02:00
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
Mark Charlebois
1a8703ec1c Improved logging with both compile and runtime level filtering
The device level debug will have to be removed and the debugging
can be based on this new logging structure which can tell where
an error (or debug output) occured whch the current implmentation
cannot.

The one limitation is the new macros cannot take a char* for the
format parameter. It must be an actual string literal because it
is concatenated with other strings.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-06-17 13:28:27 -07: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