132 Commits

Author SHA1 Message Date
Mark Charlebois
0c1c58c418 Fixed overzealous px4_ prefixing
Some files had px4_px4_ prefixed functions.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-05-06 15:32:04 -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
3654aec3a5 POSIX: ported px4_daemon_app
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-05-06 14:34:23 -07:00
Mark Charlebois
fd7863270e Nuttx: fixed missing changes from AppMgr to AppState
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-04-20 11:00:18 -07:00
Mark Charlebois
5084a61f0e Abstractions to compile systemlib for Linux and Nuttx
Modified uint32_t casts of pointers to unsigned long for portability.
It otherwise breaks on x86_64.

Added _PX4_IOC to handle the conflice between _IOC on Linux and NuttX.

Removed use of px4::ok() because it cannot be used in a thread based
implementation. Changed to use px4::AppMgr which uses ok() on ROS.

Removed up_cxxinitialize.c from Linux build.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-04-20 11:00:16 -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
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
Lorenz Meier
4f0f2b0329 Merge pull request #1875 from mstuettgen/master
Latest rover changes
2015-03-20 17:17:13 +01:00
Marcel Stüttgen
9130976d9e Update main.cpp
removed debug output code
2015-03-20 17:01:52 +01:00
Daniel Agar
662ec3f62f examples fix code style 2015-03-19 23:49:36 +01:00
Daniel Agar
c2abb0f82a fix code style if trivial one line difference 2015-03-19 23:49:36 +01:00
Marcel Stuettgen
d0c6636b7f added debug code to check if the values are really changing 2015-02-28 17:25:51 +01:00
Lorenz Meier
15f729ddd5 Rover: C++ify, minor cleanups 2015-02-19 22:14:50 +01:00
Lorenz Meier
e59aaa771c Rover: Add simple steering controller. 2015-02-19 21:51:53 +01:00
James Goppert
017f3ead47 Flow example fix for divide by zero.
This prevented publishing and made the module unusable.
2015-02-11 21:05:40 -05:00
Thomas Gubler
69f5726d70 make subscriber example use the new param api 2015-02-08 17:53:25 +01:00
Thomas Gubler
84ff3c671d Merge remote-tracking branch 'upstream/master' into ros_messagelayer_merge2_attctrl_posctrl
Conflicts:
	src/drivers/px4fmu/fmu.cpp
2015-02-01 11:06:47 +01:00
Lorenz Meier
777eda1a89 Move MATLAB example to multi pub/sub API 2015-01-29 16:33:53 +01:00
Thomas Gubler
abeae7b6f6 extend subscriber/publisher example 2015-01-26 19:01:07 +01:00
Thomas Gubler
cd35ab2661 add another set of uorb headers 2015-01-25 15:32:40 +01:00
Thomas Gubler
4c3a24ddee tiny cleanup 2015-01-23 18:30:02 +01:00
Thomas Gubler
aa7e5ddb38 move position of spin_once in publisher example 2015-01-23 18:11:44 +01:00
Thomas Gubler
a36d0dce85 publisher: move nuttx startup handling 2015-01-23 18:01:16 +01:00
Thomas Gubler
dfd078651f subscriber: move nuttx startup handling 2015-01-23 18:00:59 +01:00
Thomas Gubler
73f342616e add better accessor 2015-01-23 15:16:13 +01:00
Thomas Gubler
da7ad9a332 multiplatform: re-enable interval functionality (for uorb) 2015-01-23 09:02:04 +01:00
Thomas Gubler
49d41773fc ros wrapper port callback to methods and subscriber without callback 2015-01-22 16:47:28 +01:00
Thomas Gubler
8c4fce3654 multiplatform: better publisher base class 2015-01-22 09:30:43 +01:00
Thomas Gubler
f60e65b38f clean up subscriber example 2015-01-21 18:05:31 +01:00
Thomas Gubler
ed526173bb clean up publisher example 2015-01-21 17:57:37 +01:00
Thomas Gubler
1f706eeb2f small cleanup 2015-01-21 14:34:34 +01:00
Thomas Gubler
cadcad6ffb messagelayer prototype for nuttx 2015-01-21 14:27:01 +01:00
Thomas Gubler
7c3223b860 added a messageplayer prototype for ros 2015-01-21 14:26:22 +01:00
Thomas Gubler
96db9e8188 Merge remote-tracking branch 'upstream/master' into ros
Conflicts:
	src/platforms/px4_middleware.h
2015-01-15 12:42:28 +01:00
Lorenz Meier
05367f8a00 Handle slight increase of frame size in example 2015-01-11 11:03:56 +01:00
Thomas Gubler
f37fdd95af add and use PX4_ROS preprocessor define 2015-01-06 19:45:57 +01:00
Thomas Gubler
5745189e7b fix some errors/warnings in multiplatform examples 2015-01-05 15:22:08 +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
5b600a815c Replace use of -Wno-error and only ignore specific warnings 2014-12-23 11:18:36 -05:00
Daniel Agar
d14fdf896b rotate_3f() implement missing ROTATION_ROLL_270_YAW_270 2014-12-23 11:18:30 -05:00
Daniel Agar
d511e39ea7 turn on -Werror and fix resulting errors 2014-12-22 17:56:59 -05:00
Thomas Gubler
851415e48e Merge commit 'aa40c69853be0dc7e79bc3084472b77f9667c1f1' into dev_ros_mcatt
Conflicts:
	makefiles/config_px4fmu-v2_test.mk
2014-12-16 10:23:41 +01:00
Lorenz Meier
cc6224de65 Fix / update HW test example 2014-12-12 14:08:02 +01:00
Lorenz Meier
691e42324c Fix build breakage in FW control example 2014-12-12 14:07:42 +01:00
Lorenz Meier
be5bd6f978 Remove unmaintained math demo 2014-12-12 14:07:24 +01:00
Lorenz Meier
42c8f6b48b Update UAVCAN version, delete outdated example 2014-12-12 12:11:08 +01:00
Thomas Gubler
c0d386bce0 mc att: use multiplatform subscriptions type 2014-12-12 10:15:33 +01:00
Thomas Gubler
998646f03b add base class and template subscriber class as well to improve interface to get last msg value 2014-12-11 15:33:32 +01:00