Commit Graph

932 Commits

Author SHA1 Message Date
Mark Charlebois b9fb4c48ad Fixed unresolved symbols
ecl module was missing for release build
qurt_external_hook() was missing.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2016-02-19 16:59:43 +01:00
Mark Charlebois 9a1daac639 Removed FC_ADD_ON dependency for qurt release build
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2016-02-19 16:59:43 +01:00
Mark Charlebois 7b6811ca54 Removed EAGLE_ADD_ON dependency
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2016-02-19 16:59:43 +01:00
Mark Charlebois 63620afead Added -fPIC flag for only qurt build
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2016-02-19 16:59:43 +01:00
Mark Charlebois 80b44478e5 Updated cmake_hexagon
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2016-02-19 16:59:43 +01:00
Mark Charlebois a356e845dc Updated cmake/cmake_hexagon 2016-02-19 16:59:43 +01:00
Mark Charlebois a002d6eabd Added rpcmem.a to posix_eagle_release build
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2016-02-19 16:59:42 +01:00
Mark Charlebois 0c42c469af Removed extra returns
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2016-02-19 16:59:42 +01:00
Mark Charlebois 01d0543e0a Provide impelmentation of px4muorb_KraitRpcWrapper
The Terminate function is not properly implemented yet.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2016-02-19 16:59:42 +01:00
Mark Charlebois 20f7d3d49f Whitespace fixes
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2016-02-19 16:59:42 +01:00
Mark Charlebois b63e29e53d Removed bad integration changes
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2016-02-19 16:59:41 +01:00
Mark Charlebois 65d89b5b97 Rebase changes on upstream master
This brings in many of the changes from the PX4 fork on ATLFLight.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2016-02-19 16:59:41 +01:00
Mark Charlebois 252eca9fb5 Require HEXAGON_ARM_SYSROOT for arm-linux-gnueabihf
The Toolchain-arm-linux-gnueabihf.cmake is currently used for
the SnapdragonFlight Apps processor.

