Commit Graph

636 Commits

Author SHA1 Message Date
Lorenz Meier fa5071b3c5 Remove module.mk files to prevent confusion of adopters upgrading 2015-10-06 11:23:20 +02:00
James Goppert e55af00222 Removed weak attributes. 2015-09-13 14:40:27 -04:00
Mark Charlebois 9c376119d0 cmake: changes required for qurt build
Fixed CMakeLists.txt to be consistent with module.mk
Converted PX4_TICKS_PER_SEC to define for QURT to get around relocation error
Added stubs for QURT so building a full executable can be tested. This will
enable CI testing without the full Hexagon SDK.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-09-09 13:24:29 -07:00
James Goppert 1d6b31d196 Switch to cmake build system. 2015-09-07 20:37:45 -04:00
Mark Charlebois 54bae34a2c Build fixes for qurt after rebase on PX4 master
Removed the re-definitions of the usage method in the posix/main.cpp file.
Added qurt_external_hook interface to call externally linked module.
Fixed code format to comply with PX4 style.
Added usage information to main app and handled cases for unknown arguments.
Fixed the orb_priority interface to use int32_t instead of int.
Fixes to get hil working with led changes.
Added the config_eagle_adsp.mk file and update the make files to to use new
include/lib paths

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-09-04 11:09:29 -07:00
Lorenz Meier fbe5ef6087 uORB: Provide used group count 2015-08-30 00:12:45 +02:00
Mark Charlebois 3a47434749 Fixes for qurt HIL build
Workaround required Eigen downgrade to 3.2. Hexagon toolchain does
not support C++11 features of newest version of Eigen.

Running make qurt_fixup will downgrade and patch Eigen for qurt.
Running make restore will revert the patch and do a git submodule update
to restore the expected Eigen version.

Added a "restore" target to undo qurt_fixup

Before doing a qurt build run:

    make qurt_fixup

That will downgrade Eigen to 3.2 and apply the require patch.
To build another target after downgrading:

    make restore

Them make the desired target (other than qurt).

Fixed type used in orb_priority to be consistent with the code
(int* was used in declaration but int32_t* used in code)

Removed unused class member variable in sensors.cpp

Added cmake fix for unit tests. The location of px4_log.c changed.

Fixed the qurt drv_hrt.c implementation to use us instead of ms for time resolution

Added px4_led.c to nuttx platform layer
Use the posix version of px4_led.c for nuttx so we don't end up with
duplicate files. It was moved out of common because it is not used by qurt.

Changed PX4_DEBUG to PX4_WARN when checking for the error condition for store_poll_waiter in vdev.cpp

Updated the px4_log.h file to make calls to the qurt_log functions.
The qurt_log function is defined in the platforms/qurt layer.

Added an option to control starting the commander module in HIL mode.

Moved the flight specific drivers to the configuration file instead of adding them
to the common tool chain file because HIL mode does not need them.

Added the uorb Subscriber and Publisher classes

Call PX4_ISFINITE macro instead of isfinite().

Added px4_led.c to nuttx platform layer
Use the posix version of px4_led.c for nuttx so we don't end up with duplicate files.
It was moved out of common because it is not used by qurt.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-08-25 21:59:01 -07:00
Lorenz Meier dc0f8e2ab1 Added ORB_DEFINE for mission topic, which is needed by the orb listener module 2015-08-21 14:33:54 +02:00
Lorenz Meier bc216d59c0 uORB: Keep mission in objects common until generator is up to date 2015-08-20 11:08:32 +02:00
Lorenz Meier 33bd30233e Remove mission topic and move it to auto-generated 2015-08-20 11:07:11 +02:00
Lorenz Meier 1f8832d8c8 Objects common: Remove last exceptions 2015-08-20 10:49:22 +02:00
Lorenz Meier 647c2e2a3a RC param map: Remove non-generated file from GIT 2015-08-20 10:21:28 +02:00
fpvaspassion 60be6a577f git status 2015-08-18 23:17:07 +02:00
fpvaspassion e6ffa16125 Implementation of 183 mission intem 2015-08-18 23:17:07 +02:00
Lorenz Meier bb1fef4454 uORB: Remove intermediate file: telemetry status 2015-08-10 15:38:01 +02:00
Lorenz Meier 287e611cdb uORB: Remove intermediate file: sat info 2015-08-10 15:38:01 +02:00
Lorenz Meier 1c3f860b2d uORB: Remove intermediate file 2015-08-10 15:38:01 +02:00
Lorenz Meier d8b1a8a17f uORB: Remove intermediate file 2015-08-10 15:38:01 +02:00
Lorenz Meier 9df860e921 update uORB for generated topics 2015-08-10 15:38:01 +02:00
Nghia Ho 4ba7649fb1 fixed incorrect return type 2015-07-25 20:36:05 -07:00
Lorenz Meier 30ac7a59c8 Merge pull request #2207 from mhkabir/cam_trig_new
Camera trigger WIP
2015-07-04 18:38:05 +02:00
Lorenz Meier 83414b8bc5 Merge pull request #2517 from mcharleb/uorb-fixes
uORBManager: allocate instance on first use
2015-07-02 09:19:41 +02:00
Mark Charlebois 0c72d66ece uORBManager: allocate instance on first use
Previously _Instance was statically initialized. Now it is
allocated at first use.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-07-01 21:26:00 -07:00
Mark Charlebois f6af5dc312 Added hil_sensor to Subscription.cpp
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-07-01 20:20:45 -07:00
Mark Charlebois 1efabba6a6 SITL: Added HIL message used by simulator
The simulator uses this messgage to get incoming data from
jMAVSim that it publishes as sensor data that is consumed by the
sensors module.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-07-01 18:20:14 -07:00
Mark Charlebois 6763039980 Code cleanup - Whitespace changes
These are only whitespace changes

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-07-01 09:10:30 -07:00
Lorenz Meier 9c7450248f Merge pull request #2498 from mcharleb/bringup-m5
POSIX: Critical fix for vdev_posix
2015-07-01 15:13:29 +02:00
Lorenz Meier bc5cf50f1a Merge pull request #2361 from TSC21/mocap_support_restruct
MOCAP support on firmware [new PR]
2015-07-01 14:52:32 +02:00
Mark Charlebois 14bf8bb277 POSIX: Critical fix for vdev_posix
Last fix for vdev_posix.cpp introduced a sleep from within
a HRT work item callback which blocks the HRT queue.

The code in uORBDevices_posix.cpp that handles message
throttling was commented out for posix. The code was re-enabled
and now seems to work.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-06-30 12:08:42 -07:00
Lorenz Meier 454becdae5 Merged release_v1.0.0 branch into master 2015-06-25 21:45:17 +02:00
Ban Siesta 3489c3de1c uORBDevices_posix: copied over fixes from uORBDevices_nuttx 2015-06-15 18:34:52 +02:00
Ban Siesta 21d9bd70a3 uORBDevices_nuttx: Fixed the bug that a publisher had to be started
before an advertiser for multi_pub/subs.

This is achieved using
- A "published"  flag for each uORB device node
- A check before increasing the instance count (basically, a node is
  re-used if nothing has been published on it before which means that it
  has been created by a subscriber.
2015-06-15 18:34:52 +02:00
Ban Siesta 9ecf4345a5 ORBMap: bugfix, got rid of infinite Looping Louie 2015-06-15 18:34:51 +02:00
Ban Siesta c5fd277a9e ORBMap: whitespace 2015-06-15 18:34:51 +02:00
Ban Siesta fee8449de3 uORBDevices: astyle 2015-06-15 18:34:51 +02:00
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