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
Mohammed Kabir
6a818ae053
commander : ignore handling camera_trigger command
2015-06-16 15:47:55 +05:30
Lorenz Meier
b11e133318
Evaluate warning field from mission result
2015-06-15 17:28:05 +02:00
Lorenz Meier
b5a79bbc0b
commander: Use distinct tunes for home set and mission ok / failed
2015-06-15 17:28:05 +02:00
Lorenz Meier
a4b2389460
Commander: Support new mission status
2015-06-15 17:28:05 +02:00
Lorenz Meier
82352a64aa
commander: Remove unused param handles
2015-06-14 19:36:29 +02:00
Lorenz Meier
b6d9a97aaa
Merge pull request #2349 from PX4/auto_takeoff_fix
...
FW: Auto takeoff fix
2015-06-14 10:45:10 +02:00
Lorenz Meier
c9fefe236b
Merged release into master
2015-06-13 11:06:01 +02:00
Lorenz Meier
f9f34078d1
commander: Ensure RTL can be triggered in all modes
2015-06-13 00:16:25 +02:00
Lorenz Meier
3f77455dd8
commander: Condition HIL arming check properly
2015-06-12 15:58:21 +02:00
Lorenz Meier
92aeef2b84
commander: Better text feedback
2015-06-12 15:57:57 +02:00
tumbili
7e44a23411
fix: take current trim values into account when doing trim calibration
2015-06-12 13:59:25 +02:00
Lorenz Meier
f2b81ce69a
commander: Only update home position if not armed already
2015-06-11 17:03:12 +02:00
Lorenz Meier
ac084ae3d0
Merge pull request #2293 from kd0aij/HIL_inhibitSensorCheck
...
special treatment and warning message for HIL platform arming
2015-06-11 15:22:21 +02:00
Lorenz Meier
086123fe84
Fix RC failsafe handling when landed
2015-06-11 12:40:39 +02:00
Mark Whitehorn
7e48c66c22
add is_hil_setup()
2015-06-10 12:13:49 -06:00
Mark Whitehorn
71da3976ab
add HIL autostart ID range macros and remove warnx
2015-06-10 12:13:49 -06:00
Mark Whitehorn
e224441ac1
special treatment and warning message for HIL platform arming
2015-06-10 12:13:49 -06:00
tumbili
45cd05b57a
invert pitch trim parameter
2015-06-10 17:06:42 +02:00
Lorenz Meier
8a3d3f61e6
commander: Better error handling for RC trim
2015-06-09 23:08:49 +02:00
Lorenz Meier
900c81e67c
commander: Compile fix for home init on arming via CMD
2015-06-08 17:18:25 +02:00
Lorenz Meier
0aa47236bf
commander: Only print reject mode message every 10 seconds. Set home position also if armed via command. Warn that arming via shell does not set home position.
2015-06-08 16:48:50 +02:00
Lorenz Meier
9bbb315144
commander: Print home position
2015-06-08 15:19:41 +02:00
Lorenz Meier
02efa5a24c
commander: Better text feedback
2015-06-06 22:14:10 +02:00
Mark Whitehorn
05f935cd77
inhibit more sensor checks
2015-06-06 08:53:56 -06:00
Lorenz Meier
ab61ebca2a
Revert "commander: Allow to disarm via switch in HIL"
...
This reverts commit 6ed43cb3a4 .
2015-06-06 11:37:10 +02:00
Lorenz Meier
6ed43cb3a4
commander: Allow to disarm via switch in HIL
2015-06-06 09:46:09 +02:00
Lorenz Meier
7b36353e52
Merge pull request #2289 from kd0aij/HIL_inhibitSensorCheck
...
Hil inhibit sensor check
2015-06-06 09:39:34 +02:00
Mark Whitehorn
9588e6fc68
whitespace
2015-06-05 21:23:35 -06:00
Mark Whitehorn
e9634fbe47
suppress preflight check failure for HIL autostart_ids
2015-06-05 21:18:25 -06:00
Lorenz Meier
7f07e4306a
commander: Fix non-existing middle switch position for acro switch
2015-06-05 22:45:07 +02:00
Lorenz Meier
4594945d57
commander: Forbid override in stabilized mode
2015-06-05 22:45:06 +02:00
Lorenz Meier
8e935e6fa6
Add new stabilize mode
2015-06-05 22:45:05 +02:00
Lorenz Meier
db3ac5f3ac
commander: Compile fix
2015-05-30 19:06:05 -07:00
Lorenz Meier
164a1178b8
commander: Be more verbose about low battery warnings, do not trigger low battery warning sound in HIL
2015-05-30 18:43:25 -07:00
Lorenz Meier
c18210b163
commander: Update command names
2015-05-27 15:21:33 -07: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
Mark Charlebois
a734fc96d1
extensive orb_advert_t fixes
...
The calls to orb_advertise were being mishandled throughout the code.
There were ::close() calls on memory pointers, there were checks
against < 0 when it is a pointer to a object and values larger than
0x7ffffffff are valid. Some places orb_advert_t variables were
being initialized as 0 other places as -1.
The orb_advert_t type was changed to uintptr_t so the pointer value
would not be wrapped as a negative number. This was causing a failure
on ARM.
Tests for < 0 were changed to == 0 since a null pointer is the valid
representation for error, or uninitialized.
Signed-off-by: Mark Charlebois <charlebm@gmail.com >
2015-05-27 14:41:33 -07:00
Lorenz Meier
6253f6154f
commander: rename field for RC input mode
2015-05-25 16:34:42 +02:00
Lorenz Meier
81240d6040
commander: Initial RC detection is only an info string
2015-05-24 23:31:58 +02:00
Lorenz Meier
009815deb0
Improve config and mapping
2015-05-24 20:11:51 +02:00
Lorenz Meier
01fd84e4dc
mavlink and commander app: Add support for manual input, either directly or via remote control
2015-05-24 20:11:50 +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
335b212f92
commander: Better update logic, better feedback text for landings
2015-05-24 11:43:18 +02:00
Lorenz Meier
071d22a49a
commander: Update ESC calibration to match QGC
2015-05-23 09:54:55 +02:00
Don Gagne
7f5a5e085c
Add "calibrate esc" command
2015-05-22 22:27:43 +02:00
Don Gagne
fe357a9a66
Separate timeouts for battery and high pwm
2015-05-22 11:24:07 -07:00
Don Gagne
25e7a1a49e
ESC calibration re-work
...
- Uses standard QGC cal mavlink messaging
- Timeout if no battery connect
- Better error handling and cleanup
2015-05-22 09:29:59 -07:00
Don Gagne
a6af1fc0fa
Add "calibrate esc" command
2015-05-22 09:28:52 -07:00