From 298049b0fb8382a43baeefd9c190888f95b01c01 Mon Sep 17 00:00:00 2001 From: Daniel Agar Date: Tue, 29 Jan 2019 14:14:29 -0500 Subject: [PATCH] px4_fmu-v4_stackcheck sync with default and increase pmw3901 main stack --- boards/px4/fmu-v4/stackcheck.cmake | 10 +++++---- src/drivers/pmw3901/CMakeLists.txt | 35 +++++++++++++++++++++++++++++- 2 files changed, 40 insertions(+), 5 deletions(-) diff --git a/boards/px4/fmu-v4/stackcheck.cmake b/boards/px4/fmu-v4/stackcheck.cmake index dfae99dc4c..0409440312 100644 --- a/boards/px4/fmu-v4/stackcheck.cmake +++ b/boards/px4/fmu-v4/stackcheck.cmake @@ -18,7 +18,6 @@ px4_add_board( DRIVERS barometer # all available barometer drivers batt_smbus - lights/blinkm camera_trigger differential_pressure # all available differential pressure drivers distance_sensor # all available distance sensor drivers @@ -26,17 +25,19 @@ px4_add_board( heater imu # all available imu drivers irlock + lights/blinkm + lights/oreoled + lights/rgbled + lights/rgbled_ncp5623c magnetometer # all available magnetometer drivers mkblctrl - lights/oreoled pca9685 + pmw3901 pwm_input pwm_out_sim px4flow px4fmu rc_input - lights/rgbled - lights/rgbled_ncp5623c stm32 stm32/adc stm32/tone_alarm @@ -103,6 +104,7 @@ px4_add_board( #hello #hwtest # Hardware test #matlab_csv_serial + #position_estimator_inav #px4_mavlink_debug # Tutorial code from https://px4.io/dev/debug_values #px4_simple_app # Tutorial code from https://px4.io/dev/px4_simple_app #rover_steering_control # Rover example app diff --git a/src/drivers/pmw3901/CMakeLists.txt b/src/drivers/pmw3901/CMakeLists.txt index 8ec5b5da2c..784f83988f 100644 --- a/src/drivers/pmw3901/CMakeLists.txt +++ b/src/drivers/pmw3901/CMakeLists.txt @@ -1,7 +1,40 @@ +############################################################################ +# +# Copyright (c) 2019 PX4 Development Team. All rights reserved. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions +# are met: +# +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in +# the documentation and/or other materials provided with the +# distribution. +# 3. Neither the name PX4 nor the names of its contributors may be +# used to endorse or promote products derived from this software +# without specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS +# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED +# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +# POSSIBILITY OF SUCH DAMAGE. +# +############################################################################ + px4_add_module( MODULE drivers__pmw3901 MAIN pmw3901 + STACK_MAIN 1200 SRCS pmw3901.cpp ) -# vim: set noet ft=cmake fenc=utf-8 ff=unix :