Commit Graph

651 Commits

Author SHA1 Message Date
Ban Siesta f4f761042b uORBManager: astyle 2015-06-15 18:31:01 +02:00
Ban Siesta adaaeff48a uORBTest_UnitTest: Split test function in 3 separate functions and add a
test which fails because it does the subscription before the advertisement.
2015-06-15 18:31:01 +02:00
Ban Siesta c584bab811 uORB: document ORB_MULTI_MAX_INSTANCES 2015-06-15 18:31:01 +02:00
Ban Siesta 99a442b80e uORB: bump ORB_MULTI_MAX_INSTANCES to 4 because this is needed for an extended unit-test 2015-06-15 18:31:01 +02:00
Ban Siesta 8be1b4f19c uORBTest_UnitTest: astyle 2015-06-15 18:31:01 +02:00
Ban Siesta 45f5907716 uORBTest_UnitTest: say who you are in the printf 2015-06-15 18:31:00 +02:00
Lorenz Meier 2ba8ac4438 Move mission result to generated topics 2015-06-15 17:28:04 +02:00
Mark Charlebois d66b6ea701 POSIX: px4_getpid() fix
Since the PX4 code uses both px4_task and pthread APIs,
px4_getpid() must be save to call from either context.

On posix, this means we have to always return the pthread ID.

Reverted simulator change of pthread to px4_task

There may have been side effects if this was build for a target that
has process/task scoped file descriptors. It is now safe to call
px4_getpid() from this pthread context with this change for the
posix build for px4_getpid().

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-06-15 08:25:57 -07:00
Mohammed Kabir a1c2f24837 camera trigger : remove autogen message 2015-06-14 17:41:54 +05:30
Mohammed Kabir 95a8e29cfe camera trigger : mavlink stream 2015-06-14 17:41:54 +05:30
Mohammed Kabir 34809e0aa3 camera trigger : add message 2015-06-14 17:41:54 +05:30
Mohammed Kabir 239c8dc7dc camera trigger : implement trigerring and command 2015-06-14 17:41:54 +05:30
TSC21 dccd4df7bc mocap_support: added support for mocap data on firmware 2015-06-13 17:03:31 +01:00
Lorenz Meier c9fefe236b Merged release into master 2015-06-13 11:06:01 +02:00
Mark Charlebois 4d1ae6269b POSIX: Added PX4_ROOTFSDIR to file paths
Set a default path relative to current dir for the posix target.

Running make posixrun will create the required directoroes and then run
mainapp from its build location.

PX4_ROOTFSDIR is set to nothing for nuttx.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-06-11 21:36:13 -07:00
Mark Charlebois fb402bc096 POSIX: Fixed remaining broke gtests
The addition of the hrt workqueue required adding some additional files to
unittests/CMakeLists.txt

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-06-11 20:22:49 -07:00
Mark Charlebois 9c90e47400 Fixed ORBMap.hpp copyright
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-06-09 19:36:29 -07:00
Mark Charlebois 03d7d770a6 Forgot to add ORBMap.hpp
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-06-09 19:34:34 -07:00
Mark Charlebois 4df833d25d uORB: factor out ORBMap.hpp into a separate file
The new uORB::ORBMap class was put it its own file with proper
copyright.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-06-09 19:31:56 -07:00
Mark Charlebois 05b6bcd168 Added missing return in ORBSet
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-06-09 19:16:06 -07:00
Mark Charlebois 4d28126e0a Nuttx: remove use of std::string, std::map, std::set
Nuttx complains about an unresolved _impure_ptr at link time.
This is a known issue when using STL templates in NuttX on ARM.

Created new ORBMap and ORBSet classes for NuttX.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-06-09 18:56:28 -07:00
Mark Charlebois cb231e89f6 QuRT: Changes to enable qurt target to build
QuRT doesn't support unlink and does not provide getpid().
The DSPAL layer provides access to usleep so an implementation is
no longer needed.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-06-08 22:22:00 -07:00
Mark Charlebois 58e263d534 Added posix-arm target and refactored toolchain_* files
The toolchain_* files are target OS specific so they were moved to
the target OS subdir.

