Mark Charlebois
a99f916bdf
POSIX: Changed px4_debug.h to px4_log.h
...
Also changed use of printf to PX4_WARN or PX4_INFO in posix and
qurt tests.
Signed-off-by: Mark Charlebois <charlebm@gmail.com >
2015-05-11 16:04:39 -07:00
Mark Charlebois
09718fa324
Revamped debug macros
...
Created px4_debug,h to define:
PX4_DBG
PX4_INFO
PX4_WARN
PX4_ERR
These enable OS specific mappings to be made, filtering, etc.
Signed-off-by: Mark Charlebois <charlebm@gmail.com >
2015-04-27 21:58:54 -07:00
Mark Charlebois
20d35e33da
Platform header file cleanup and consolidation
...
Removed obsolete porting cruft from px4_XXX.h files and merged the
POSIX changes in PreflightCheck_posix.cpp back to PreflightCheck.cpp
Signed-off-by: Mark Charlebois <charlebm@gmail.com >
2015-04-24 11:45:14 -07:00
Mark Charlebois
c802beb3d7
QuRT and POSIX changes - part 3
...
More staged changes to support QuRT and related POSIX changes
Signed-off-by: Mark Charlebois <charlebm@gmail.com >
2015-04-24 01:13:08 -07:00
Mark Charlebois
f3b5076d70
Linux to posix conversion
...
Changed "linux" target to "posix". Most of the changes are shared with
QuRT and with OSX. The Linux specific parts are in for i2c which uses
<linux/i2c.h> and <linux/i2c-dev.h>.
There is also a check for __PX4_LINUX in mavlink for a tty ioctl that is
not supported.
Signed-off-by: Mark Charlebois <charlebm@gmail.com >
2015-04-21 09:53:09 -07:00
Mark Charlebois
e9c2e08770
Added initial QuRT support
...
Added the basic files to start building for QuRT
Signed-off-by: Mark Charlebois <charlebm@gmail.com >
2015-04-20 11:37:51 -07:00
Mark Charlebois
8c8f57b5b4
Fixed std::isfinite vs isfinite differences
...
Added PX4_ISFINITE(x) to px4_defines.h to handle the differences on
NuttX and Linux.
This change also picked up some file renaming for virtual character devices
Signed-off-by: Mark Charlebois <charlebm@gmail.com >
2015-04-20 11:34:12 -07:00
Mark Charlebois
aedf6fe628
Linux: Added preliminary work queue support
...
Based on NuttX work queue code.
Not yet functional.
Signed-off-by: Mark Charlebois <charlebm@gmail.com >
2015-04-20 11:16:26 -07:00
Mark Charlebois
5f3496353c
Linux: added support for sdlog2
...
Signed-off-by: Mark Charlebois <charlebm@gmail.com >
2015-04-20 11:15:12 -07:00
Mark Charlebois
99399115f2
Linux: Minor fixes of error caught by gcc-4.9.1
...
- Missing static declarations for functions not used outside a file.
Signed-off-by: Mark Charlebois <charlebm@gmail.com >
2015-04-20 11:07:00 -07:00
Mark Charlebois
d013ac0927
Support for building more modules with Linux
...
Added more queue support to linux/px4_layer.
Use virt char devices for ms5611, and mavlink.
Added more HRT functionality. uORB latency test
now fails. Likely due to bad HRT impl for Linux.
Signed-off-by: Mark Charlebois <charlebm@gmail.com >
2015-04-20 11:07:00 -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
62f8bd6679
Linux build support for some libs
...
The following libs can now be built under Linux:
lib/mathlib
lib/geo
lib/geo_lookup
The constants used for ROS are now shared with Linux in
px4_defines.h
Signed-off-by: Mark Charlebois <charlebm@gmail.com >
2015-04-20 10:57:01 -07:00
Thomas Gubler
347047bafc
get rid of lots of multiplatform macros, oh yeah
2015-02-08 17:53:26 +01:00
Thomas Gubler
6ba1912309
add angle conversion defines for ros
2015-01-28 16:32:01 +01:00
Thomas Gubler
8dbb1fc8d4
remove unneeded include
2015-01-25 18:24:10 +01:00
Thomas Gubler
4ba57ad285
get rid of unnecessary defines
2015-01-23 11:39:10 +01:00
Thomas Gubler
c118d17cb5
fix code style in src/platforms
2015-01-08 08:15:44 +01:00
Thomas Gubler
e855e4454c
exclude macro hack for tests target
2015-01-07 00:19:30 +01:00
Thomas Gubler
f37fdd95af
add and use PX4_ROS preprocessor define
2015-01-06 19:45:57 +01:00
Thomas Gubler
134f41c707
make ros params from launch files work
2014-12-31 15:23:09 +01:00
Thomas Gubler
824446bf2f
typo
2014-12-30 11:15:46 +01:00
Thomas Gubler
4402d7106b
improve and fix multiplatform param by name macro
2014-12-17 16:31:40 +01:00
Thomas Gubler
7ad3b03353
multi platform interface: macro to get param by name
2014-12-17 15:49:03 +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
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
Thomas Gubler
ab35b6470c
mc att: use multiplatform publisher
2014-12-11 19:02:14 +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
a1685ed6d0
change definition of px4 main function
2014-12-11 09:27:11 +01:00
Thomas Gubler
9ed57211cc
hack to define isspace in px4_defines, add macro for subscription without callback
2014-12-10 12:40:36 +01:00
Thomas Gubler
356e6f1eeb
WIP, move some ORB defines
2014-12-08 13:42:40 +01:00
Thomas Gubler
dc945a3f3f
actuator controls as msg
2014-12-08 12:12:23 +01:00
Thomas Gubler
87df7c3243
move vehicle_attitude_setpoint to msg format
2014-12-08 10:37:01 +01:00
Thomas Gubler
f4a326c2bf
platform headers: fix code style
2014-12-04 13:20:12 +01:00
Thomas Gubler
befe4c399e
comments for px4 defines
2014-12-04 11:50:59 +01:00
Thomas Gubler
83d97fd1c2
better support for param default values on ros and px4
2014-12-04 09:53:37 +01:00
Thomas Gubler
c2e2b3d52f
make param wrapper macros compatible for px4 and ros, needs cleanup
2014-12-03 17:04:15 +01:00
Thomas Gubler
924350a5de
bring up param wrapper for px4, moved global include file
2014-12-03 15:11:27 +01:00
Thomas Gubler
1c79f0cef1
improve param wrapper for ros, prepare for px4
2014-12-03 14:43:03 +01:00
Thomas Gubler
6a99b04fb7
add parameter wrapper macros for ros
2014-12-03 12:31:37 +01:00
Thomas Gubler
05a87a706a
move px4_defines file
2014-12-02 16:17:17 +01:00
Thomas Gubler
4d91c61f8f
add macros for easy 2d array support, builds on px4 test build
2014-12-02 10:46:29 +01:00
Thomas Gubler
6b695ac9e8
add PX4 advertise macro
2014-11-28 23:14:50 +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
1b416a8e1f
use interval setting correctly, improve px4::spin
2014-11-28 14:00:02 +01:00
Thomas Gubler
59a9648bb6
macro for topic subscription
2014-11-28 10:18:28 +01:00
Thomas Gubler
e7c1e5b1ff
wip, working on the nuttx wrapper
2014-11-26 11:36:23 +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