61 Commits

Author SHA1 Message Date
Daniel Agar
89ff9f1fe3 cmake fmu-v3 fix and enable more examples
- sync posix_sitl_default and px4fmu-v4pro/v5 with fmu-v3
 - fixes #6667
2017-03-11 11:40:14 +01:00
Lorenz Meier
4653a7f883 Bottle drop: fix headers 2016-12-27 21:00:51 +01:00
Lorenz Meier
2dad43549d Bottle drop: Fix uninitialized member 2016-05-21 14:10:31 +02:00
Daniel Agar
76387b1693 uorb autogeneration 2016-05-14 11:27:07 +02:00
Julian Oes
bba0d0384d drivers/modules: changes after mavlink_log change
The mavlink_log API changes lead to changes in all drivers/modules using
it.
2016-03-24 13:10:02 +01:00
Lorenz Meier
437c494548 bottle drop: Fix code style 2015-09-05 22:16:25 +02:00
Lorenz Meier
dfdc2c999d Bottle drop: Fix mavlink output 2015-06-22 09:57:49 +02:00
Lorenz Meier
4565f57468 Merged release_v1.0.0 into master 2015-05-27 15:28:41 -07:00
Lorenz Meier
c5bf6765d2 bottle_drop: Update command names 2015-05-27 15:21:33 -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
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
9758112e31 Use px4_config.h instead of nuttx/config.h
Modified code to use OS independent header file for config settings.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-04-20 10:55:41 -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
Thomas Gubler
14aa5f9441 add topic header includes 2015-01-25 15:00:35 +01:00
Thomas Gubler
f4e0dc2857 Merge remote-tracking branch 'upstream/master' into dev_ros
Conflicts:
	.gitmodules
2014-12-29 08:00:12 +01:00
Daniel Agar
d511e39ea7 turn on -Werror and fix resulting errors 2014-12-22 17:56:59 -05:00
Thomas Gubler
9520983e08 lots' of header juggling and small changes to make mc att control compile for NuttX and ROS 2014-12-16 08:24:51 +01:00
Lorenz Meier
41fe04776f Fix up stack sizes 2014-11-17 14:59:36 +01:00
Lorenz Meier
1fc7b58894 Bottle drop: Less chatty 2014-11-15 16:54:47 +01:00
Lorenz Meier
e65ec1b98b bottle drop: Be less aggressive about scheduling 2014-09-21 13:50:43 +02:00
Julian Oes
f681c6b5a3 bottle_drop: don't talk about distance and error 2014-09-20 22:37:10 +10:00
Julian Oes
6aee0baa30 Merge pull request #12 from swissfang/bottledrop
Drop at the exact timing, drop only if facing into the right direction
2014-09-20 19:07:34 +10:00
Lorenz Meier
6791ab72a9 Run faster for better accuracy. 2014-09-11 01:06:30 +02:00
Lorenz Meier
1512bf727c Remove useless modulo throttling, which is a nice source of potential non-trivial non-determinism / timing issues. 2014-09-11 01:04:02 +02:00
Lorenz Meier
bc880a3ff9 Fix dt calculation which is used to calculate correct drop time. 2014-09-11 01:02:35 +02:00
Lorenz Meier
cb11d1f99e Better message formatting 2014-09-06 12:00:37 +02:00
Lorenz Meier
3834796ce9 More user feedback on approach angle and approach error. Fix check for approach error 2014-09-06 11:39:56 +02:00
Lorenz Meier
960587b10f Drop at the exact timing, drop only if facing into the right direction 2014-09-06 11:03:32 +02:00
Lorenz Meier
5134015800 always obey commands in bottle drop 2014-09-03 18:15:12 +02:00
Lorenz Meier
706e5809a1 Fix variable name in param 2014-08-31 17:02:33 +02:00
Lorenz Meier
056693df44 Add drag coefficients to adjust bottle drop to other objects to ease testing 2014-08-31 15:55:03 +02:00
Lorenz Meier
592f6f2bcb Revert "Fix drop offset: We want to drop so that the wind carries the bottle into the drop zone"
This reverts commit ef0a0a1a6e86aff79a0fd8829ca5c86244fa39bc.
2014-08-30 16:44:30 +02:00
Lorenz Meier
ef0a0a1a6e Fix drop offset: We want to drop so that the wind carries the bottle into the drop zone 2014-08-24 12:05:12 +02:00
Lorenz Meier
d604985e08 Bottle drop: Fix signs and comments 2014-08-22 17:22:35 +02:00
Lorenz Meier
3f37efc046 Fix a bunch of stupid mistakes on coordinates / distances, set number of waypoints to zero once reached 2014-08-22 14:41:35 +02:00
Lorenz Meier
8e9eddcc74 Merge branch 'test_bottle_drop_paul' into bottle_drop_friday 2014-08-22 14:37:12 +02:00
Lorenz Meier
bdd4f028ee Fixed copy-paste errors in drop waypoint coordinates 2014-08-22 14:36:31 +02:00
Lorenz Meier
7add88719f Merge branch 'test_bottle_drop_paul' of github.com:swissfang/Firmware into test_bottle_drop_paul 2014-08-22 14:30:56 +02:00
Lorenz Meier
0f7c392614 Initialize altitude is relative field for drop locations 2014-08-22 14:30:34 +02:00
Lorenz Meier
04ad990254 Fixed build issues 2014-08-22 07:08:30 +02:00
Lorenz Meier
e6a8eebd0a Fixed approach / navigation logic for bottle drop 2014-08-21 21:43:53 +02:00
Lorenz Meier
7187e29b52 Fix altitude handling 2014-08-21 20:58:24 +02:00
Lorenz Meier
8e7722f894 Open bay at a minimum distance of 5 meters, irrelevant of the velocity 2014-08-21 15:47:37 +02:00
Lorenz Meier
7c7dce3b44 Open doors sooner for drop 2014-08-21 15:46:58 +02:00
Lorenz Meier
1026805422 removed unnecessary switch statement 2014-08-21 15:41:03 +02:00
Lorenz Meier
6051b2112e Moved pos output 2014-08-21 15:31:06 +02:00
Lorenz Meier
0bdf28f9ba audio feedback on distance 2014-08-21 15:26:04 +02:00
Lorenz Meier
2a99ff39dc Robustify bottle drop 2014-08-21 15:14:55 +02:00