The gcc_version.* files are only cleared once per make instantiation so
a build that creates multiple HW targets will try to link with an
incompatible .o file (i.e. x86 build linking ARM .o).  I created
posix-arm as a separate target to fix this problem.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-06-08 22:21:59 -07:00
Mark Charlebois 6cb26de74c Multi-uORB support changes - part 1
This adds support for a dynamic build for QuRT and initial
Multi-uORB changes to enable communication between the DSP and
the application processor.

This part of the changes do not affect the POSIX build. This is
enablement for the QuRT build using Multi-uORB. The second part
of the changes will be added in a new module under src/modules.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-06-08 22:21:59 -07:00
Lorenz Meier 363a482165 Move navigation_capabilities uORB topic to generated message set 2015-06-05 10:14:58 +02:00
Mark Charlebois f985a48fbc Created px4_access to handle check of virtual files
uORBManager_posix.cpp did a stat to see if a file exists but the
file is actually a virtual file. Using stat was incorrect because
it required a stat buffer that was never used. The POSIX access
function is a better choice so I created a px4_access version to
handle virtual files.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-06-03 16:22:14 -07:00
Lorenz Meier d7547d388f Remove auto-generated airspeed topic 2015-05-27 15:21:34 -07:00
Lorenz Meier 3da7da9466 uORB: Moved wind_estimate and vtol_vehicle_status topics to generated topics. 2015-05-27 15:21:33 -07:00
Lorenz Meier a75c0d8eb1 uORB: Moved vehicle_vicon_position to generated topics 2015-05-27 15:21:33 -07:00
Lorenz Meier 411e0b2f84 uORB: Moved vehicle_land_detected topic to generated topics 2015-05-27 15:21:33 -07:00
Lorenz Meier 5d62fa419a uORB: Moved vehicle_command to generated topics 2015-05-27 15:21:33 -07:00
Lorenz Meier 7fb5812918 uORB: Moved time_offset topic to generated topics 2015-05-27 15:21:33 -07:00
Lorenz Meier 38c0a1a251 uORB: Moved test_motor to generated topics 2015-05-27 15:21:32 -07:00
Lorenz Meier b36fe0232f uORB: Moved tecs_status to generated topics 2015-05-27 15:21:32 -07:00
Lorenz Meier 520d830cec uORB: Moved subsystem_info to generated topics 2015-05-27 15:21:32 -07:00
Lorenz Meier f1d038efc0 uORB: Moved subsystem_info to generated topics 2015-05-27 15:21:32 -07:00
Lorenz Meier f7563816d4 uORB: Moved servorail_status to generated topics 2015-05-27 15:21:32 -07:00
Lorenz Meier 44aa18bdd6 Remove unused vehicle_control_debug topic 2015-05-27 15:21:32 -07:00
Lorenz Meier 17108af3e6 uORB: Remove unused bodyframe setpoint 2015-05-27 15:21:32 -07:00
Lorenz Meier 33cf01f09b Remove unused omnidirectional_flow topic 2015-05-27 15:21:32 -07:00
Lorenz Meier 7b90746a7f uORB: Update objects_common.cpp with newly generated topics 2015-05-27 15:21:32 -07:00
Lorenz Meier 0e51092eab Move geofence_result to generated topics 2015-05-27 15:21:32 -07:00
Lorenz Meier a994e58267 Move encoders to generated topics 2015-05-27 15:21:31 -07:00
Lorenz Meier d400643738 Move battery status to generated topics 2015-05-27 15:21:31 -07:00
Lorenz Meier 06ba8d924a Move estimator_status to generated topics 2015-05-27 15:21:31 -07:00
Lorenz Meier a190d01ade Move differential pressure to generated topics 2015-05-27 15:21:31 -07:00
Lorenz Meier 961b6b7802 Move vision position estimate to generated topics 2015-05-27 15:21:31 -07:00
Lorenz Meier 01d72adca5 Move debug_key_value to generated topics 2015-05-27 15:21:31 -07:00
Lorenz Meier 6ce097546c Move fence to generated topics 2015-05-27 15:21:31 -07:00
Lorenz Meier e07731de7a Move esc_status to generated topics 2015-05-27 15:21:31 -07:00