Commit Graph

1098 Commits

Author SHA1 Message Date
Daniel Agar 678e2c415d move cmake/${OS} to platforms 2018-01-05 14:21:31 -05:00
Ayush 91cedcaba3 Added tfmini driver to build configs 2018-01-01 17:38:41 +01:00
Ayush 9f2bb6c7f9 Added support for TFmini-LiDAR 2018-01-01 17:38:41 +01:00
Lorenz Meier 32aa8d4f51 FMUv3: Use its own proper prototype for the image 2018-01-01 09:29:55 -05:00
Daniel Agar aef7a3cd9a cmake only init uavcan_board_ident if used 2017-12-10 19:24:05 -05:00
Daniel Agar ded055f71d cmake only init cmake_hexagon if used 2017-12-10 19:24:05 -05:00
Daniel Agar 7aeea62e21 px4fmu-v3_rtps override default naming 2017-12-10 15:58:01 -05:00
Daniel Agar df4ab8b59e px4fmu-v3_default name binary appropriately
- fixes #8436
2017-12-10 01:07:41 +00:00
Daniel Agar f1bd94e25b cmake add git submodule replace . in target name 2017-12-07 20:27:46 +00:00
Daniel Agar 769fef1d9a delete leftover px4io-v1 files 2017-12-07 14:48:28 -05:00
Daniel Agar ba8153afd9 px4fmu-v5_rtps fix config type (v4 -> v5) 2017-11-28 19:46:54 -05:00
Daniel Agar 1d1da12859 delete exampales ekf_att_pos_estimator 2017-11-26 16:42:26 -05:00
Amir Melzer a8787e8fe3 Add a driver for the Analog Devices ADIS16448 IMU (#8301) 2017-11-26 14:52:22 -05:00
Daniel Agar ec27865184 px4fmu-v2 add additional modules and sync with v3 2017-11-24 09:02:17 +01:00
Daniel Agar 01691e626b Merge FMUv3 into FMUv2 2017-11-24 09:02:17 +01:00
Daniel Agar d1a4c2dcd0 cmake handle git submodule depdencies 2017-11-23 00:22:45 -05:00
Florian Achermann a5cc4bcd08 Update SDP3x Airspeed Correction (#8242)
Update the model for the standard configuration based on the model from Sensirion and add also an option to do the tube pressure loss correction from Sensirion for other configurations.
2017-11-22 22:03:26 -05:00
Daniel Agar 822fc5725c cmake px4_add_module() make properties private 2017-11-22 10:36:51 +01:00
Avinash Reddy Palleti 456227f39e Add RTPS cmake config for AeroFC
Adding a seperate cmake config to support RTPS messaging on AeroFC. This will
include compiling protocol_splitter and micrortps_client, and starting both
of them at boot time.
2017-11-21 16:51:46 +01:00
Daniel Agar 53595bac0e board support add px4_i2c_bus_external/px4_spi_bus_external 2017-11-20 23:44:31 +01:00
Julien Lecoeur 89642a9203 Move src/module/systemlib/mixer to src/lib/mixer 2017-11-15 09:56:10 +01:00
davidaroyer b0942e996b cmake: use linux_sbus for ocpoc target 2017-10-30 20:53:28 +01:00
davidaroyer 090b668075 cmake: add missing vehicle control modules to ocpoc 2017-10-30 20:53:28 +01:00
Daniel Agar bd84061ea5 px4fmu-v2_default add sf1xx driver (#8185)
- closes #8177
2017-10-26 09:42:09 -04:00
Daniel Agar 48cfb37c5a move bottle_drop to examples (#8187) 2017-10-25 16:05:39 -04:00
Beat Küng 5f1debd431 px4fmu-v2 cmake config: disable mpu9250
out of flash again...
2017-10-24 13:15:14 +02:00
Daniel Agar fa8629f6c7 nxphlite config remove external_lgpl 2017-10-22 21:56:06 +02:00
Lorenz Meier 4923d0cba3 Remove TECS from system codebase
The TECS controller belongs really into the ECL (estimation & control library) where we have collected a number of vehicle control systems. It is being replaced by a new implementation of the algorithm, contributed by Paul Riseborough.
2017-10-22 21:56:06 +02:00
Daniel Agar 136d259876 travis-ci fix coverity scan and px4_metadata (#8156) 2017-10-20 09:20:30 -04:00
Daniel Agar d83073f016 move RTPS to dedicated px4fmu-v{3,4,4pro,5}, posix, sdflight builds (#8113) 2017-10-17 16:29:55 -04:00
Daniel Agar 979d092628 travis-ci enable tests under address sanitizier (#8095) 2017-10-17 16:26:17 -04:00
Beat Küng 747e392be6 px4fmu-v2 cmake config: disable team blacksheep telemetry driver
we're out of flash again :/
2017-10-17 09:56:01 +02:00
Daniel Agar 651df03f76 RTPS and micro-CDR build system cleanup (#8084) 2017-10-11 13:05:44 -04:00
David Sidrane b363b794b1 fxos8700cq:Part number change fxos8701cq 2017-10-04 04:49:35 -10:00
David Sidrane ccc83dde33 nxphlite-v3:Build rgbled_pwm driver 2017-10-04 04:49:35 -10:00
David Sidrane 9ce3fc6700 nxphlite-v3 cmake:Bring inline with master 2017-10-04 04:49:35 -10:00
Daniel Agar 2113772443 improve nuttx verbose build 2017-09-29 10:13:51 -04:00
Daniel Agar 48f1e3ed1c uORB generation move to msg/ 2017-09-29 10:13:51 -04:00
David Sidrane f79d06dae4 px4-same70xplained-v1:Update to master rename trone to teraranger 2017-09-29 10:13:51 -04:00
David Sidrane 8f78f57f14 nxphlite-v3:Update to master rename trone to teraranger 2017-09-29 10:13:51 -04:00
Daniel Agar 474f216a0a UAVCAN bootloaders split into separate repository (#7878) 2017-09-29 10:13:51 -04:00
David Sidrane d0853092f5 nxphlite-v3:add fxas21002c driver to board build 2017-09-29 10:13:51 -04:00
Daniel Agar 01b3e6fd25 NuttX upgrade cmake wrapper (#7873)
* NuttX cmake

* px4_macros:Pass the stringified predicate as second arg to static assert

   CC_ASSERT mapes to the c++ static_assert or provides the same
   funtionality for c via the other macros. The c++ static assert
   takes 2 argumants the prdicate and a message. This fixes the
   lacking second argument.

* Updated nuttx and apps submodule to upstream nuttx 7.21+==master

   This is the latest uptake of upstream nuttx and apps.

* ROMFS generate with xxd instead of objcopy

* delete nuttx-patches

* NuttX update submodules to latest px4_nuttx-master

* fix nuttx apps and board dependency

* docker_run update to latest container 2017-08-29

* cmake ROMFS portable sed usage

* NuttX update submodules to latest px4_nuttx-master
2017-09-29 10:13:51 -04:00
David Sidrane 5d33b602f3 px4-same70xplained-v1:Updated to upstream master
Airspeed changes
   add FastRTPS
2017-09-29 10:13:51 -04:00
David Sidrane f04ddf4368 Inital Commit of px4-same70xplained-v1 2017-09-29 10:13:51 -04:00
David Sidrane 1991c27749 px4fmu-v2:Removed commented out unit_test module removed on master 2017-09-29 10:13:51 -04:00
David Sidrane 65210ff1e5 nxphlite-v3:Removed unit_test module removed on master 2017-09-29 10:13:51 -04:00
David Sidrane f52338143b nxphlite-v3:Updated to upstream master
Add FastRTPS
2017-09-29 10:13:51 -04:00
David Sidrane ae2e1da93a px4_impl_nuttx:PX4 does not used compressed defconfigs nor configure.sh
The new upstream nuttx defconfig format is compressed. This
   will not work well for board configs that are out of the
   upstream NuttX tree.

   The reconstitution step will not replace all the non default
   settings. I.E. CONFIG_ARCH_BOARD_PX4xxxx and will remove
   setting that are not defined from the config/KConfig. Like
   CONFIG_ARCH_BOARD_PX4xxxx=y.

   Also the configure script will fail if run without
   and intervening make distclean

   The only 2 steps from configure that re needed are
   Copying the defconfig to .config and Make.defs
2017-09-29 10:13:51 -04:00
David Sidrane 5aee418e59 nxphlite-v3:Updated config with upstream naming changes
Reordering and renaming to match master for v3 config
2017-09-29 10:13:51 -04:00
David Sidrane ffffad352f nxphlite-v3:add usb_connected command 2017-09-29 10:13:51 -04:00
David Sidrane 3b42d30623 fxos8700c:Inital commit mag and accel driver 2017-09-29 10:13:51 -04:00
David Sidrane 2de54da648 nxphlite-v3:Updates for latest master 2017-09-29 10:13:51 -04:00
David Sidrane 7a0d6174e2 nxphlite-v1:Removed from PX4
Superceeded by nxphlite-v3 before released
2017-09-29 10:13:51 -04:00
David Sidrane 9ec37a78ff nxphlite-v3:Add mpl3115a2 (stubed out) 2017-09-29 10:13:51 -04:00
David Sidrane 5922e08f5e nxphlite-v1:incorperate master's led changes and fit 2017-09-29 10:13:51 -04:00
David Sidrane e281958b43 nxphlite-v3:incorperate master's led changes 2017-09-29 10:13:51 -04:00
David Sidrane fe3398300b nxphlite-v1 Changes to provides USB clocking
Support the PX4 contrib to upstream Nuttx for SIM. MCG and PMC
  clocking. Now sets the USB clock correctly.

  Refit in FLASH
2017-09-29 10:13:51 -04:00
David Sidrane 73944daf75 nuttx_nxphlite update config for changes on master 2017-09-29 10:13:51 -04:00
David Sidrane d409ca3e46 Inital commit of nxphlite-v3 2017-09-29 10:13:51 -04:00
David Sidrane 34627ac7b9 REVERT: To fit in FLASH
Conflicts:
	cmake/configs/nuttx_nxphlite-v1_default.cmake
2017-09-29 10:13:51 -04:00
David Sidrane ca9ac66b77 Add new lib/version 2017-09-29 10:13:51 -04:00
David Sidrane c1812af45e Inital commit of NXPhlite-v1 2017-09-29 10:13:51 -04:00
Daniel Agar af9690cf08 add simple posix tests to SITL 2017-09-28 16:50:47 +01:00
José Roberto de Souza d82806869f cmake: AeroFC: Remove unused apps and libs (#7993)
We are running out of flash space in AeroFC so a cleanup is necessary.

Tools not used in Aero RTF, INAV, fixed wing control, vtol control and
unused libs was removed.

before
$ size build_aerofc-v1_default/src/firmware/nuttx/firmware_nuttx
   text    data     bss     dec     hex filename
 956880    3524   14608  975012   ee0a4 firmware_nuttx

after
$ size build_aerofc-v1_default/src/firmware/nuttx/firmware_nuttx
   text    data     bss     dec     hex filename
 832200    3508   14616  850324   cf994 build_aerofc-v1_default/src/firmware/nuttx/firmware_nuttx
2017-09-22 21:24:00 -04:00
Henry Zhang 12384f3ffb MindPX: Enable DDS 2017-09-20 10:34:29 -04:00
Henry Zhang 42627777a0 cmake configs : add camera_feedback module 2017-09-20 10:34:29 -04:00
Daniel Agar 3498fe0c6f delete sdlog2 EKF2 replay (#7982) 2017-09-19 10:20:41 -04:00
Daniel Agar fb5cb87e9b enable -Wlogical-op and fix bmi160 2017-09-16 21:29:52 +01:00
Daniel Agar 35e15ed540 cmake add -Wmissing-field-initializers and a few others 2017-09-16 21:29:52 +01:00
Mateusz Sadowski e439070f25 drivers: refactor trone driver to work with Evo
This commit changes old trone driver into a generic
TeraRanger driver that supports both TeraRanger One
and TeraRanger Evo.

As a part of the change a new parameter was created
SENS_EN_TRANGER that allows to specify the following
modes of operation:

0 - sensors disabled
1 - autodetect sensors
2 - use TeraRanger One rangefinder
3 - use TeraRanger Evo rangefinder

Signed-off-by: Mateusz Sadowski <msadowski90@gmail.com>
2017-09-15 12:07:16 +01:00
Mateusz Sadowski d5f8a300df Revert "drivers: add support for TeraRanger Evo"
This reverts commit d1da112334a875d83abbd04c50fd3bed3b069886.
2017-09-15 12:07:16 +01:00
Mateusz Sadowski ee72931190 drivers: add support for TeraRanger Evo
This commit adds i2c support for TeraRanger Evo sensor
by Terabee

Signed-off-by: Mateusz Sadowski <msadowski90@gmail.com>
2017-09-15 12:07:16 +01:00
NRottmann 5352cffe3f Changing Names 2017-09-13 06:20:05 -07:00
David Sidrane a7ba7af89a FMUv1:Removed FMUv1 board from PX4 2017-09-10 13:37:23 -04:00
Julien Lecoeur ceeae7587e worst case analysis of stack usage (#7883)
* Makefile target "check_stack"
2017-09-10 13:34:34 -04:00
Larry Wang 0ae76aff32 updated to use rc driver from PX4, instead of from FC addons (#7798)
* updated to use rc driver from PX4, instead of from FC addons

* fixed format

* update per comments

* fix format

* fix format

* remove duplicated __PX4_QURT
2017-09-08 07:09:53 +02:00
Daniel Agar 35d908b453 cmake stop ignoring sign-compare 2017-09-07 10:27:36 +02:00
Daniel Agar fd8a5644e8 ets_airspeed posix port 2017-08-31 09:27:36 +02:00
Daniel Agar 641a90708c sdp3x_airspeed posix port 2017-08-31 09:27:36 +02:00
Daniel Agar 9cd25d604b ms5525_airspeed posix port 2017-08-31 09:27:36 +02:00
Daniel Agar 07619cf723 Make NuttX drivers cross platform (VDev -> CDev) 2017-08-31 09:27:36 +02:00
jgs2185 f9d219b187 Ulanding: add ulanding to cmake driver lists 2017-08-30 14:53:25 +01:00
David Sidrane 3b5ca4257b px4fmu-v5:Add ist8310 to build for FMUv5 2017-08-26 03:44:59 -10:00
David Sidrane a3b39394b8 px4fmu-v5:Added support for I2C LED driver 2017-08-26 03:44:59 -10:00
David Sidrane b54e1875ea mindpx-v2:Removed unsed and commented out rgbled_pwm driver 2017-08-26 03:44:59 -10:00
Daniel Agar a02caff1bc unit_test inline implementation and remove module build 2017-08-23 08:06:55 +02:00
Daniel Agar 47987f7e36 delete dummy tone alarm 2017-08-23 08:05:48 +02:00
Daniel Agar fd6499baca cmake simplify uavcan linking 2017-08-23 08:05:13 +02:00
NRottmann 0f8f5d29be Enable Simulation of the Hippocampus (AUV from TUHH)
Adding files which enable a simulation with the autonomous underwater
vehicle (AUV) from the Technical University Hamburg-Harburg
2017-08-20 20:59:15 +02:00
davidaroyer 0761d220b1 cmake: fix conflict in ocpoc ubuntu config 2017-08-20 19:35:55 +02:00
crossa 17ba5dd04a 1.Add sbus driver for linux . This driver can be used to read the
inverted S.bus signal and fetch the data of each channel and publish it

2. Fix the bug of linux_pwm_out, when the protocol is pca9685,
after the init method is executed,the method of determining the return
value of init method is incorrect,this will cause the driver to fail

3. Add linux_sbus driver to other posix prefixes cmake files
2017-08-20 16:51:04 +01:00
Lorenz Meier 23c790650a FMUv5: Enable DDS 2017-08-13 11:38:14 +02:00
Lorenz Meier 0e661e5a84 FMUv4PRO: Enable DDS 2017-08-13 11:38:00 +02:00
Lorenz Meier 2adb9e8c4f FMUv4: config style 2017-08-13 11:37:34 +02:00
Lorenz Meier fa123db5c3 FMUv3: Enable DDS 2017-08-13 11:37:15 +02:00
Lorenz Meier 462f1346bd Add motor_test command to FMUv3 2017-08-09 22:12:25 +02:00
Mark Charlebois f3e2648747 Use dummy bridge stub if fastrtpsgen not found
If the build config specifies RTPS topics to import/export and fastrtpsgen is not installed
on the build machine, then a dummy stub is used for the RTPS bridge.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2017-08-01 22:32:43 +02:00
Mark Charlebois 5feaa92bf7 Fixed eagle_default build
Was missing topics to send and receive vis RTPS

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2017-08-01 22:32:43 +02:00
Mark Charlebois b19dc0650e Fixed format issues and missing micro-CDR in a config file
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2017-08-01 22:32:43 +02:00
Vicente Monge c85039e413 Fixing rebase conflicts 2017-08-01 22:32:43 +02:00
Lorenz Meier 529def11e8 CMake / Clang: Increase warning level 2017-08-01 12:46:59 +02:00
Beat Küng 6e4ba1196b nuttx_px4fmu-{v1,v2}_default.cmake: disable sdlog2
Due to flash overflow
2017-07-29 23:10:47 +02:00
stmoon ae1f8381ce disable uavcan build to make space for other modules 2017-07-26 07:59:50 +02:00
davidaroyer d01150990b cmake: add ubuntu build for OcPoC hardware 2017-07-22 10:51:49 +02:00
Beat Küng ced700adf2 cmake px4fmu-v1 config: remove pwm_out_sim from build
To reduce flash space usage
2017-07-20 18:49:38 +02:00
Beat Küng fc4affbb5f ocpoc_mmap_pwm_out: remove this driver, it's in linux_pwm_out now 2017-07-13 16:53:28 +02:00
Beat Küng 8527c8276f drivers: rename rpi_pwm_out to linux_pwm_out 2017-07-13 16:53:28 +02:00
Beat Küng 243ae00e4e rpi_pca9685_pwm_out: remove this driver, it's now in rpi_pwm_out 2017-07-13 16:53:28 +02:00
Beat Küng 723f67b39a refactor navio_sysfs_pwm_out: rename to rpi_pwm_out 2017-07-13 16:53:28 +02:00
Beat Küng 785b997a2e posix_rpi_cross_no_shield.cmake: move -D__DF_RPI_SINGLE from commons to this file 2017-07-13 16:53:28 +02:00
crossa ef587c9593 Add -D__DF_RPI_SINGLE in posix_rpi_common.cmake
Add -D__DF_RPI in posix_rpi_common.cmake
Add rpi_rc_in and rpi_pca9685_pwm_out  driver in posix_rpi_common.cmake
Rename posix_rpi_cross_without_navio_or_pxfmini to posix_rpi_cross_no_shield.cmake
2017-07-13 16:53:28 +02:00
crossa 18298f861d Remove duplicated configs 2017-07-13 16:53:28 +02:00
crossa b4032f6290 Remove duplicated config 2017-07-13 16:53:28 +02:00
zhangfan 8a691d9bfb Add CMake file for raspberry pi without shield 2017-07-13 16:53:28 +02:00
Henry Zhang 145c05acc7 Add support for the mpu6k to the MindPXv2 2017-07-11 09:52:51 +02:00
Daniel Agar 85d7c7d165 add sdp3x_airspeed to px4fmu configs 2017-07-06 10:05:07 -04:00
Daniel Agar 73d9358b1d meas_airspeed rename to ms4525_airspeed 2017-07-06 10:05:07 -04:00
Daniel Agar 7029be87c0 MS5525 differential pressure driver 2017-07-06 10:05:07 -04:00
Lorenz Meier 792b03628f CMake: more clear instructions for python dependencies 2017-07-02 17:15:12 +02:00
Daniel Agar f82e85f8ff cmake remove -fno-math-errno and -fmerge-all-constants (#7462) 2017-06-23 11:38:31 -04:00
Daniel Agar 58ca307c9d move -fno-math-errno to nuttx only 2017-06-23 07:56:24 +02:00
Daniel Agar 75a91f79ae compiler optimizations add -fmerge-all-constants 2017-06-21 20:07:36 -04:00
Daniel Agar aeb1fe5a55 compiler optimizations add -fno-math-errno 2017-06-21 20:07:36 -04:00
Daniel Agar e1a3c53930 cmake posix and qurt impl fix whitespace 2017-06-19 20:24:09 +02:00
Daniel Agar 61da642cc8 cmake fix airframes.xml dependency 2017-06-19 20:24:09 +02:00
Daniel Agar 6a443765a5 cmake only include mavlink where used 2017-06-19 20:24:09 +02:00
Nicolae Rosia 3dd32492de Move find of STRIP_TOOL to toolchain
Signed-off-by: Nicolae Rosia <nicolae.rosia@gmail.com>
2017-06-13 08:16:37 +02:00
Nicolae Rosia a6acb2e68e ARM Toolchain: search compiler in PATH
Add CMake target for strip since these changes break adb_upload_to_bebop.

GCC users should add the cross compiler bin path to PATH (location of arm-linux-gnueabihf-g++).
Clang user should do the following:
* set CMAKE_CXX_COMPILER to clang++ by providing -DCMAKE_CXX_COMPILER=clang++ to cmake
* get GCC cross compiler - needed because Clang does not ship a CRT
* create a symlink for clang and clang++ in GCC cross compiler bin dir.
* add GCC bin dir to PATH

Signed-off-by: Nicolae Rosia <nicolae.rosia@gmail.com>
2017-06-13 08:16:37 +02:00
Nicolae Rosia 8f9ca9b45e Commit 8797a090dc06cd0c9f4cf132b67e4872af1ff8f1 relocated __DF_RPI
but missed to move it from *-clang.cmake Toolchain

Signed-off-by: Nicolae Rosia <nicolae.rosia@gmail.com>
2017-06-13 08:16:37 +02:00
Kabir Mohammed cd902d32ef Relocate DF_RPI define 2017-06-13 08:16:37 +02:00
Kabir Mohammed 8b1ca2ea9b Rename RPi/Bebop toolchain locations to PX4_TOOLCHAIN_DIR 2017-06-13 08:16:37 +02:00
Kabir Mohammed f123ade6d3 Rename to generic arm toolchain 2017-06-13 08:16:37 +02:00
Daniel Agar f26cd01d16 param gen reorganize and fix DISABLE_PARAMS_MODULE_SCOPING 2017-06-12 12:18:53 -04:00
Lorenz Meier c6cece52d3 Sensirion SDP3X airspeed / differential pressure sensor driver 2017-06-11 11:19:25 +02:00
Marco Zorzi aef522553e unmanned ground vehicle (UGV) controllers and Traxxas Stampede configuration (#7175) 2017-06-06 13:26:51 -04:00
Lorenz Meier c80fd2c317 FMUv4: ENable PCA9685 driver so it is compiled at least in one config by default 2017-06-04 12:52:41 +02:00
Daniel Agar db816982cd px4params don't search recursively for params
- move controllib_test under controllib
2017-06-04 18:22:42 +08:00
davidaroyer 078d13e45e toolchains: remove unnecessary definition 2017-06-04 04:24:50 +08:00
davidaroyer c5ac73e87e cmake: add support for Aerotenna OcPoC-Zynq hardware 2017-06-04 04:24:50 +08:00
Daniel Agar beaa758605 lcov ignore src/examples (#7341) 2017-06-02 23:22:50 -04:00
Daniel Agar 24b26e53b9 cmake organize code coverage handling and base 2017-06-02 19:35:18 -04:00
Daniel Agar ac4a706da0 build system fixes and improvements
- deploy px4 metadata using target
 - clang scan-build upload output to s3
 - clang-tidy properly check headers
 - add cppcheck helper
 - force gcc color
2017-06-02 19:35:18 -04:00
Nicolae Rosia 4af7036a8a replace navio_gpio with linux_gpio
Signed-off-by: Nicolae Rosia <nicolae.rosia@gmail.com>
2017-05-18 23:09:44 +02:00
Nicolae Rosia 32498009a3 navio_adc: add driver for Navio2 ADC
Signed-off-by: Nicolae Rosia <nicolae.rosia@gmail.com>
2017-05-14 17:51:02 +02:00
Mohammed Kabir a19a5804e7 cmake configs : add camera_feedback module 2017-05-12 22:11:17 +02:00
Henry Zhang 92fc82da33 MindPX: Remove MPU6500 driver, use MPU9K driver instead 2017-05-02 11:52:12 +02:00
Lorenz Meier 3affe67c96 Enable BMI055 for FMUv5 and improve console handling 2017-04-24 10:38:39 +02:00
Sergej Scheiermann 641a03510c changes on drivers according to comments from DavidS 2017-04-24 10:38:39 +02:00
Sergej Scheiermann 5923e66cf3 bmp285 support added 2017-04-24 10:38:39 +02:00
Sergej Scheiermann c3711efd27 initial commit of bmm150 2017-04-24 10:38:39 +02:00
Sergej Scheiermann cfed8ee2dd bmi055 initial integration 2017-04-24 10:38:39 +02:00
Lorenz Meier de7fef8dd6 Crazyflie: Switch to logger 2017-04-24 10:12:23 +02:00
Lorenz Meier 17c022b73e Aerocore 2: Switch to logger 2017-04-24 10:12:23 +02:00
Andrew C. Smith d21b6655d2 Add the Gumstix AeroCore2 to the build system. 2017-04-20 12:24:27 -10:00
Beat Küng 7442affaf6 px4fmu-v2_default.cmake: enable vmount 2017-04-20 08:29:00 +02:00
Daniel Agar 7b8f3b03a8 cmake patch depend on previous patch target (#7075) 2017-04-18 23:50:20 -04:00
Daniel Agar 3721fb9d52 cmake cleanup nuttx dependency handling (#7007)
- closes #6501
 - closes #6820
 - closes #6881
2017-04-17 20:57:35 -04:00
Daniel Agar 827725fbe0 cmake remove -Weffc++ (#7044)
- closes #7040
2017-04-13 13:30:22 -04:00
ChristophTobler 232f428f6e add ll40ls for Aerofc 2017-04-10 20:20:36 +02:00
Mark Charlebois 36f3befec8 Updated to latest dspal and cmake_hexagon
DriverFramework has to be updated to update dspal to the
ATLFlight version of dspal.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2017-04-10 08:49:29 +02:00
James Goppert 10ebac2026 Fix build when px4 is a submodule (#7006)
* Fix build when px4 is a submodule

* Check if submodule directory exists.

* Fix submodule directory reading
2017-04-08 23:47:38 -04:00
David Sidrane 3435936189 Force the patches to be applied in order again!
While the list was sorted, this change serialize the application
   of the patches.

   Moved the disply to the actual application of the patch not
   the configuration step.
2017-04-08 07:59:21 +02:00
Matthias Grob 854511b14b cmake: NuttX make shell script call explicit (#6996) 2017-04-07 11:33:19 -04:00
Lucas De Marchi 260b8ea940 aerofc: remove USB
There's no USB, don't bring it in.
2017-04-06 12:18:30 +02:00
Lucas De Marchi 3c48aa4cf1 aerofc: use MPU9250 driver 2017-04-06 12:18:30 +02:00
Beat Küng 2946aafc2b cmake configs: add -DPARAM_NO_AUTOSAVE for esc32, px4esc, px4cannode, s2740vc
These configs do not have the work queue enabled.
2017-04-06 11:49:03 +02:00
Lorenz Meier bbd1906dfb Add Rover SITL config 2017-04-02 21:52:18 +02:00
Beat Küng e87aa6f6c1 cmake: remove ${PX4_INCLUDE_DIR}visibility.h
This is already added in px4_base.cmake and PX4_INCLUDE_DIR is not set
either.
2017-03-29 23:02:09 +02:00
Beat Küng d7703173b2 Critical: Fixes Snapdragon Flight parameter synchronization problem (#6910)
* cmake: Fixes problem caused when the generated parameters.xml differs for the ARM and DSP builds.

* fix px4_getopt.h: add accidentally removed file
2017-03-28 16:10:17 +02:00
David Sidrane a5fa4e9c02 Restructure patch ordering and dissolve 90000-wip-inflight-to-upstream.patch (#6878)
* Order patch application

   Per discussion with @demarchi this PR adds ordering to the
   patch application.

   This alos add some encoding
   00000      series - is for px4 non up streamable changes
   60000 (bp) series - is for back ports
   90000      series - is for wip that shold make it upstream

* Restore 00010-workarround-for-flash-data-cache-corruption

  Extract this from the 90000-wip-inflight-to-upstream.patch
  and orders it.

* Moved upstreamed 0dbf44e flash fix to bp patch

* Moved upstreamed 5481087 cdcacm fix to bp patch

* Moved upstreamed ec85425 STM32F7 copy paste errors to bp patch

* Moved upstreamed 20e7237 HSI should not be turned off to bp patch

* Moved upstreamed ca895b9 Adding missing CONFIG_ prefix to bp patch

* Moved upstreamed 169b398 STM32: Fixes the bkp reference counter issue to bp patch

* Moved upstreamed 550d259 STM32F7: Fixes the bkp reference counter issue to bp patch

* Moved upstreamed 02825f3 STM32F3X: Add missing STM32_BKP_BASE to bp patch

* Renamed for ordering and classification

* Renamed for ordering and classification

* Renamed for ordering and classification

* Renamed for ordering and classification

* Renamed for ordering and classification

* Renamed for ordering and classification

* Renamed for ordering and classification

* Renamed for ordering and classification

* Renamed for ordering and classification

* Renamed for ordering and classification

* Renamed for ordering and classification

* Renamed for ordering and classification

* Renamed for ordering and classification

* Renamed for ordering and classification

* Renamed for ordering and classification

* Renamed for ordering and classification

* Renamed for ordering and classification

* Renamed for ordering and classification

* Renamed for ordering and classification

* Renamed for ordering and classification

* Renamed for ordering and classification

* Renamed for ordering and classification

* Renamed for ordering and classification

* Renamed for ordering and classification

* Order Patches by Name
2017-03-23 10:23:16 -10:00
Beat Küng 941d17d74c cmake: make sure params defined in external modules are found 2017-03-23 08:37:48 +01:00
Beat Küng a4fc7ae95e simplify px_process_params: remove --modules, use a list for --src-path instead 2017-03-23 08:37:48 +01:00
Henry Zhang 1880ed9758 MindPX: Start send_events handler in MindPX (#6875) 2017-03-22 02:03:14 -04:00
Beat Küng 1e4fcb6616 cmake configs: add systemcmds/led_control and lib/led where needed 2017-03-12 00:08:35 +01:00
Beat Küng 4b1bbaa114 posix: remove rgbledsim driver which does nothing
In addition this is almost a copy of the rgbled driver
2017-03-12 00:08:35 +01:00
Daniel Agar 0611677ee2 segway move to examples 2017-03-11 11:40:14 +01:00
Daniel Agar 89ff9f1fe3 cmake fmu-v3 fix and enable more examples
- sync posix_sitl_default and px4fmu-v4pro/v5 with fmu-v3
 - fixes #6667
2017-03-11 11:40:14 +01:00
Beat Küng 2a6eac578d rpi: add HIL config 2017-03-10 09:00:24 +01:00
Beat Küng dcdfcbe64f posix_sitl_default cmake: add ekf2_replay
so that CI will build it
2017-03-04 22:47:54 +08:00
Daniel Agar cff430e137 px4fmu-v2 enable ll40ls and frsky_telemetry
- closes #6686
 - closes #6294
2017-02-27 22:52:06 +01:00
James Goppert 85f62f5da0 Fix param scoping to use cmake for parsing. 2017-02-17 11:26:46 +01:00
Daniel Agar 8c837e72be fixedwing_control example fix fds init (#6575) 2017-02-13 22:23:16 -05:00
Beat Küng 212502b2b1 camera_trigger: make sure it builds for SITL & add to SITL cmake 2017-02-07 13:36:16 +01:00
Beat Küng d3f71454cc posix_sitl_default.cmake: add modules/events
It's not used yet, just to make sure it compiles fine.
2017-02-03 13:57:48 +01:00
David Sidrane c976a26156 Use wild card *_PX4_* for upload
Compliments the Bootloader change To simplify the ripple effect on the tools, we will be using  /dev/serial/by-id/*_PX4_* to locate PX4 devices. Therefore  moving forward all Bootloaders must contain the prefix "PX4 BL "  in the USBDEVICESTRING
2017-02-02 08:50:09 +01:00
Daniel Agar dcddcdd28e cmake git ver depend on index and HEAD 2017-01-30 08:57:53 +01:00
Daniel Agar 159b35919a cmake nuttx build use full path to copy stamp
- fixes #6469
2017-01-30 08:57:53 +01:00
Lorenz Meier ff305fa440 SITL: Default to same estimator as onboard 2017-01-29 11:43:10 +01:00
David Sidrane b3f5a0d51a Tools to ease nuttx config maintenance (#6452)
* Added tool to restore defconfig sections after make [old|menu]config

* Use tool to restore defconfig sections after make [old|menu]config

   invocation:
      make px4fmu-v2_default oldconfig_px4fmu-v2
      make px4fmu-v2_default menuconfig_px4fmu-v2
2017-01-27 14:14:48 -10:00
Daniel Agar bc72b8161f px4fmu-v2_default add logger 2017-01-26 18:39:09 -05:00
Siddharth Bharat Purohit 917a8f63f6 events: add temperature calibration scheme 2017-01-25 22:43:29 +01:00
Siddharth Bharat Purohit 0cc034ee15 px4fmu-v2 cmake: disable uavcan build to make space for tempcal module 2017-01-25 22:43:29 +01:00
Siddharth Bharat Purohit 137ade308f tempcal: change to double as float was insufficient for calculation 2017-01-25 22:43:29 +01:00
Lorenz Meier 0909c32262 PX4 FMU: Start send_events handler in all FMU generations 2017-01-25 22:43:29 +01:00
David Sidrane cf893b6e89 TAP_V1 removed unused GPIO defines
Removed GPIO pins defines that were never user GPIO.
  Removed the camera_trigger driver as it depends on
  GPIO that are not on the TAP V1 HW
2017-01-21 11:45:36 +01:00
Michael Schaeuble 7aea2ca030 BebopFlow: Add V4L2 interface and image functionality 2017-01-20 23:09:13 +01:00
Michael Schaeuble f572752412 BebopFlow: Add initial PX4 app and structure 2017-01-20 23:09:13 +01:00
Michael Schaeuble 85aa710414 BebopRangeFinder: Integration into build and starup 2017-01-20 23:09:13 +01:00
Paul Riseborough b2113b9abe cmake: Reduce flash size for px4fmu-v2 build
Removes Iridium SBD support
2017-01-19 19:24:52 +01:00
wangxdflight b693e29d64 enable px4 flight for excelsior(legacy) 2017-01-16 08:25:58 -08:00
Daniel Agar 73b31c031f cmake nuttx rsync copy only use relative paths
- this is to work around confusion between cygwin and windows native
   paths
 - closes #6332
2017-01-16 02:16:23 -08:00
Daniel Agar 6961a513c7 clang-tidy readability-braces-around-statements 2017-01-14 18:31:09 -05:00
mazahner 06d28b2635 Rework Includes during the uorb message generation
each CMakeFile that generates parameters should add its path to the msg_include_path
which will then be handled in the px_generate_uorb_topic_files.py
2017-01-14 10:07:12 -08:00
Nicolae Rosia 6ffffe3367 Remove invalid eigen reference
This is a left over from cleanup 0acf6db64f

Signed-off-by: Nicolae Rosia <nicolae.rosia@gmail.com>
2017-01-14 10:02:44 -08:00
Daniel Agar 8caf6c54fa Makefile cleanup and travis-ci s3 deploy (#6329)
- pulls more of the travis-ci s3 deploy into the repo so we can potentially migrate to another CI system
 - fixed the sizes output and added verbose compiler version to cmake (#6322)
 - fixed filenames for firmware uploaded to s3 (was broken by the changes yesterday)
 - fixed some broken git version display in cmake
 - Makefile organization
 - simplified .travis.yml
 - added a print to know which config the nuttx patch was being applied to
 - docker_run.sh now respects PX4_DOCKER_REPO for setting the docker image, but defaults to the good production nuttx image
2017-01-14 09:38:28 -05:00
James Goppert 434dddedea Changes to add px4fmu-v2_lpe config. 2017-01-13 01:11:14 -08:00
Beat Küng 78c0186ff8 fix posix_rpi_native.cmake: add __DF_RPI define
Needed for the DriverFramework. Fixes the error:
15050 SPIDevObj start failed
15142 DevObj start failed
15185 Unable to open the device path:
ERROR [df_lsm9ds1_wrapper] LSM9DS1 start fail: -1
ERROR [df_lsm9ds1_wrapper] DfLsm9ds1Wrapper start failed
Command 'df_lsm9ds1_wrapper' failed, returned -1
2017-01-13 00:17:10 -08:00
BharathR 8c7f810cc2 Fixed build error in eagle_legacy_default mode (px4muorb.h generation issue) 2017-01-11 17:12:27 -08:00
bharathr ee0b0f2a3e Fixed build error in Snapdragon Flight legacy driver mode (partially) 2017-01-11 17:12:27 -08:00
Daniel Agar dc787830b5 circleci run tests under code coverage (#6273)
* use regular optimization levels for the code coverage build.
 * the mixer test fails intermittently when built without optimization
2017-01-09 16:08:40 -05:00
Daniel Agar 48e7c784e7 remove px4_model targets from all 2017-01-06 11:56:27 +01:00
Stephan Brown 67a484ac34 Make parameter generation also depend on the scripts that run. Address some review comments. 2017-01-06 09:58:58 +01:00
mazahner 4e9c986806 remove optional_files dependency
This is a remainder of a rebase onto master
2017-01-04 09:29:52 +01:00
mazahner 6fe9b8e543 use CmakeLists scope to generate te XML file
- the only difference really is, that scope (the configuration.cmake) is already passed
  to px_process_params via the argument --scope. The Paths in --scope are evaluated w.r.t
  the path to src provided via the -s /--src-path argument.
- if no --scope is proveided. the Old scheme by simply walking the full --src-path directory
  is applied
2017-01-04 09:29:52 +01:00
Daniel Agar a0837b88a5 cmake add clang santiziers
- PX4_ASAN=1 enable address sanitizer (was MEMORY_DEBUG)
 - PX4_TSAN=1 enable thread santiizer
 - PX4_UBSAN=1 enable undefined behaviour santizier (some options off)
2017-01-02 10:14:41 +01:00
Daniel Agar 1ceb0bebb5 sitl tests don't manually stop mavlink and dataman 2017-01-02 10:14:41 +01:00
Daniel Agar 34b2fb55e6 Makefile add clang-check and clang-tidy helpers 2017-01-02 10:14:41 +01:00
Daniel Agar 28971caaf3 partially restore mavlink_tests 2017-01-02 10:14:41 +01:00
Daniel Agar dc9a71b674 WIP startup_shutdown test with ASAN on 2017-01-02 10:14:41 +01:00
Daniel Agar c9192e23e1 quiet git header output 2017-01-02 10:14:41 +01:00
Lorenz Meier 9178bb7371 Add new posix_sitl_shell build target which allows to run -make posix_sitl_shell none- in order to get an empty shell 2017-01-01 13:59:41 +01:00
Roman 06498ce01a build ulanding radar for Pixhawk version 2
Signed-off-by: Roman <bapstroman@gmail.com>
2016-12-27 15:35:55 +01:00
Daniel Agar e491817610 cmake nuttx create target for nuttx copy 2016-12-27 11:45:48 +01:00
José Roberto de Souza 53f2c1eb19 aerofc: Implement ADC
Measure the battery voltage of Aero RTF kit will be done by FPGA
and read by AeroFC using I2C bus.

The protocol is a little bit odd, it have different I2C slave
address for each "register", in future the FPGA RTL will
have a protocol more similar to other I2C sensors.

Also Aero RTF don't have a ADC line to measure current consumption.
2016-12-26 16:11:33 +01:00
Lorenz Meier 8165ef7d95 SITL: Move back to LPE as its more robust to host timing 2016-12-25 18:15:51 +01:00
Lorenz Meier f56bb95bdd Default SITL to the same estimator as the physical vehicle 2016-12-24 16:14:52 +01:00
Michael Schaeuble b9bd30d4e2 Build hardfault_log in px4fmu-v3 target 2016-12-22 21:58:16 +01:00
Beat Küng cf21d8f554 cmake: remove unneeded file build_git_version.h.in
Obsolete since 9ee478e1f7
2016-12-21 16:59:32 +01:00
Beat Küng ffe4688d0b px4_base.cmake: make sure px_update_git_header.py is executed in the source directory
otherwise the 'git describe' command can fail.
2016-12-21 14:09:41 +01:00
Lucas De Marchi 9ee478e1f7 cmake: fix update of git hashes
Since the git hashes were being generate by cmake it would only be
generated if the header file was not present. Simple test:

    $ make aerofc-v1_default
    $ touch a
    $ git add a
    $ git commit -m tmp
    $ make aerofc-v1_default

The file build_aerofc-v1_default/build_git_version.h should have the new
hashes and the correspondent .c/c.pp files should be rebuilt, but they
aren't.  The end result is that checking the version with "ver git" in
the nsh console will point to the wrong commit.

This moves the generation of the header to a separate tool and enforces
the command to be executed every time.
2016-12-21 14:09:41 +01:00
Beat Küng 115301d43a cmake configs: add lib/version to remaining configurations 2016-12-21 11:35:10 +01:00
Beat Küng 66a6ce880c cmake stm32f4discovery: add lib/version 2016-12-21 11:35:10 +01:00
Beat Küng 41dc34204c version cleanup: move all version information into version.c and use a common API
The provided versioning information is the same, except for some additions,
like OS version (which still need to be implemented on NuttX).
2016-12-21 11:35:10 +01:00
Lorenz Meier becd9457ca Call airframes script with board arg 2016-12-21 08:37:45 +01:00
David Sidrane 4712ed1889 Complete px4fmu-v5 Led configuration 2016-12-21 08:34:22 +01:00
David Sidrane dc8c6ea5e5 White space fixes 2016-12-21 08:34:21 +01:00
David Sidrane b7cc04e0d2 Changes to tap_v1 for upstream Nuttx and hardfault logging 2016-12-21 08:34:21 +01:00
David Sidrane 402251819d Changes to mindpx-v2 for upstream Nuttx and hardfault logging 2016-12-21 08:34:21 +01:00
David Sidrane f149adac54 Changes to px4-stm32f4discovery for upstream Nuttx 2016-12-21 08:34:21 +01:00
David Sidrane 17633c0714 Changes to px4fmu-v4 for upstream Nuttx and hardfault logging 2016-12-21 08:34:21 +01:00
David Sidrane c89c47e57e Changes to px4fmu-v3 for upstream Nuttx 2016-12-21 08:34:21 +01:00
David Sidrane d9575964a4 Changes to px4fmu-v2 for upstream Nuttx and hardfault logging 2016-12-21 08:34:21 +01:00
David Sidrane 82cb9353d1 Changes to px4fmu-v1 for upstream Nuttx 2016-12-21 08:34:21 +01:00
David Sidrane 64c00e6c95 Changes to crazyflie for upstream Nuttx and hardfault logging 2016-12-21 08:34:21 +01:00
David Sidrane 3ddeb07b25 Changes to auav-x21 for upstream Nuttx and hardfault logging 2016-12-21 08:34:21 +01:00
David Sidrane a2adf94d13 Changes to aerofc-v1 for upstream Nuttx and hardfault logging 2016-12-21 08:34:21 +01:00
David Sidrane 1b17bc74b2 Adding zubaxgnss-v1 bootloader 2016-12-21 08:34:21 +01:00
David Sidrane 276bf47865 Adding s2740vc-v1 board and bootloader 2016-12-21 08:34:21 +01:00
David Sidrane 6ce7ade2c6 Adding px4nucleoF767ZI-v1 2016-12-21 08:34:21 +01:00
David Sidrane bca8767981 Adding px4fmu-v5 2016-12-21 08:34:21 +01:00
David Sidrane 925102464b Adding px4fmu-v4pro 2016-12-21 08:34:21 +01:00
David Sidrane f14a0ba107 Adding px4flow-v2 bootloader 2016-12-21 08:34:21 +01:00
David Sidrane 24e8c213ee Adding px4esc-v1 board and bootloader 2016-12-21 08:34:21 +01:00
David Sidrane bba8371b0f Adding px4cannode-v1 board and bootloader 2016-12-21 08:34:21 +01:00
David Sidrane cd8b759fed Adding esc35-v1 board and bootloader 2016-12-21 08:34:21 +01:00
David Sidrane c417a1be7b Adding USVCAN bootloader support 2016-12-21 08:34:20 +01:00
David Sidrane d6098c8226 Adding Nuttx Build infrastructure 2016-12-21 08:34:20 +01:00
Julian Oes d62520e26b Update DriverFramework and build lib/rc 2016-12-20 14:38:28 +01:00
Julian Oes de9cb46a56 spektrum_rc: move and clean up (untested) 2016-12-20 14:38:28 +01:00
Julian Oes c0fcffae76 spektrum_rc: make it compile 2016-12-20 14:38:28 +01:00
Dennis Mannhart e2ded396c8 Snapdragon pwm (#5940)
* px4 pwm driver for snapdragon

* added driver to cmake file

* applied review changes and adjusted format

* adjustement to review 2

* run formatting

* added timeout initialization
2016-12-16 18:41:45 +01:00
Daniel Agar bce7ecb0f6 Iridium driver and support
Mavlink module implement HIGH_LATENCY (Iridium)
2016-12-14 08:20:01 +01:00
Roman 4fab448000 build gps driver for bebop2
Signed-off-by: Roman <bapstroman@gmail.com>
2016-12-12 23:48:15 +01:00
Mark Whitehorn d8d9ab1bfb switch fmu-v2 config back to old logger: config now identical to master 2016-12-10 12:56:39 +01:00
Mark Whitehorn d4c707e698 remove INAV and switch to new logger for fmu-v2 builds
roughly 10K bytes below the 1MiB limit
2016-12-10 12:56:39 +01:00
Lorenz Meier 1bef1ae34a Make space in test config 2016-12-10 01:00:11 +01:00
Michael Schaeuble b0ee5256d5 Disable LPE in px4fmu-v2_default
With GCC 4.9 the binary is to large for the flash memory.
This is why we disabled LPE on that platform.
2016-12-09 18:59:42 +01:00
Daniel Agar 1941dfca87 add tests code coverage
-closes #5862
2016-12-07 20:17:00 +01:00
Lorenz Meier f15d1ce5e7 Sort and sync FMUv3 config 2016-12-05 15:27:11 +01:00
Dennis Shtatnov d71645b321 CF2 Update to EKF2 2016-12-03 17:02:16 +01:00
Julian Oes f092b31f54 Update cmake_hexagon and DriverFramework
This update is needed after changes in
https://github.com/ATLFlight/cross_toolchain/pull/10.
2016-12-02 21:18:18 +01:00
Lorenz Meier 654c7d2d16 Remove unused system command for FMUv2 config and re-enable MPU9250 driver 2016-12-02 20:58:38 +01:00
Mark Whitehorn a0796c6847 add tests to auavx21 config 2016-11-29 08:03:23 +01:00
José Roberto de Souza 621a0fe492 aerofc: Enable IST8310 2016-11-28 09:21:12 +01:00
José Roberto de Souza c49c3f469e aerofc: add upload command
AeroFC is updated by Aero board using the UART between AeroFC
and Aero board.

This script will copy firmware and px_uploader.py to Aero board and run
px_uploader.py with the correct paremeters. User only needs to have a
network connection (Ethernet over USB or WiFi) with Aero board to update
AeroFC firmware. The IP/hostname can be given by AERO_HOSTNAME
environment variable.
2016-11-28 09:21:12 +01:00
James Goppert 893714dc6a aerofc: Fixes for init 2016-11-28 09:21:12 +01:00
José Roberto de Souza a1eec553dc aerofc: Remove unused modules 2016-11-28 09:21:12 +01:00
Lucas De Marchi 0cd7984b7f Rename asc board to aerofc 2016-11-28 09:21:12 +01:00
David Sidrane 100f977b0c Added listener removed unconfigured drivers 2016-11-28 09:18:45 +01:00
David Sidrane fb3e2665f3 Inital Commit AUAV X2.1 2016-11-28 09:18:45 +01:00
Julian Oes afd6fd3896 px4fmu-v2_default: save more flash
This disables the following modules to save flash:
- mpu9250 driver because the MPU9250 is rarely used on Pixhawks
- Snapdragon RC PWM passthrough which is rarely used and definitely a
  special/custom configuration. Also, it will soon be obsolete with the
  upcoming PWM support on Snapdragon.
2016-11-23 12:49:15 +01:00
Julian Oes 109558cf1f cmake: fix git binary hash
The generated binary hash was off by one.
2016-11-23 12:42:06 +01:00
Mark Whitehorn 40f2c4a8e4 add new board config for fmu-v3 2016-11-11 09:50:42 +01:00
Mark Charlebois 47c14395d3 Updated cmake_hexagon for Semaphore CI fix
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2016-11-10 07:56:28 +01:00
Julian Oes 6bdca1053c Next cmake_hexagon in Firmware and DriverFramework 2016-11-10 07:56:28 +01:00
Julian Oes 88e81aa58e cmake_hexagon: rpcmem and linking fix
This updates cmake_hexagon and cmake_hexagon inside DriverFramework
which fixes somethine about rpcmem.a and the double linking issue.
2016-11-10 07:56:28 +01:00
Beat Küng d32d250a50 px4fmu-v2_test.cmake: remove inav 2016-11-08 11:17:07 +01:00
Paul Riseborough d19a62a8f6 px4fmu-v1: Remove INAV to free required flash space 2016-11-08 11:17:07 +01:00
Paul Riseborough d75600b8a4 px4fmu-v2: Remove INAV to free required flash space 2016-11-08 11:17:07 +01:00
Henry Zhang b76c8cd80c MindPX: Use i2c rgbled. 2016-10-29 10:56:32 +02:00
Henry Zhang d8ac044414 MindPX: Support serial RC input. 2016-10-29 10:56:32 +02:00
Henry Zhang 5076ba0049 MindPX: Disable second CAN bus. 2016-10-29 10:56:32 +02:00
Henry Zhang 99ad8f464e MindPX: Update modules config. 2016-10-29 10:56:32 +02:00
Carlo Wood 5b52cd0fe6 Compile fixes for old/unused targets.
These are some changes that I needed to compile
most of the unsupported targets.

After this all (make list_config_targets) compile
for me except: posix_eagle_muorb, posix_sdflight_default
and qurt_eagle_legacy_driver_default.
2016-10-26 14:00:52 +02:00
Carlo Wood 6fc30c76a6 Clean up of app.h
app.h, generated from app.h_in, has unnecessary code duplication
and isn't a header file (it defines globals, static functions
and doesn't have a header guard, moreover, it has a 'using namespace
std;'). Because of this, a real headerfile that declares the stuff
defined in apps.h was missing leading to even more code duplication:
scattered forward declarations in .cpp files and an often repeated
type of std::map<std::string, px4_main_t>.

This patch moves cmake/qurt/apps.h_in to src/platforms/apps.cpp.in
(with some changes) and removes cmake/posix/apps.h_in.
Then src/platforms/apps.cpp.in is split into src/platforms/apps.cpp.in
and src/platforms/apps.h.in, splitting declarations from definitions.

A typedef is defined for the map (apps_map_type).

The main difference between cmake/posix/apps.h_in and
cmake/qurt/apps.h_in was that the first defined a global 'apps',
while qurt stores the apps in QShell. I opted to get rid of
the global variable (which are in general evil for various reasons)
and used the API of cmake/qurt/apps.h_in where a provided 'apps'
map is initialized with a call to init_app_map. Thus removing
the existing code duplication.
2016-10-22 08:31:14 +02:00
Lorenz Meier 5317d29ffd Disable blinkm for FMUv2 2016-10-19 09:25:55 +02:00
Michael Schaeuble ffaed18e67 Reduce the binary size Bebop
The firmware binary is to large to fit into the onboard memory of the Parrot
Bebop. It could be uploaded to the emmc, but for ease of use it would be nice
to have it in /usr/bin. To strip the binary seems to be the best option right now.
2016-10-18 23:56:56 +02:00
Michael Schaeuble 9bb230fa3d Remove obsolete linker flag for Bebop build
The pthread linker flags were changed in c6a2641 and it was questioned in #5504 if the
exception for the Bebop is necessary. It is not, so remove those lines from the cmake
file.
2016-10-18 20:47:19 +02:00
Lorenz Meier 5d9c91dece Convert fixed wing example to quaternions 2016-10-18 20:46:08 +02:00
Julian Oes e2c308c4e6 cmake: fixes for cmake_hexagon changes 2016-10-18 08:07:14 +02:00
Julian Oes 340b9002e2 sdflight_default: define QC_SOC_TARGET if not set 2016-10-18 08:07:14 +02:00
Julian Oes 75657dc2eb cmake: add __DF_ defines with comments 2016-10-18 08:07:14 +02:00
Julian Oes 0a4ca7c77f cmake/DriverFramework: update submodules again 2016-10-18 08:07:14 +02:00
Julian Oes f8a1631077 DriverFramework/cmake_hexagon: use defines with DF
This changes the following defines:

__QURT -> __DF_QURT
__RPI -> __DF_RPI
__EDISON -> __DF_EDISON
__BEBOP -> __DF_BEBOP
__LINUX -> __DF_LINUX
2016-10-18 08:07:14 +02:00
David Sidrane b1e94b98b3 Define tap as a Memory Constrained system 2016-10-18 00:23:58 +02:00
David Sidrane 979381fcfa Support passing defines from top level config makefile 2016-10-18 00:23:58 +02:00
James Goppert f30dd2b819 Removed lidarlite driver, not widely available. 2016-10-12 11:59:46 -05:00
James Goppert 027badc340 Remove bottle/rover apps from v1 to reduce flash space. 2016-10-12 11:59:46 -05:00
Andreas Antener f3b5c243e5 UT: added method to test float values
MC pos control tests: added tests to all configs that include them
2016-10-10 23:05:44 +02:00
Andreas Antener 9a219da9c2 Refactored cross sphere line tracking and added a unittest to verify correct operation 2016-10-10 23:05:44 +02:00
Lorenz Meier f543463349 Disable FrSky for FMUv2 2016-10-06 09:11:26 +02:00
nephen 0027333e6d add pci-Bitcraze to px4_base.cmake 2016-09-30 23:06:57 +02:00
Julian Oes b1708f3871 cmake: only optimize for size on NuttX
With this change only builds for NuttX which are very much flash size
constraint are optimized for size. All other builds (e.g. SITL,
Snapdragon, etc.) are left at the default for debugging or -O2 for the
usual use.
2016-09-30 08:11:51 +02:00
Beat Küng bb61144efc cmake: add posix_sitl_inav target 2016-09-29 07:28:03 +02:00
Beat Küng 670c93e726 cmake: add support for out-of-tree modules via EXTERNAL_MODULES_LOCATION variable 2016-09-27 15:10:23 +02:00
Lorenz Meier 676e90cd98 Define realtime clock for systems not having one 2016-09-27 11:56:49 +02:00
Lorenz Meier 5b674ffe48 Update DF to include Travis CI fix for DF
DF Update: Use common CMake version so Darwin handling is correct in PX4

Update DF to use proper constants

Update DF
2016-09-27 11:56:49 +02:00
Lorenz Meier af8cbee6d5 Support 10.11 and 10.12 in parallel in PX4 2016-09-27 11:56:49 +02:00
Lorenz Meier cf671b5134 Fix tests and re-introduce tests into build
Code style fix
2016-09-27 11:56:49 +02:00
Lorenz Meier edf0057cee Modify build for XCode 8 2016-09-27 11:56:49 +02:00
Carlo Wood c6a2641507 Fix some pthread related linker stuff. (#5504)
The px4_os_add_flags defined in cmake/posix/px4_impl_posix.cmake did
add (threading) libraries to added_exe_linker_flags, which subsequently
end up in CMAKE_EXE_LINKER_FLAGS and then have no effect because those
flags are passed to the linker before any of the object files and static
libraries.

Those libraries are already added correctly in the corresponding
src/firmware/*/CMakeLists.txt files (for qurt, nuttx AND posix).

I left in the non-library linker flag '-pthread' for the bebop board,
although it seems very weird to me that this is needed (is it?).
If that is needed then it seems weird to link manually (that is,
src/firmware/*/CMakeLists.txt) with -lpthread.

For linux/g++ -pthread is added to the CXXFLAGS as it should be:
this causes the compiler to define _REENTRANT which is needed
for (the interface of) certain libraries to become thread-safe.
Offically one also can just pass -pthread to the linker, which then
causes the right libraries to be linked, but just linking with
-lpthread -lm -lrt works too.

I ran into this while adding support for libcwd, which explicitly
complains that _REENTRANT isn't defined when trying to link with
the thread-safe version of libcwd (-lcwd_r) and then tells you
to use -pthread.
2016-09-26 22:53:41 +02:00
Dennis Shtatnov b9c5d117dd CF2: Linux USB uploading fix 2016-09-21 17:20:08 -04:00
Carlo Wood e93324785b list_vmd_make_targets and list_cmake_targets
* This allows one to run 'make posix list_vmd_make_targets' and get output like

>make posix list_vmd_make_targets
[...]
-- Build files have been written to:
/usr/src/debian/px4/Firmware/Firmware.git/build_posix_sitl_default
PX4 CONFIG: /usr/src/debian/px4/Firmware/Firmware.git/build_posix_sitl_default
Scanning dependencies of target list_vmd_make_targets
[100%] List of acceptable 'posix_sitl_default' <viewer_model_debugger> targets:
none
none_iris
none_iris_opt_flow
none_tailsitter
[...]
replay_solo_valgrind
replay_typhoon_h480_valgrind
[100%] Built target list_vmd_make_targets

Or, run 'make list_vmd_make_targets' from the build_posix_* directory.

* This adds the list_cmake_targets make target to print all
cmake targets that one can match with PX4_NO_OPTIMIZATION.
PX4_NO_OPTIMIZATION is ignored (do optimization as normal)
when the CONFIG isn't posix_sitl_*.

* Add comment in Makefile on how/where to find all targets.
2016-09-13 16:31:08 +02:00
Carlo Wood 77d356d275 Target specific optimization control.
This allows one to set a semi-colon separated list of regular
expressions in the environment variable PX4_NO_OPTIMIZATION
to control which (cmake generated) targets should be compiled
without optimization.

Suppressing optimization can be necessary for debugging in
a debugger, especially when trying to step through the code
or needing to print variables that otherwise are optimized out.

EXAMPLE

export PX4_NO_OPTIMIZATION="px4;^modules__uORB;^modules__systemlib$"

will result in the following messages during cmake configuration:

[...]
-- Disabling optimization for target 'platforms__posix__px4_layer'
because it matches the regexp 'px4' in env var PX4_NO_OPTIMIZATION
-- Disabling optimization for target 'modules__systemlib' because it
matches the regexp '^modules__systemlib$' in env var PX4_NO_OPTIMIZATION
-- Disabling optimization for target 'modules__uORB' because it matches
the regexp '^modules__uORB' in env var PX4_NO_OPTIMIZATION
-- Disabling optimization for target 'examples__px4_simple_app' because
it matches the regexp 'px4' in env var PX4_NO_OPTIMIZATION
-- Disabling optimization for target 'modules__uORB__uORB_tests' because
it matches the regexp '^modules__uORB' in env var PX4_NO_OPTIMIZATION
-- Disabling optimization for target 'px4' because it matches the regexp
'px4' in env var PX4_NO_OPTIMIZATION

Note that a list of all (currently used) target names can be printed
with the following command line from within the required build directory:

find . -wholename '*/CMakeFiles/*.dir/flags.make' | xargs dirname | xargs basename -a | sort -u | sed -e 's/.dir$//'
2016-09-13 16:31:08 +02:00
Carlo Wood 541c8a06ca Partly cleanup and simplify cmake/configs/posix_sitl_* config files.
While the config_sitl_rcS_dir is used more extensively (and actually
only depending on the base cmake target), the variables
config_sitl_viewer and config_sitl_debugger are just used to be
passed on for the run_config target; config_sitl_debugger is even
*always* 'disable'. Hence, they don't really need to be cached
(INTERNAL or not). Before this patch FILEPATH was used instead
of INTERNAL, but I doubt very much that that was intended. That
only makes sense when cmake-gui would be used and then would pop-up
a file browser to let the user pick a file (while really they
need to pick a directory, so it's wrong either way).

The ONLY reason caching would be used is when a developer edits
the build_posix_sitl_*/CMakeCache.txt files, changes these values
and then runs cmake in the build directory again, now overriding
the values intended here. Nevertheless, I left in the caching.

The main change in this commit (that theoretically has no real effect)
is that I removed the duplicated maintenance of
posix_sitl_broadcast.cmake. When that file was added, it was an
exact copy of posix_sitl_default.cmake and is since not always
maintained to remain the same. I don't think that difference is
in anyway relevant for the broadcasting part though.

Note that I think that something like that also holds for the
posix_sitl_replay.cmake; it would be a lot better - maintenance-wise
- when it was just derived from (or the same as) posix_sitl_default,
I think.
2016-09-13 16:31:08 +02:00
Carlo Wood 03d176d097 Bug fixes, typos, indentation.
Over time I made a few changes unrelated to what I'm really working on.
These changes are hereby committed first. The bug fixes are related to
what I'm doing in that I need them to be fixed for future commits.

Tools/sitl_run.sh: rename label to rcS_dir and fix usage help.
cmake/common/px4_base.cmake: Remove the check on OUT_UNPARSED_ARGUMENTS,
  and a few typos and indentation issues.
cmake/configs/posix_sitl_replay.cmake: Set the correct variable
  (config_sitl_rcS_dir) to the correct directory.
cmake/nuttx/px4_impl_nuttx.cmake: typos and indentation issues,
  and removal of a redundant FORCE (INTERNAL implies FORCE).
cmake/posix/px4_impl_posix.cmake: typos and indentation issues.
cmake/qurt/px4_impl_qurt.cmake: typos and indentation issues.
src/modules/mavlink/mavlink_ftp.cpp : possible strict-aliasing breakage.

NOTES

The second argument passed to sitl_run.sh is the value of
config_sitl_rcS_dir. This fact is missing from the usage help.
I renamed 'label' to 'rcS_dir' to better reflect this.
Also, for the 'replay' config the wrong variable was set causing
the call to sitl_run.sh to skip an argument and fail (ie the
debugger was passed as rcS_dir and so on).

The check on OUT_UNPARSED_ARGUMENTS in px4_parse_function_args
basically causes every passed IN variable to be REQUIRED and is
therefore a bug. The test for the presence of the REQUIRED arguments
follows directly after and is sufficient for this job. This bug went
unnoticed because currently every argument to OPTIONS, ONE_VALUE,
and MULTI_VALUE is actually passed to the function(s) calling
px4_parse_function_args (them being REQUIRED or not).

The changes in mavlink_ftp.cpp are to avoid a possible aliasing bug
and (mostly) to avoid the compiler warning/error: dereferencing type-
punned pointer will break strict-aliasing rules [-Werror=strict-aliasing].
2016-09-13 16:31:08 +02:00
Lorenz Meier f34a56999f Remove SRF02 driver to make flash space 2016-09-07 13:29:41 +02:00
Michael Schaeuble 5d3e9df731 Add DF wrapper for BebopBus driver 2016-09-07 08:24:08 +02:00
Beat Küng ccde51304a cmake px4fmu-v2: disable vmount for now, due to flash overflow 2016-09-06 11:33:18 +02:00
Beat Küng 8757b9a9a5 cmake posix sitl: add vmount driver 2016-09-06 11:33:18 +02:00
Leon faebdeedcf vmount: add mount and ROI implementation
MavLink spec implementation

implemented vehicle_roi topic

rename old gimbal to rc_gimbal

little changes

corrected RC Gimbal group

Starting ROI implementation in commander

implementation done, needs to be tested

uhm..

add todo

Change to float32 for x,y and z

remove mission topic again, not needed

change roi coordinates to lat, lon and alt

adjust to float64

starting mount implementation

correcting small mistakes, compiles now

add todos

further progress

implementing parameters

adjust default parameters

started implementation of mavlink

fix typo

change to lat, lon and alt

fix typo :D

change to double (to represent float64)

add global_position_

add mount topic

commander mount implementation done

cleanup

almost finished

little fix

codestyle fixes

leave pitch at 0 degrees

added pitch calculation

codestyle changes

Undo vehicle_mount, react to updated parameters, parsing of CMD_DO_MOUNT_* in mount.cpp

start implementing mode override

forgot a semikolon.

add debug

Finish implementation of mount override and manual control.

fix codestyle

correct cleanup

rename to vmount

works now

fix rebase error

fix polling

refactoring and custom airframe for gimbal

couple changes

remove warnx

almost done

finally

What is going on?

change back to actuator_controls_2

working

bump parameter version number and some clarification

fix submodules
2016-09-06 11:33:18 +02:00
Lorenz Meier 3aa66da20f Build serdis / sercon with size optimization 2016-09-04 21:44:30 +02:00
Lorenz Meier 07966de432 Build serdis / sercon with size optimization 2016-09-04 21:43:44 +02:00
Dennis Shtatnov c842b0457f Syslink for battery, RSSI, and initial radio control 2016-09-04 19:12:08 +02:00
Dennis Shtatnov e6b98b2ab8 Tweak configs for CF2
Fix build error

Capitalization mistake for headers

Non-Mac compiler issue

Baudrate for crazyflie nrf and fix code style

Save space

Cleanup mpu9250 driver
2016-09-04 19:12:08 +02:00
Dennis Shtatnov 5100785f51 MPU9250 I2C mode
Fixes for other boards

Functioning sensors
2016-09-04 19:12:08 +02:00
Dennis Shtatnov 9c8e56401b Working motors and mtd for CF2 2016-09-04 19:12:08 +02:00
Tim Dyer b65ff53b00 Initial build for Crazyflie 2.0
Working crazyflie firmware build

* Console on USART3
* Could not disable building PX4IO firmware, currently commented out

Don't build PX4IO firmware if the board doesn't ask for it

Added crazyflie motor driver

Fixed wrong register

CLK_SEL is in PWR_MGMT_1

Initial I2C/SPI MPU9250 device

* Tested with I2C
* Need to add error checking
* Intermittent crash on stop call

Working ak8963 mag driver

Functional lps25h driver. Work in progress.

Works well enough to probe and allow sensors task to start.

Added serial port test module

HACK! Get sensors module working

Set crazyflie PWM range

Extend baudrate for Crazyflie's NRF radio

Added dummy tone alarm to allow for init

Added autostart script for Crazyflie
2016-09-04 19:12:08 +02:00
Lorenz Meier 25182108f9 Ensure NuttX build depends on defconfig 2016-08-27 12:56:31 +02:00
mazahner 73014acf97 Only Compile and create dependencies for the Messages specified in msg/CMakeLists.txt
this lets a user select what msgs should be compiled for his project
Care must be taken though, to compile all orb_topcis that are required by the Rest of the Code.
Otherwise many compile errors will occur.

This commits adds by default the ./msg include path to reference to other msgs.
if an exisiting msg is used in another msg.
2016-08-25 22:30:13 +02:00
Lorenz Meier f511d49cc2 Improvements to SITL to make paths more flexible. (#5181) (#5255)
* Path cleanup for SITL.

* Restructured sitl scripts dir.

* Set integration tests to use ekf2 for vtol.

* Fix sitl paths for mac.
2016-08-25 21:47:45 +02:00
James Goppert 818840b576 Path cleanup, low impact changes (#5340)
* Low impact changes from path_cleanup branch.

This is a step towards minimizing the diff with path_cleanup branch.

* Update ecl.

* Revert matrix update.

* Revert ecl and matrix.

* Update sitl gazebo.

* Revert sitl_gazebo and matrix changes.
2016-08-18 15:37:23 -04:00
Hidenori 211c2b9ca6 Rename clang toolchain file 2016-08-18 16:11:05 +02:00
Hidenori a8d3b15d73 RPi: add clang & clang-check support 2016-08-18 16:11:05 +02:00
Lorenz Meier 9f9c51eab3 Fix MPU6500 devtype define 2016-08-16 23:32:44 +02:00
Lorenz Meier 90b5fcc1ec Strip tone alarm 2016-08-15 10:49:43 +02:00
Lorenz Meier 5678b4cc83 Enable RC lib 2016-08-12 13:55:16 +02:00
David Sidrane e8ae0fe13c Made the MPU6000 driver a highbread using both hrt for SPI or workqueue for I2C 2016-08-07 11:15:48 +02:00
Lorenz Meier 58135d892b Sync estimator CMake configs for all boards 2016-08-07 10:40:17 +02:00