Commit Graph
100 Commits
Author SHA1 Message Date
Mark Charlebois 8d59d08ad6 Removed unnecessary header files from accelsim
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-10-29 12:21:52 -07:00
Mark Charlebois a5c002ac2e Removed more accelsim deadcode
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-10-29 12:17:24 -07:00
Mark Charlebois 21ef602b5a More accelsim cleanup
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-10-29 12:12:38 -07:00
Mark Charlebois 474e376f96 Removed deadcode from accelsim
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-10-29 12:04:19 -07:00
Mark Charlebois 461f72dcee Updated instructions for installing cmake to newer version
The available version of cmake for Ubuntu 12.04 is too old.
The PPA listed does not currently work so the official
cmake webisite is a more reliable source to get cmake.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-10-28 21:58:34 +01:00
Mark Charlebois e2ec4af127 Switched Vagrant to use static IP
MacOS was having isues with DHCP for NFS shared folder

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-10-25 23:36:57 +01:00
Mark Charlebois d030608def Modified Vagrantfile to use NFS folder sharing
Virtualbox has issues with certain operations on shared folders
using the default sharing mechanism. These are overcome using
NFS sharing.

On Ubuntu, sudo apt-get install nfs-kernel-server

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-10-23 21:09:29 -07:00
Mark Charlebois 01ccbd8886 qurt: added HEXAGON_TOOLS_ROOT variable
The environment variable HEXAGON_TOOLS_ROOT must be set to the location
of the installed HexagonTools. This could be a global install at
/opt/HEXAGON_Tools/7.2.10/Tools or it could be a personal install
${HOME}/Qualcomm/HEXAGON_Tools/7.2.10/Tools.

The default install path used by the installer is exported in the Vagrantfile.

There is still an issue that the hexagon linker fails on mmap of the shared folder.
If the shared folder was mounted via NFS for Linux and MacOS the problem would be
resolved.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-10-23 20:52:03 -07:00
Mark Charlebois 8349ba180b DSPAL: removed simlinks that broke vagrant build
Vagrant did not like the simlinks in the dspal repo.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-10-23 20:50:57 -07:00
Mark Charlebois 4b1e4e63f0 eagle: Added posix_eagle_release to Makefile
Enable build of posix_eagle_release.
Added path to ARM cross compiler in qrlsdk install.
Fixed warnings in Toolchain-arm-linux-gnueabihf.cmake

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-10-23 09:06:18 +02:00
Mark Charlebois 224af93bbb Merge pull request #3042 from mcharleb/hexagon-7.2.10-toolchain
qurt: Change to Hexagon 7.2.10 compiler
2015-10-22 14:32:39 -07:00
Mark Charlebois 49e0fc967a qurt: Added back missing ifdef section in px4_defines.h
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-10-22 10:12:32 -07:00
Mark Charlebois 0e967d0874 qurt: Change to Hexagon 7.2.10 compiler
Switched to 7.2.10 since the Linux version of this is available.

Added -DHAS_C9X flag to fix isses with undefined math functions
when using hexagon-clang++.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-10-22 10:07:22 -07:00
Mark Charlebois 938798f4db Removed qurt patch for Eigen and updated eigen commit
The patches for Hexagon support are in the eigen repo so
the patch can now be removed.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-10-20 08:48:11 +02:00
Mark Charlebois 2cdd6c6055 Corrected logic for gcc build on Apple
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-10-20 08:47:08 +02:00
Mark Charlebois 79b4bd60b2 Fixed clang builds on Linux
The link needed --start-group and --end-group for clang on Linux
for posix builds.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-10-20 08:47:08 +02:00
Mark Charlebois 468bac71c2 Fixed PRI64 to PRId64 in generate_listener.py
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-10-19 10:05:04 -07:00
Mark Charlebois 8e82ced5a4 Added backtrace function
Added PX4_BACKTRACE() to display stack trace for debugging

Added backtrace for HRT reschedule with 0 timeout

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-10-19 09:41:49 +02:00
Mark Charlebois f6f6b035d6 Fixed cmake else statements
Removed use of if(foo) else(foo) endif(foo) convention of cmake

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-10-10 02:19:59 -07:00
Mark Charlebois 3af75438fd Create external/Install/{lib|include}
These files are expected to exist for current cmake rules and cmake
will warn if they do not exist.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-10-10 01:47:17 -07:00
Mark Charlebois bc2ea895ea renamed test_param.c test_params.c
Changed name to match search pattern *params.h

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-10-10 01:22:35 -07:00
Mark Charlebois c28ae649a3 Fixes for parameters.xml dependencies
Moved definitions of parameters into *params.c in each module.
This is used by the cmake file as a pattern for dependencies when
generating the parameters.xml file.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-10-10 01:15:22 -07:00
Mark Charlebois c5e66e41f1 qurt: Must use latest version of Eigen
The latest version of Eigen is required to build with the Hexagon
7.4 toolchain. Only certain C++11 features are supported and the
latest version if Eigen provides these tests. A patch is required
to add support for the Hexagon compiler.

