Commit Graph

46 Commits

Author SHA1 Message Date
Lorenz Meier ea7ae7d019 Merged beta into master 2015-08-01 16:58:02 +02:00
Lorenz Meier 0321f416a0 Increase allowance for vertical velocity in landed mode 2015-07-19 18:33:14 +02:00
Lorenz Meier 9f322a395e Make land detector more robust during initial spool-up 2015-07-19 18:30:52 +02:00
Lorenz Meier 234990fbe4 Merge branch 'release_v1.0.0' of github.com:PX4/Firmware 2015-07-02 01:00:06 +02:00
Lorenz Meier 5bec38b37d MC land detector: Slightly decrease allowed vertical motion during landed state. This is important so that fast descends do not result in a false positive landed state 2015-06-30 09:51:04 +02:00
Lorenz Meier 5549d480fd MC land detector: Update params and fix docs. Allow more motion during the landed state, but become more picky on throttle. 2015-06-30 09:51:04 +02:00
Lorenz Meier 9a36588361 MC land detector: If no position information is available, rely on the armed state exclusively to infer the landed condition. 2015-06-30 09:51:04 +02:00
Lorenz Meier d19de58102 Merge branch 'master' of github.com:PX4/Firmware into master_release 2015-06-27 11:54:17 -07:00
Ban Siesta b0642f8d32 land_detector: shut up if started correctly 2015-06-28 15:24:48 +01:00
tumbili 40cc11a5ed ported land detector 2015-06-26 15:01:17 +02:00
Lorenz Meier 454becdae5 Merged release_v1.0.0 branch into master 2015-06-25 21:45:17 +02:00
Lorenz Meier 640024357f Land detector: increase ground speed threshold 2015-06-24 17:44:44 +02:00
Lorenz Meier 289ad91bcc Fixed wing land detector: Filter GPS speeds more since they are unreliable, leave airspeed filter where it was 2015-06-24 17:44:11 +02:00
Lorenz Meier c9fefe236b Merged release into master 2015-06-13 11:06:01 +02:00
Lorenz Meier 891829d3a7 Land detector: Protect fixed wing logic from false-positives due to bad input data 2015-06-11 19:25:17 +02:00
Lorenz Meier b7986e6fdd land detector: Improve performance for fixed wing setups 2015-06-06 11:37:10 +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
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
Ban Siesta 11f80ceb64 land_detector: get rid of one dot at a time 2015-05-26 23:04:17 -07:00
Ban Siesta 87f41855fb land_detector: get rid of one dot at a time 2015-05-25 19:01:34 +01:00
Lorenz Meier 073f10fe4f Land detector: Better docs and status feedback 2015-05-24 11:46:25 +02:00
Lorenz Meier 945aa4789b Land detector: Make fixed wing detections more stable with better param 2015-05-24 11:45:42 +02:00
Mark Charlebois c5237f7f6f Removed extra abstracton layer in systemlib
The calls to task_spawn_cmd, kill_all, and systemreset  were wrappers
around the px4_{task_spawn_cmd|kill_all|systemreset} implementations.

Removed the wrappers and changed all calls to the px4_ equivalents.

NuttX specific code was moved into px4_tasks.h

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-05-06 14:43:11 -07:00
Mark Charlebois bf429188b4 Reverted: Use OS independent API for task creation/deletion
Keep existing API use in code. Bind the use of the OS independent
implementation in the systemlib layer.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-04-20 10:49:44 -07:00
Mark Charlebois ddb32742eb Use OS independent API for task creation/deletion
Calls to task_delete and task_spawn_cmd are now
px4_task_delete and px4_task_spawn_cmd respectively.

The px4_tasks.h header was added to the affected files
and incusions of nuttx/config.h were removed.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-04-20 10:49:44 -07: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
Daniel Agar 8aae66b893 trivial code style cleanup round 2 2015-03-27 23:38:58 -04:00
Lorenz Meier 54d2014bd6 Land detector: Adjust stack size of startup handler 2015-03-08 08:14:40 +01:00
Lorenz Meier da5b06a5df land detector: Use less RAM 2015-03-01 18:32:07 +01:00
Vasily Dybala 6d1df8f721 Update land detector parameters at startup. 2015-02-26 23:19:12 +03:00
Johan Jansen 9ddb7e72e4 LandDetector: Check each rotation angle rather than the magnitude 2015-02-09 18:06:29 +01:00
Johan Jansen fe21cb6a1a LandDetector: Fix for land detection without GPS 2015-02-09 18:06:29 +01:00
Johan Jansen e38b25c1f7 LandDetector: Fix default param scale error 2015-02-09 16:52:04 +01:00
Johan Jansen 004118f929 LandDetector: Change rotation rate in rads/s to deg/s (more similar to mpc params) 2015-02-09 12:47:31 +01:00
Johan Jansen 01dc774703 LandDetector: Use vehicle_attitude instead of sensors_combined 2015-02-09 12:42:20 +01:00
Johan Jansen 70e4554f76 LandDetector: Fix parameter swapped bug 2015-02-09 12:42:02 +01:00
Lorenz Meier 378dcc53d6 Code style: minor comment styling 2015-01-17 23:32:00 +01:00
Lorenz Meier b1127315b4 Fixed land detector param names 2015-01-17 23:26:43 +01:00
Johan Jansen 510a314386 LandDetector: Shorter and less ambiguous param names 2015-01-15 14:58:06 +01:00
Johan Jansen 92add9cf80 LandDetector: Externalized algorithm parameters 2015-01-15 14:37:51 +01:00
Johan Jansen e40d207311 AStyle: Fixed file formatting 2015-01-15 14:37:51 +01:00
Johan Jansen f1587da4c4 MulticopterLandDetector: Detect land even if autopilot is not landing 2015-01-15 14:37:51 +01:00
Johan Jansen 1356c44f0e LandDetector: Fix land detection algorithm not being initialized 2015-01-15 14:37:51 +01:00
Johan Jansen 9ea086bf2d Astyle: Run astyle to fix code formatting 2015-01-15 14:37:51 +01:00
Johan Jansen 10a2dd8a34 LandDetector: Merged fixedwing and multicopter into one module handling both algorithms 2015-01-15 14:37:51 +01:00