Commit Graph
1313 Commits
Author SHA1 Message Date
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 c402d0c2f7 Commander: updated mag calibration routine, matlab script updates 2015-06-25 14:44:24 +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
Lorenz Meier 82f3d4e877 commander: Fix mavlink output 2015-06-22 09:58:01 +02:00
Mark Charlebois 785053e4f1 px4_log: reverted unused attribute annotations
Used a do_nothing() function for px4_omit() that will satisfy the
compiler so it will not report unused variables when a debug
message is compiled out.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-06-18 07:41:22 -07:00
Mark Charlebois 29a36da22c px4_log: Added documentation and handled unused variables
Added __attribute__ ((unused)) for variables used only for log
output and flagged as unused if the message log level is compiled out.

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