Commit Graph
37 Commits
Author SHA1 Message Date
Lorenz Meier a1d6cfcfb7 Remove old module.mk files to not confuse new users 2015-10-08 10:58:34 +02:00
James Goppert 1d6b31d196 Switch to cmake build system. 2015-09-07 20:37:45 -04:00
Daniel Agar ad456bb7f2 format src/examples/publisher 2015-09-05 12:21:10 -04:00
Mark Charlebois 95de7c2e94 ROS: Fixes for print of uint64_t type
Changed printf to use PRIu64

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-05-19 11:14:40 -07:00
Mark Charlebois 9f391b1867 NuttX: fixes for NuttX build
In the upstream tree ringbuffer.h includes the method implementations
in the header file which causes multiple definitions in the link for
other targets. Changed so ringbuffer.cpp is build separately for other
platforms and is included by ringbuffer.h on NuttX.

uORB changes do not link without uORBTest_UnitTest.cpp enabled for
the NuttX build.

px4_getopt was not exported and wasn't visible in NuttX build.

The makefiles were restored to be as close as possible to upstream
so the NuttX build builtin's work again. The code will have to be
refactored after the merge.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-05-15 12:56:18 -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 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 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 662ec3f62f examples fix code style 2015-03-19 23:49:36 +01:00
Thomas Gubler abeae7b6f6 extend subscriber/publisher example 2015-01-26 19:01:07 +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 8c4fce3654 multiplatform: better publisher base class 2015-01-22 09:30:43 +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 7c3223b860 added a messageplayer prototype for ros 2015-01-21 14:26:22 +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 fd6a5fd38b move px4::init call 2014-12-11 10:58:47 +01:00
Thomas Gubler 173b1b2a8b WIP, make class based and extended subscriber/publisher example compile for ros 2014-12-11 10:51:19 +01:00
Thomas Gubler a1685ed6d0 change definition of px4 main function 2014-12-11 09:27:11 +01:00
Thomas Gubler 8ae1c9763d write publisher example as class 2014-12-10 16:22:19 +01:00
Thomas Gubler 6b695ac9e8 add PX4 advertise macro 2014-11-28 23:14:50 +01:00
Thomas Gubler b351d67175 fix print for px4 2014-11-28 11:37:30 +01:00
Thomas Gubler ee534b827a move spin functions to nodehandle 2014-11-26 13:18:28 +01:00
Thomas Gubler 0474908e1c reenable task flag 2014-11-26 11:55:48 +01:00
Thomas Gubler e7c1e5b1ff wip, working on the nuttx wrapper 2014-11-26 11:36:23 +01:00
Thomas Gubler 55cf2fc61c WIP, towards more px4 compatibility, first macros 2014-11-25 11:50:35 +01:00
Thomas Gubler 978013bbb8 px4 wrapper for ros publisher 2014-11-25 09:56:18 +01:00
Lorenz Meier f36f54c621 Restructuring of generic middleware support files, wrapping of the main ROS calls, skeletons for publishers / subscribers 2014-11-09 11:57:34 +01:00
Thomas Gubler 1e9f431cf1 ros example: send rc_channels message 2014-11-05 15:03:00 +01:00
Lorenz Meier 3956a2c836 Baby steps towards PX4 ROS nodes 2014-10-06 08:12:41 -07:00
Lorenz Meier 3b2b280a41 Get ROS examples to compile, add simple RC channels message 2014-10-06 00:49:25 -07:00