Commit Graph

52 Commits

Author SHA1 Message Date
Mark Charlebois e2d175b3e5 Added back include of px4_posix.h for non-ROS builds
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-05-19 10:47:17 -07:00
Mark Charlebois 0f5cb75692 ROS: Fixes for ROS build
The ROS build included some files that used isfinite vs PX4_ISFINITE.

The AppState class also needed to be supported for ROS.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-05-19 10:41:15 -07:00
Mark Charlebois 8737d77947 QuRT and POSIX changes - part 2
Second staged group of changes for QuRT and related POSIX changes

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-04-24 01:01:36 -07:00
Mark Charlebois 938751993d Changed AppMgr to AppState
The previous name implied some kind of daemon. AppState is
aggregated state of an application's running state and interfaces
to request app termination, and check app state.

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
Thomas Gubler dafe6654eb add missing functional header 2015-01-25 15:35:25 +01:00
Thomas Gubler da7ad9a332 multiplatform: re-enable interval functionality (for uorb) 2015-01-23 09:02:04 +01:00
Thomas Gubler af943cf16a add update_sub_min_interval function 2015-01-23 08:27:06 +01:00
Thomas Gubler 16c85c6d18 move uorb::publisherbase into constructor of publisher 2015-01-23 08:12:46 +01:00
Thomas Gubler 59f05a7195 move ros::publisher into constructor of publisher 2015-01-23 08:03:15 +01:00
Thomas Gubler 2dfd30c25e move uorb::subscriptionbase into constructor of subscriber 2015-01-23 07:17:06 +01:00
Thomas Gubler 1e504478a0 move ros::subscriber into constructor of subscriber 2015-01-23 07:06:02 +01:00
Thomas Gubler b2a911b88d uorb wrapper port callback to methods and subscriber without callback 2015-01-22 17:10:20 +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 2af44f5995 multiplatform: introduce PublisherNode class for uorb for more consistency 2015-01-22 08:10:08 +01:00
Thomas Gubler 2b103d319c clean up px4_nodehandle 2015-01-21 18:29:22 +01:00
Thomas Gubler 2a2594a171 re-enable adding of subscriber to list 2015-01-21 17:40:42 +01:00
Thomas Gubler 1511fd7b2d make handle() static 2015-01-21 16:33:19 +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 c118d17cb5 fix code style in src/platforms 2015-01-08 08:15:44 +01:00
Thomas Gubler f37fdd95af add and use PX4_ROS preprocessor define 2015-01-06 19:45:57 +01:00
Thomas Gubler f871b777ab destructors for px4_nodehandle 2015-01-06 11:09:11 +01:00
Thomas Gubler 06879bff38 reduce default queue size 2015-01-02 16:12:21 +01:00
Thomas Gubler e697413667 multiplatform subscription: uorb: separate class for no callback case 2014-12-18 12:11:35 +01:00
Thomas Gubler 9bad23e418 add explicit non-callback contructor for nuttx/uorb subscriber to work around linker issues 2014-12-17 08:22:38 +01:00
Thomas Gubler be26952038 px4 nodehandle: nuttx: call spin once also after timeout 2014-12-17 08:03:22 +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
Thomas Gubler c68c277c94 subscription class for ros now stores last message to avoid manual copy and support subscription with no callbacks 2014-12-11 15:04:37 +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 f4a326c2bf platform headers: fix code style 2014-12-04 13:20:12 +01:00
Thomas Gubler 0f094d35d5 nodehandle: add documentation comments 2014-12-04 12:22:21 +01:00
Thomas Gubler 1c79f0cef1 improve param wrapper for ros, prepare for px4 2014-12-03 14:43:03 +01:00
Thomas Gubler 905913986a update comments 2014-12-03 07:43:08 +01:00
Thomas Gubler caa61a4fdc add support for subcription method callbacks for ros and nuttx 2014-11-28 23:09:45 +01:00
Thomas Gubler 9abc8e26b7 correctly handle interval, call callback only when topic updated, add example for 2 topics 2014-11-28 16:30:12 +01:00
Thomas Gubler a9c1e4ad61 make px4::ok work, use it in px4::spin 2014-11-28 16:08:51 +01:00
Thomas Gubler 1b416a8e1f use interval setting correctly, improve px4::spin 2014-11-28 14:00:02 +01:00
Thomas Gubler 16f21d36dc actually call callback 2014-11-28 11:38:22 +01:00
Thomas Gubler 36bf0c04c8 WIP, c++11 style callbacks for px4 2014-11-28 08:58:44 +01:00
Thomas Gubler ee534b827a move spin functions to nodehandle 2014-11-26 13:18:28 +01:00
Thomas Gubler 818a49b5a8 fix ros compile errors 2014-11-26 12:45:03 +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 c167df9038 ros wrapper: small reordering 2014-11-25 10:19:18 +01:00
Thomas Gubler 978013bbb8 px4 wrapper for ros publisher 2014-11-25 09:56:18 +01:00
Thomas Gubler 0a3492fc32 define default queue size 2014-11-25 09:20:57 +01:00
Thomas Gubler e2f846ee2f create list of subscribers 2014-11-24 18:53:08 +01:00
Thomas Gubler 1826fa5d39 improve subsciber api 2014-11-24 17:38:27 +01:00