122 Commits

Author SHA1 Message Date
Mark Charlebois
8cb8987bcd Use DriverFramework as a PX4 module (#4415)
* Use DriverFramework as a PX4 module

Targets wanting to use DriverFramework must add

   lib/DriverFramework/framework

to their config file.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>

* Removed spurious code

No need to add if check before for loop

Signed-off-by: Mark Charlebois <charlebm@gmail.com>

* Added DriverFramework to NuttX configs

Added lib/DriverFramework/firmware to nuttx configs

Signed-off-by: Mark Charlebois <charlebm@gmail.com>

* Updated src/lib/DriverFramework

* Removed DF_TARGET and __DF_${OS} defines

These are now handled inside DriverFramework

Signed-off-by: Mark Charlebois <charlebm@gmail.com>

* Updated DriverFramework

Signed-off-by: Mark Charlebois <charlebm@gmail.com>

* Restored __DF_${OS}

The include files in DriverFramwork need to know the target OS.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2016-05-03 10:03:28 +02:00
Daniel Agar
0b54bb99f9 NuttX quiet build
cmake combine NuttX copy and export

-NuttX wasn't recopying if it fails to compile
2016-04-17 16:02:28 -04:00
Mark Charlebois
98a6facd55 Fixed order of processing df libs
df libs were being defined after firmware directory was added and so
were not defined yet

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2016-02-19 16:59:46 +01:00
Mark Charlebois
8fb8260bd4 Added link of df driver libs
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2016-02-19 16:59:46 +01:00
Mark Charlebois
419f4c49ce Added new config entry for DF driver entries
DF drivers can now be added in each config file by adding

set(config_df_driver_list
	bmp280
	...
	)

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2016-02-19 16:59:46 +01:00
Julian Oes
5cf3215e38 cmake: try to compile and link everything for MPU
Unfortunately this still gives linking errors.
2016-02-19 16:59:46 +01:00
Mark Charlebois
b24d29e1eb Made generic external module support
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2016-02-19 16:59:44 +01:00
Mark Charlebois
ef88706fa6 Generalized use of external modules
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2016-02-19 16:59:44 +01:00
Mark Charlebois
014f15d8b0 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:43 +01:00
Mark Charlebois
a0d91d2225 Made generic external module support
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2016-02-19 16:59:41 +01:00
Mark Charlebois
136c6da36d Generalized use of external modules
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
Mark Whitehorn
5d588d98be change CMake CONFIG to fmu-v2 and THREADS to 4 2016-01-14 17:55:55 +01:00
Mark Whitehorn
4952d05652 debugging ms5611 on spi2 2016-01-14 17:55:54 +01:00
Lorenz Meier
32d062836e Moved ECL into its own submodule 2015-12-23 06:23:15 +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
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
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
67132b0b16 Register the driver framework correctly 2015-11-10 13:21:13 +01:00
Mark Charlebois
84e9380b10 Commened out manditory use of Clang-3.6
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-11-10 13:21:13 +01:00
Mark Charlebois
de1a7b30ce gyrosim and adcsim now compile with DriverFramework enabled
Only the posix build is tested for compilation

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-11-10 13:21:13 +01:00
jgoppert
27df787bff Separated matrix lib into own repo. 2015-11-05 20:27:48 -05:00
Lorenz Meier
529d9b4d3a Check and enforce CMake version 2015-10-26 10:19:30 +01:00
Lorenz Meier
5df1f84a53 Add sitl_gazebo as submodule 2015-10-25 18:25:21 +01:00
Lorenz Meier
f2b76a065c Fix Mac OS by going back down with CMake version 2015-10-25 14:47:21 +01:00
Lorenz Meier
e0d346e49d Require CMake 3.2 2015-10-25 13:43:07 +01:00
jgoppert
0acf6db64f Removed more eigen references. 2015-10-24 15:15:33 -04:00
jgoppert
0106be3e89 Added local position estimator. 2015-10-24 20:34:33 +02:00
Lorenz Meier
08e37f79dc Introduce jMAVSim as submodule 2015-10-17 17:33:27 +02: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
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
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
James Goppert
4dd59cd09a Fixed param dependencies. 2015-10-06 15:20:38 -04:00
James Goppert
e1bb618371 Working on uavcan building. 2015-10-04 21:29:22 -04:00
James Goppert
3c6d101792 Added support for ros-sitl. 2015-09-25 08:29:35 -04: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
James Goppert
cd98cfe555 cmake: ROMFS build overhaul. 2015-09-19 13:44:02 -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
3203f9ac9e Improvements to make support, added debug target. 2015-09-13 14:39:19 -04:00
James Goppert
3343d96a08 Fixed readme typo. 2015-09-12 15:59:33 -04:00
James Goppert
d4a16a68ac Fixed confusing else clause, added to coding standard. 2015-09-12 15:47:23 -04:00
James Goppert
7e41260135 Fix policy version number. 2015-09-12 15:08:54 -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
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
James Goppert
9ab9e1f142 Set version to correct number. 2015-09-11 00:31:36 -04:00
James Goppert
f94e3b3aaa Fixed config check. 2015-09-11 00:28:13 -04:00
James Goppert
8bc81d985f Fixed typo in version, exposed some more useful cmake targets. 2015-09-11 00:24:30 -04:00
James Goppert
0e8cc821a9 More config cleanup. 2015-09-11 00:15:33 -04:00