These changes force the sync and then update of eigen and allow it
to be patched for qurt.

The eigen-3.2 submodule was removed as it is no longer needed by the
qurt build with the updated toolchain.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-09-28 10:49:48 -07:00
Mark Charlebois 3f758490a4 QuRT: move to HexagonTools 7.4 toolchain
Some subsystems error on frame size without the included patches.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-09-24 15:16:01 -07:00
Mark Charlebois 300932bde3 QuRT: fixes to unbreak cmake build for QuRT
Updated DSPAL version.
Fixed missing lib in config.
Fixed heafers for missing timespec definition.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-09-24 15:16:00 -07:00
Mark Charlebois 1abd61303f qurt: Added patch for Eigen to use latest version
Updated to 7.2 Hexagon toolchain

Fixed issuse with stack usage

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-09-24 15:16:00 -07:00
Mark Charlebois ed70a1a1b0 Updated dspal version
Fix to remove dspal version of signal.h

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-09-16 17:08:14 -07:00
Mark Charlebois 3a2e064c92 Fixed error due to set but unused variable
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-09-16 15:58:15 -07:00
Mark Charlebois 7d2ba97511 Fixed poll timeout bug
The SIGCONT signal was being ignored by the HRT queue thread so the
usleep was not waking up early to process new work.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-09-16 15:24:58 -07:00
Mark Charlebois 6feaccca78 posix: unit test for poll and vdev
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-09-16 14:00:51 -07:00
Mark Charlebois c602d55df9 Start of poll testcase
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-09-16 08:14:44 -07:00
Mark Charlebois 0a04dd89b1 Merge branch 'cmake-2' of https://github.com/PX4/Firmware into cmake-2
Signed-off-by: Mark Charlebois <charlebm@gmail.com>

Conflicts:
	CMakeLists.txt
2015-09-12 12:28:24 -07:00
Mark Charlebois 3da0a2bf4f Remove policy that broke posix and fix gcc warning
A Clang only flag was set for all builds.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-09-12 11:22:13 -07:00
Mark Charlebois ce17984bd5 qurt: removed linker script
Linker script no longer needed for qurt target

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-09-11 18:48:37 -07:00
Mark Charlebois 8369e33245 cmake: Fixes for qurt and nuttx
Added px4_parameters.c to nuttx executable src list.
Minor syntax fix in Tools/px_generate_params.py for semicolon.
Added handling of PX4_MAIN which was not yet supoprted in the
cmake build.
Fixed include quotes in muorb_test_example.cpp

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-09-11 18:32:44 -07:00
Mark Charlebois 1bba87c264 qurt: Changes for cmake build
Added build stubs.
Fixed missing module (platforms/common) which was causing missing generated message errors.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-09-11 17:43:25 -07:00
Mark Charlebois e4b9212e96 cmake: Updated makefie to show the available build configs
Also fixed param support for nuttx and qurt

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-09-11 16:15:48 -07:00
Mark Charlebois 05340f4ced Merge branch 'cmake-2' of https://github.com/jgoppert/Firmware into cmake-mc 2015-09-11 12:42:53 -07:00
Mark Charlebois fc3acdb2c1 cmake: param refactoring
Use a struct to contain all the parameters so the ordering in
memory is not machine dependent.

Add number of parameters to the param struct. The struct actually
allows direct accessing by the member name if desired.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-09-11 12:41:00 -07:00
Mark Charlebois b9ef1ee6ed param: Build param without linker script
Changed to enable the posix_sitl_simple target to build and run

param show *