The sysroot is required for cross building for Ubuntu 14.04 armhf.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2016-02-19 16:59:41 +01:00
Mark Charlebois 53bf98c630 Fixed HEXAGON_ARM_SYSROOT
This was being reset in px4_impl_posix.cmake

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2016-02-19 16:59:41 +01:00
Mark Charlebois 8ca3e8e057 Whitespace fixes
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2016-02-19 16:59:41 +01:00
Mark Charlebois 2a1ec7aad8 Removed bad integration changes
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2016-02-19 16:59:41 +01:00
Mark Charlebois 9f3bf8e9f4 Rebase changes on upstream master
This brings in many of the changes from the PX4 fork on ATLFLight.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2016-02-19 16:59:41 +01:00
Lorenz Meier df28f970fa CMake: Fix submodule init 2016-02-13 11:40:24 +01:00
Lorenz Meier 9583ff1b8b Add memory debugging switch support 2016-02-07 01:32:03 +01:00
Lorenz Meier fcbd717200 Switch POSIX sitl to EKF2 per default 2016-01-25 22:42:53 +01:00
Mark Whitehorn cfc3af8374 update fmu-v4 cmake config 2016-01-24 11:22:18 +01:00
Mark Whitehorn bb565f5d6a add sPort_telemetry cmd to fmu-v4 module list and change default port to ttyS6/usart8 2016-01-24 11:22:18 +01:00
Kabir Mohammed 37cbb90930 Crosscompiler support 2016-01-18 22:42:42 +01:00
Mohammed Kabir 37ffb61afd changes to rpi2 configs 2016-01-18 22:42:35 +01:00
Mohammed Kabir 4351eb147c Add native RPi2 build config 2016-01-18 22:42:29 +01:00
Mark Charlebois caab016425 Updated cmake_hexagon
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2016-01-10 20:54:26 +01:00
Mark Charlebois a8c49809fa Fixes for other qurt builds to use QURT_BUNDLE
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2016-01-10 20:54:26 +01:00
Mark Charlebois f22c574b87 Integrated cmake_hexagon for qurt build
Still a WIP since the IDL file needs to be replace with the
muorb IDL file.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2016-01-10 20:54:26 +01:00
Lorenz Meier 0a5a5f4619 Fix incomplete boot on new EKF config 2016-01-03 22:44:19 +01:00
Lorenz Meier ae2c46ac4c Fix px4fmu-v2_ekf2 config 2016-01-03 19:03:17 +01:00
Lorenz Meier ba90ba14b0 NuttX configs: added px4fmu-v2_ekf2 target for EKF2 development on Pixhawk 2016-01-02 17:17:47 +01:00
Lorenz Meier 0ed13a911e Get QuRT drivers out of the way, as we are using our own 2016-01-02 03:51:26 -08:00
Lorenz Meier 6f1e53c810 Fix POSIX eagle config 2016-01-02 03:14:06 -08:00
Lorenz Meier 735c823b57 Remove unmaintained NuttX config 2016-01-02 03:13:49 -08:00
Lorenz Meier 2d72c95eda Add new posix_eagle_default and qurt_eagle_default targets 2016-01-02 09:30:51 +01:00
Lorenz Meier dc11b8a7ef EKF2 sitl target: start normal app selection 2016-01-01 12:30:52 +01:00
Paul Riseborough bdaaca3d78 make: Add missing ekf2 module to PX4-v1 build 2016-01-01 12:30:11 +11:00
lchish 6e1f54e2ff Add missing stm32f4discovery make targets 2015-12-29 11:57:29 +01:00
Lorenz Meier af6751c55f FMUv2: Disable more unused modules 2015-12-28 14:26:19 +01:00
Lorenz Meier 03251d756b FMUv4: Build all apps (because we can!) 2015-12-26 14:43:48 +01:00
Lorenz Meier 60599cb9e5 FMUv2: Reduce flash use 2015-12-26 14:43:27 +01:00
Lorenz Meier 0ff72b16c5 FMUv1: Reduce flash use 2015-12-26 14:43:08 +01:00
Roman 7c3a67e374 use optimal recovery strategy for tailsitters 2015-12-24 10:17:53 +01:00
Roman ac4e95df05 use optimal recovery strategy for tailsitters 2015-12-24 10:17:31 +01:00
Lorenz Meier d3149153f6 Merged master into ekf2 2015-12-24 09:53:54 +01:00
Lorenz Meier 745dc13d67 Add simple example app 2015-12-23 09:12:16 +01:00
Lorenz Meier 02652af758 Enable EKF2 if LPE and INAV are both off 2015-12-23 06:23:16 +01:00
Lorenz Meier f50af43088 Restore normal SITL startup script 2015-12-23 06:23:16 +01:00
Lorenz Meier ed8645a83b Add EKF2 config and startup option for jMAVSim 2015-12-23 06:23:16 +01:00
Roman 63ac712eab allow testing ekf2 in simulation with jmavsim 2015-12-23 06:23:15 +01:00
Roman 19a5f9e73d updated ecl lib 2015-12-23 06:23:15 +01:00
Lorenz Meier 3be7a3323e Enable topic listener for Pixracer config 2015-12-07 11:41:03 +01:00
Anton Babushkin ec55a56191 bst: move to cmake 2015-12-04 19:37:35 +01:00
Lorenz Meier f0a4979da6 Merged master into driver_framework 2015-12-01 12:34:02 +01:00
David Sidrane 3ce6ee57e4 Set nunmber of UAVCAN interfaces on HW from top level cmake file 2015-11-30 15:44:36 -10:00
Lorenz Meier a3eeafebeb Enable UART6 and enable S.BUS. Tested to work. 2015-11-28 09:13:15 +01:00
Lorenz Meier 193cf888f5 FMUv4: Enable RC lib 2015-11-28 09:13:15 +01:00
David Sidrane a631a595e5 Added lib/terrain_estimation and lib/runway_takeoff requierd from rebase on master 2015-11-28 09:13:15 +01:00
David Sidrane 6df5aab064 px4fmu-v4 uses MPU6000 driver for ICM-20609-G 2015-11-28 09:13:15 +01:00
David Sidrane a67097731a Renamed pax4fmu-v3 to pax4fmu-v4 2015-11-28 09:13:15 +01:00
David Sidrane f3b7585a89 Wip FMUV3 2015-11-28 09:13:15 +01:00
Lorenz Meier 1de4403686 Enable perf command 2015-11-24 14:23:42 +01:00
Lorenz Meier c97854999a Re-add content 2015-11-22 14:01:52 +01:00
Lorenz Meier 3a2473e309 Revert Address sanitizer changes 2015-11-22 14:01:52 +01:00
Lorenz Meier 59e3b0d95c Renamed sitl simple to default 2015-11-22 14:00:01 +01:00
Lorenz Meier 8f8154cb1c Sanitize address 2015-11-22 13:59:24 +01:00
Lorenz Meier 75e962ee7c Merged master into driver_framework 2015-11-20 09:14:37 +01:00
Mark Charlebois c4438bf50a Fix to move DriverFramework includes to common
Nuttx now gets to link phase. But there are two unresolved symbols:

arm-none-eabi/include/c++/4.7.4/bits/basic_string.h:1128: undefined reference to `std::string::assign(char const*, unsigned int)'
arm-none-eabi/include/c++/4.7.4/bits/stl_list.h:1534: undefined reference to `std::__detail::_List_node_base::_M_hook(std::__detail::_List_node_base*)'

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-11-19 09:35:18 -08:00
Mark Charlebois 7111e9d4c9 Removed -lstdc++ for nuttx build
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-11-18 20:18:22 -08:00
Mark Charlebois 52957ab0cc Don't add DriverFramework dir for NuttX
I am unable to get the nuttx build dependencies set up so that
it builds the export dir before it builds df_driver_framework.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-11-18 20:14:48 -08:00
Mark Charlebois b8c40ecb6b Enabled DriverFramework drivers for SITL build
The code here works only for SITL at the present time.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-11-18 11:58:21 -08:00
Mark Charlebois 238db8c6d7 Moved IOCTL definitions to DevIOCTL.h in DriverFramework
Removed sched.h from platform/qurt since it is now in DSPAL.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-11-17 19:30:51 -08:00
Roman 4abff89be0 updated terrain estimator and runway takeoff libs to cmake build system 2015-11-17 22:28:09 +01:00
Mark Charlebois 1bcb93180b Set flags for building the proper DriverFramework target
The DF_TARGET cmake variable needs to be set to (linux, darwin, qurt, nuttx)
The define __DF_LINUX or __DF_QURT needs to be set.
The __DF_DARWIN target is untested

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-11-16 23:24:59 -08:00
Lorenz Meier 54d1302555 Fix missing rt lib 2015-11-10 13:21:13 +01:00
Mark Charlebois 7ddd5712c5 Integrated DriverFramework
Refacored ADCSIM
Compilation succeeds. Link not yet fixed.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-11-10 13:21:13 +01:00
Lorenz Meier a9a1e69dd6 CMake: Enable param meta injection 2015-11-09 09:31:57 +01:00
Roman Bapst de111a9266 Merge pull request #3077 from PX4/vtol_posix
ported vtol module to posix
2015-11-06 22:42:54 +01:00
Roman Bapst 6c703935f2 Merge pull request #3136 from dronecrew/matrix
Separate matrix lib into own repo, added testing and coverage
2015-11-06 21:07:44 +01:00
Youssef Demitri 318eeb0494 fixed ros build 2015-11-06 13:11:02 +01:00
jgoppert 27df787bff Separated matrix lib into own repo. 2015-11-05 20:27:48 -05:00
Lorenz Meier c912be70d1 Update approach to obtain the head git hash 2015-10-30 16:25:08 +01:00
Lorenz Meier f042c077b2 Fix compile fail for GIT version 2015-10-30 16:01:21 +01:00
Lorenz Meier b622080a65 Switch GIT command for revision hash 2015-10-30 15:40:41 +01:00
Lorenz Meier 8098821686 Merge pull request #3059 from PX4/can_upgrade
Automatic CAN node upgrading
2015-10-29 10:46:58 +01:00
tumbili b6c19400c0 build vtol att control module for sitl 2015-10-27 10:42:04 +01:00
Lorenz Meier a99390503a QuRT travis target: Make accessible via makefile 2015-10-27 09:30:22 +01:00
Lorenz Meier 09fcbde52b Make some space in flash 2015-10-26 10:25:45 +01:00
Lorenz Meier ba61f3f36c Re-add missing flags 2015-10-25 14:36:58 +01:00
Lorenz Meier 6c3c18b7c9 Robustify toolchain string matching 2015-10-25 14:35:46 +01:00
Lorenz Meier aff78e0f5e CMake / Ninja: Use console flag so upload targets can print their normal output and receive input. 2015-10-25 11:22:05 +01:00
jgoppert 0106be3e89 Added local position estimator. 2015-10-24 20:34:33 +02:00
gcarmix 94dcced652 Merge branch 'master' into master 2015-10-24 10:47:16 +02:00
carmix 68a5534a76 Merge commit '292b87fe2cfa2a5a00616c5ed13516bd60199f5a' 2015-10-24 10:41:40 +02:00
gcarmix 9748727331 Updated driver to the be compliant with the new mb12xx driver version,
inserted a line into the cmake config file for px4fmu-v2
2015-10-24 10:35:37 +02: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
Lorenz Meier bf09c46c2f Fix Hexagon toolchain detection for default installer 2015-10-23 23:28:26 +02: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 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
Daniel Agar a3f207f515 cmake fix windows upload 2015-10-14 13:56:24 -04:00
Daniel Agar e2fda01545 nuttx only show stderr
-failures will still be displayed, but we don't need to see normal
successful compile output
2015-10-14 12:19:39 -04:00
Daniel Agar adc59b9e71 cmake improve submodule handling 2015-10-14 12:13:33 -04:00
Daniel Agar 77f2295b62 cmake restore -Wbad-function-cast 2015-10-14 12:13:33 -04:00
Daniel Agar 75b3564789 cmake better nuttx copy 2015-10-14 12:13:33 -04:00
Daniel Agar 5865dc6434 cmake add libuavcan as subdirectory
-move uavcan submodule to src/modules/uavcan/libuavcan
-adding libuavcan as a subdirectory simplifies inheriting all compile
flags and include paths
2015-10-14 02:37:00 -04:00
Daniel Agar a45fe63430 bin_to_obj.py fix windows regex size match 2015-10-14 01:56:18 -04:00
Daniel Agar 3f0653e824 bin_to_obj.py don't use full path to visibility.h 2015-10-14 01:56:18 -04:00
Daniel Agar e8fd711a5c uorb generate interally set required paths 2015-10-14 01:56:15 -04:00
Daniel Agar 2c1e999e1a cmake remove rsync dep 2015-10-14 01:56:15 -04:00
Lorenz Meier 72dfc6b0b6 Merge pull request #2974 from mcharleb/param-cmake-fixes
Param cmake fixes
2015-10-12 08:57:27 +02:00
James Goppert 4ad82644fe Removed uavcan from nuttx firmware for v1. 2015-10-11 19:40:13 -04:00
Lorenz Meier e96f4e1944 FMUv1: Fix CAN compilation 2015-10-11 14:06:43 +02:00
Lorenz Meier cdb2a5432b FMUv1: Do not support CAN build, since its out of reach memory wise anyway 2015-10-11 13:12:54 +02:00
Lorenz Meier 9a0b6aca90 Revert "Remove rsync dependency"
This reverts commit 5b9a19aa65.
2015-10-10 22:27:07 +02:00
Lorenz Meier 5b9a19aa65 Remove rsync dependency 2015-10-10 17:45:31 +02:00
Lorenz Meier acd7235880 FMUv2: Add topic listener 2015-10-10 12:27:45 +02:00
Thomas Gubler 2bbb1ad35f python3 fixes 2015-10-10 11:03:04 +02: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
Daniel Agar 231140ca8a cmake fix .git path 2015-10-08 14:19:07 -04:00
Daniel Agar 4151522902 only enforce frame size for nuttx 2015-10-06 23:37:33 -04:00
Daniel Agar e4a78124d8 posix add -Wno-varargs for OS X 2015-10-06 18:41:48 -04:00
Daniel Agar 644a0cd30c adjust attitude_estimator_ekf for posix_sitl_simple 2015-10-06 18:28:30 -04:00
Daniel Agar 6c10cf18e4 re-enable Werror 2015-10-06 18:28:30 -04:00
Daniel Agar f13daa7314 cmake fix NuttX copy
-on the 2nd run this was copying NuttX to NuttX/Nuttx
2015-10-06 18:28:30 -04:00
Daniel Agar 330bacd229 cmake nuttx slightly quieter 2015-10-06 18:28:29 -04:00
Daniel Agar 7749d1cb1c cmake fix export paths for ninja
-make nuttx build a bit quieter
2015-10-06 18:28:29 -04:00
James Goppert 4dd59cd09a Fixed param dependencies. 2015-10-06 15:20:38 -04:00
James Goppert 55f963be07 Added ddd support. 2015-10-06 12:18:32 -04:00
James Goppert e1bb618371 Working on uavcan building. 2015-10-04 21:29:22 -04:00
Lorenz Meier d0ca0ff837 Added FMUv1 config 2015-10-03 17:25:49 +02: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
Andreas Antener 2d381d57b0 remove var for relative include directories 2015-09-28 11:21:42 +02:00
James Goppert 3c6d101792 Added support for ros-sitl. 2015-09-25 08:29:35 -04: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
Lorenz Meier 83558bfe14 SITL: Add missing PWM out sim 2015-09-20 16:41:11 +02:00
Lorenz Meier c1c235edb2 Merge branch 'cmake-2' into cmake-2-pthread 2015-09-20 10:34:03 +02:00
James Goppert 501f3cf2df Fix for tracking nuttx config changes. 2015-09-20 10:29:13 +02:00
Lorenz Meier bc8f4cf47f CLANG: Add more errors 2015-09-20 10:26:11 +02:00
Lorenz Meier 78f698a642 Merge branch 'cmake-2' of github.com:PX4/Firmware into cmake-2-pthread 2015-09-20 00:52:41 +02:00
Lorenz Meier 16717dc2d4 CLANG: Make deprecated warnings errors 2015-09-20 00:30:49 +02:00
Lorenz Meier a9f82c0537 CLANG: Improve compiler flags 2015-09-20 00:26:30 +02:00
James Goppert 2101ffbeca Removed extra print message. 2015-09-19 18:15:17 -04:00
James Goppert bd33d546e3 Fixed extra dir. 2015-09-19 18:10:57 -04:00
James Goppert 7b6dff7cdc Fix for romfs generation. 2015-09-19 17:57:54 -04:00
James Goppert cd98cfe555 cmake: ROMFS build overhaul. 2015-09-19 13:44:02 -04:00
James Goppert 7be3afe249 Fixed firmware name. 2015-09-19 12:13:17 -04:00
James Goppert 9f5edb32bf Made debugger tools optional. 2015-09-19 11:52:35 -04:00
James Goppert 8165cd2171 Fixed romfs dependency. 2015-09-19 11:36:20 -04:00
James Goppert 4830c7c9c1 Added io debug target. 2015-09-19 10:39:54 -04:00
James Goppert cc053bffcd Added px4io bin to ROMFS. 2015-09-19 09:58:10 -04:00
James Goppert 567431602a Adds alias __errno to linker file fixed link, need to understand why. 2015-09-14 19:55:53 -04:00
James Goppert 676a3d230c Work on px4io firmware building. 2015-09-13 23:20:00 -04:00
James Goppert f43ccdaea1 Make parameters a separate library. 2015-09-13 18:55:48 -04:00
James Goppert 19c84126a4 Fixed parameter generation dependencies. 2015-09-13 18:30:32 -04:00
James Goppert a58416235d Re-enable autostart. 2015-09-13 17:35:15 -04:00
James Goppert 3203f9ac9e Improvements to make support, added debug target. 2015-09-13 14:39:19 -04:00
James Goppert d4a16a68ac Fixed confusing else clause, added to coding standard. 2015-09-12 15:47:23 -04: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
Lorenz Meier c19fa0c822 Revert "Revert "Disable autostart for now so usb works.""
This reverts commit 998acf4d08.
2015-09-12 12:06:45 +02:00
Lorenz Meier 4bc44841f6 CMAKE: Move flags to general location, disable sections for linker on Mac OS 2015-09-12 11:25:48 +02:00
Lorenz Meier 998acf4d08 Revert "Disable autostart for now so usb works."
This reverts commit b2c67a4cf9.
2015-09-12 09:53:59 +02:00
Lorenz Meier 75dfa5a420 Remove outdated flow position estimator 2015-09-12 09:53:36 +02:00
James Goppert b2c67a4cf9 Disable autostart for now so usb works. 2015-09-12 02:22:27 -04:00
James Goppert 5ee0f18148 Improved module definition handling. 2015-09-12 01:35:09 -04:00
James Goppert 68a78b0580 Some cleanup of cmake module build. 2015-09-12 00:49:10 -04:00
James Goppert 0d28cdeb88 Fixed extra builtin target name. 2015-09-12 00:24:16 -04: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
Lorenz Meier 4178910509 Merge branch 'cmake-mc' of github.com:mcharleb/Firmware into cmake-2 2015-09-11 21:51:17 +02:00
Lorenz Meier 1b1adf3835 Add required flag for OS X 2015-09-11 21:47:50 +02: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
Lorenz Meier 5b86f3f3b3 Merge branch 'cmake-2' of github.com:jgoppert/Firmware into cmake-2 2015-09-11 21:39:45 +02:00
James Goppert ad321927e9 Added install target for nuttx. 2015-09-11 06:38:39 -04:00
Lorenz Meier e673a25344 Fix flags for OS X 2015-09-11 11:58:04 +02: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
James Goppert 0e8cc821a9 More config cleanup. 2015-09-11 00:15:33 -04:00
James Goppert ec209f13f0 Simplified config handling. 2015-09-10 23:53:25 -04:00
James Goppert 3d52582dd7 Merge branch 'cmake-2' of github.com:jgoppert/Firmware into cmake-2
Conflicts:
	CMakeLists.txt