without using a linker script

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-09-11 02:33:42 -07:00
Mark Charlebois 885dbe045f cmake: converted config files to new style
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-09-10 21:52:55 -07:00
Mark Charlebois 3de04cf6f4 cmake: fixes for posix configs
The posix eagle targets were fixed to include the px4_impl_posix.cmake file

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-09-10 20:17:38 -07:00
Mark Charlebois ad4e31c88a cmake: Missed anm insuance of config_
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-09-10 20:07:38 -07:00
Mark Charlebois 98897960e1 cmake: removed config_ prefix
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-09-10 20:02:31 -07:00
Mark Charlebois 0047b38c54 cmake: added Toolchain-arm-linux-gnueabihf
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-09-10 19:52:23 -07:00
Mark Charlebois 3b118a0ea7 cmake: Removed obsolete UPLOAD and TEST logic
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-09-10 19:43:54 -07:00
Mark Charlebois 4beabff26b cmake: fixed posix configs
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-09-10 19:38:22 -07:00
Mark Charlebois cbb8ad19e5 cmake: Proof of concept for build without Makefile
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-09-10 19:15:11 -07:00
Mark Charlebois 5aa3c45b63 cmake: Unbreak all qurt and posix targets
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-09-10 19:01:51 -07:00
Mark Charlebois d5a404896d Merge branch 'cmake-2' of https://github.com/jgoppert/Firmware into cmake-mc 2015-09-10 18:39:12 -07:00
Mark Charlebois 270bc2ef5d cmake: Fixed configs to use px4_get_config
The previous function name was changed to px4_get_config

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-09-10 18:37:54 -07:00
Mark Charlebois a456b6a1c6 Added missing Makefile update
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-09-10 16:25:30 -07:00
Mark Charlebois 2a77ea6b34 Merge branch 'cmake-2' of https://github.com/jgoppert/Firmware into cmake-mc 2015-09-10 15:01:19 -07:00
Mark Charlebois 8dc5d7532e Added more eagle build configurations
The config_qurt_eagle_travis.cmake target is for CI

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-09-10 15:00:20 -07:00
Mark Charlebois 5182a63512 qurt: updated dspal version
Added declaration of write() call

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-09-10 13:05:31 -07:00
Mark Charlebois e3e00e92d7 Updated to newer version of dspal
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-09-10 12:59:45 -07:00
Mark Charlebois cdcebfdb6e Merge branch 'cmake-2' of https://github.com/jgoppert/Firmware into cmake-mc 2015-09-10 12:46:20 -07:00
Mark Charlebois b09c8f3c9b cmake: Added dspal and eigen32 to top level CMakeLists.txt
Relying on inclusion of git_eigen32 and git_dspal targets to trigger
the submodule init and update

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-09-10 11:18:30 -07:00
Mark Charlebois 08dc74afac cmake: fixes for qurt build after refactoring
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-09-10 09:29:21 -07: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
Mark Charlebois 5a59d7d74f cmake: added support for topic_listener.cpp
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-09-09 10:15:37 -07:00
Mark Charlebois c815ddb661 qurt: Updated dspal version
Added missing extern "C" blocks

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-09-08 19:45:48 -07:00
Mark Charlebois d5d758bdc6 qurt: Updated the version of dspal headers
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-09-08 19:34:59 -07:00
Mark Charlebois dd26a80cc2 Merge branch 'cmake-2' of https://github.com/jgoppert/Firmware into cmake-mc-3 2015-09-08 19:19:34 -07:00
Mark Charlebois b561215017 cmake: fixes for apps.h generation for posix and qurt
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-09-08 19:17:53 -07:00
Mark Charlebois dbc60d99c5 cmake: qurt fix to build shared lib, not executable
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-09-08 18:50:11 -07:00
Mark Charlebois 75f1f91784 cmake qurt and posix fixes for cmake
Added generation of build_git_version.h

Added separate src/lib/eigen-3.2 dir for qurt (new submodule)

Added patching of eigen-3.2 for qurt (compiler has issue with Complex)

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-09-08 18:39:51 -07:00
Mark Charlebois 9c8dd69f29 Removed debug
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-09-08 16:14:11 -07:00
Mark Charlebois 91cf77c68b Added more missing modules for posix
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-09-08 16:12:45 -07:00
Mark Charlebois 3d42a24398 Added missing modules for posix
MOst of the link errors are resolved. Param is still an issue.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-09-08 16:02:07 -07:00
Mark Charlebois 7e1c984234 Hack to get posix build partially working
Created a dummy build_git_version.h so I did not have to figure out
how to generate it.

Commented out topic_listener.cpp from src/systemcmds/CMakeLists.txt
because it depends on a generated cpp file.

Link doesn't work mut many modules build

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-09-08 15:39:13 -07:00
Mark Charlebois 4885bbbdd1 Added px4_mangle_name function to px4_base.cmake
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-09-08 14:36:09 -07:00
Mark Charlebois e82ea34e51 Changed builtin_commands.cpp_stub to builtin_commands.cpp_in
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-09-08 14:19:29 -07:00
Mark Charlebois d343edaa66 Moved qurt changes to src/firmware/qurt/CMakeLists.txt
The src/CMakeLists.txt are now in src/firmware/${OS}/CMakeLists.txt

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-09-08 14:13:54 -07:00
Mark Charlebois c16c6a00e3 Clean up location of nuttx specific template
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-09-08 14:08:50 -07:00
Mark Charlebois 29520dc5b1 Fixed nuttx libs in qurt build
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-09-08 14:07:43 -07:00
Mark Charlebois eb40a6de77 cmake: qurt modules now build but do not link
Managed to get the deps set up to build the qurt modules using a
config file for the list of modules.