2015-09-10 23:44:39 -04:00
James Goppert 07851b79c2 Work on config only for cmake arguments. 2015-09-10 23:43:59 -04: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 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 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
James Goppert 2c33f4921c Add makefile magic to simplify maintenance. 2015-09-10 21:15:55 -04: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
James Goppert 422d47dd9a Merge pull request #40 from mcharleb/cmake-mc
cmake: Added dspal and eigen32 to top level CMakeLists.txt
2015-09-10 17:45:20 -04:00
James Goppert 6966331a88 Working on param xml gen. Haven't updated qurt config yet. 2015-09-10 17:44:27 -04: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
James Goppert 149deeb11f Fixed autostart. 2015-09-10 14:38:09 -04: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
James Goppert 34eeee9fa9 Added defautl config for nuttx, nuttx now works over usb. 2015-09-10 13:57:54 -04: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
James Goppert 1eddfde439 Replaced awk with python script for bin_to_obj. 2015-09-10 02:03:29 -04:00
James Goppert d0c89b8396 Attempted to fix qurt build, some cleanup of old module funcs. 2015-09-09 23:11:25 -04:00
James Goppert 323ae36d9f Added nuttx sim config. 2015-09-09 23:07:30 -04:00
James Goppert bf18c84652 Cleanup of module building. 2015-09-09 23:00:58 -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
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
James Goppert b6b25f2ad1 Nuttx sim support. 2015-09-09 08:18:41 -04: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
James Goppert 73a328473e Fix for posix linker script. 2015-09-08 21:22:05 -04:00
James Goppert 126325bace Work on posix. 2015-09-08 20:50:18 -04: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 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 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
James Goppert 9d18337647 Fixed issues noted by voon, start of python script for bin to obj. 2015-09-08 10:15:22 -04:00
James Goppert bbf043e327 More work on romfs. 2015-09-08 05:32:55 -04:00
James Goppert b7850fc319 Fixed romfs building. 2015-09-08 04:57:45 -04:00
James Goppert 34f00ede4d Merge. 2015-09-08 04:20:48 -04:00
James Goppert bf9e541d19 Got romfs generation working. 2015-09-08 04:17:54 -04:00
James Goppert 0dab16123e Rename of modules. 2015-09-08 00:31:49 -04:00
James Goppert 852c72fdc7 Naming fix. 2015-09-08 00:07:41 -04:00
James Goppert 29520c0834 Support for os abstraction. 2015-09-07 23:58:31 -04:00
James Goppert 1d6b31d196 Switch to cmake build system. 2015-09-07 20:37:45 -04:00