NuttX link options are being set somewhere that break the qurt build

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-09-08 14:07:43 -07:00
Mark Charlebois 0de5868ee2 More qurt support
The current approach of distributing submodule inclusion logic makes
evert parent dir need to know about all build targets.

This approach goes back to the previous way of centralizing the build
dirs in a single file.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-09-08 14:06:55 -07:00
Mark Charlebois 44dd4160a2 cmake: Adding qurt build support
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-09-07 23:35:40 -07:00
Mark Charlebois 670fee1347 Merge branch 'cmake-2' of https://github.com/jgoppert/Firmware into cmake2
Signed-off-by: Mark Charlebois <charlebm@gmail.com>

Conflicts:
	CMakeLists.txt
2015-09-07 21:52:33 -07:00
Mark Charlebois 630328cafc Merge branch 'cmake-2' of https://github.com/jgoppert/Firmware into cmake2 2015-09-07 21:31:48 -07:00
Mark Charlebois d798869ff8 Merge branch 'cmake-2' of https://github.com/jgoppert/Firmware into cmake2 2015-09-07 21:10:58 -07:00
Mark Charlebois 4764a62440 Merge of latest changes
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-09-07 21:10:43 -07:00
Mark Charlebois 6c28ef83bf Fixes for posix-arm toolchain file
Removed incorrect nuttx checks (there should be no nuttx dependency).
Removed unsupported ARM targets. The posix build has not been tested on
CortexM targets.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-09-04 16:21:19 -07:00
Mark Charlebois bb281f03f3 Added DSPAL as a git submodule of PX4
The DSPAL headers are required to build for qurt. When we move to
a cmake build system, the DSPAL headers can be conditionally included.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-09-04 11:35:55 -07: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
Mark Charlebois 2579b29691 POSIX: Fix for daemon mode to process commands after init
Commands were being processed before init was called.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-08-30 00:18:41 -07:00
Mark Charlebois d94aa84657 Add daemon mode to posix build
In order to use upstart to run PX4 it needs to run in daemon mode.
Added ability to test if a task is running in order to gracefully
shut down muorb.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-08-28 16:06:36 -07: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
Mark Charlebois ce49145c1d Removed DSPAL header include in px4_workqueue.h
This was mistakenly added in a bad merge.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-08-11 12:50:44 -07:00
Mark Charlebois 41722c2b51 Added missing include path for qurt
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-08-11 12:17:28 -07:00
Mark Charlebois a589d15c52 Refactored debug() and log() in CDev
These functions used vprintf which is not available on all platforms.
They also do not enable line and file debug output.

Changed to macros that preserve the output format.  Uses new macro that
can be used to implement per object, runtime selectable logging

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-08-11 12:07:06 -07:00
Mark Charlebois faae76e3c7 Removed __PX4_QURT ifdefs from application layer
Replaced test for __PX4_QURT with test for NAV_DEBUG.

Optimized implementation to remove code when flag is not set.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-08-06 12:51:20 -07:00
Mark Charlebois 009f528266 Fixes for posix-arm and qurt builds
Ifdefed out deadcode in position_estimator_inav_main.c as the
deadcode does not compile for qurt.

Added fixes to get a successful build for posix-arm and qurt targets.
Removed CLOCK_REALTIME def from px4_time.h for qurt and removed unused
variables in att_est_q and mc_att_control.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-08-05 18:34:46 -07:00
Mark Charlebois 5120708b38 muorb: code cleanup
Fixed comments and code formatting

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-07-30 22:19:46 -07:00
Mark Charlebois c1317ad463 POSIX: code format changes
Changed the code format of the files derived from NuttX to match the code
style of PX4.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-07-30 17:19:55 -07:00
Mark Charlebois b046caa97b QuRT: build configuration changes
Added DSPAL header paths to toolchain_hexagon.mk.

Made changes to build configuraion for QuRT to support HIL testing.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-07-30 16:48:10 -07:00
Mark Charlebois 84e775272f POSIX: Fixes for unit tests after code refactor
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-07-28 20:48:51 -07:00
Mark Charlebois a96db1580f Platform cleanup - remove duplicate files
The POSIX and QURT platforms contain several duplicate files.
These files have been factored out into platforms/posix/work_queue.
The config files have been updated to include the
platforms/posix/work_queue module.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-07-28 20:08:50 -07:00
Mark Charlebois b7f1dd9858 muorb: file rename and updates
Changed muorb_fastrpc.cpp to px4muorb.cpp to match the name of the
library that implements the FastRPC calls.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-07-24 20:13:17 -07:00