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>
This commit is contained in:
Mateusz Sadowski
2017-09-13 15:23:36 +02:00
committed by Nuno Marques
parent 6d1aa4cad2
commit ee72931190
14 changed files with 1007 additions and 0 deletions
+6
View File
@@ -321,6 +321,12 @@ then
mb12xx start
fi
# teraranger evo tof sensor
if param compare SENS_EN_TREVO 1
then
trevo start
fi
# teraranger one tof sensor
if param compare SENS_EN_TRONE 1
then
@@ -20,6 +20,7 @@ set(config_module_list
drivers/lsm303d
drivers/l3gd20
drivers/ms5611
drivers/trevo
drivers/trone
drivers/gps
drivers/pwm_out_sim
@@ -28,6 +28,7 @@ set(config_module_list
drivers/sf0x
drivers/sf1xx
drivers/ll40ls
drivers/trevo
drivers/trone
drivers/gps
drivers/pwm_out_sim
@@ -31,6 +31,7 @@ set(config_module_list
drivers/sf0x
drivers/sf1xx
drivers/ll40ls
drivers/trevo
drivers/trone
drivers/gps
drivers/pwm_out_sim
@@ -29,6 +29,7 @@ set(config_module_list
#drivers/srf02
drivers/sf0x
drivers/ll40ls
drivers/trevo
drivers/trone
drivers/gps
drivers/pwm_out_sim
+1
View File
@@ -29,6 +29,7 @@ set(config_module_list
#drivers/srf02
#drivers/sf0x
#drivers/ll40ls
#drivers/trevo
#drivers/trone
drivers/gps
#drivers/pwm_out_sim
@@ -54,6 +54,7 @@ set(config_module_list
drivers/stm32/adc
drivers/stm32/tone_alarm
drivers/tap_esc
drivers/trevo
drivers/trone
drivers/vmount
modules/sensors
@@ -55,6 +55,7 @@ set(config_module_list
drivers/stm32/adc
drivers/stm32/tone_alarm
drivers/tap_esc
drivers/trevo
drivers/trone
drivers/vmount
modules/sensors
@@ -55,6 +55,7 @@ set(config_module_list
drivers/stm32/adc
drivers/stm32/tone_alarm
drivers/tap_esc
drivers/trevo
drivers/trone
drivers/vmount
modules/sensors
@@ -55,6 +55,7 @@ set(config_module_list
drivers/stm32/adc
drivers/stm32/tone_alarm
drivers/tap_esc
drivers/trevo
drivers/trone
drivers/vmount
modules/sensors
@@ -50,6 +50,7 @@ set(config_module_list
drivers/stm32/adc
drivers/stm32/tone_alarm
drivers/tap_esc
drivers/trevo
drivers/trone
modules/sensors
+43
View File
@@ -0,0 +1,43 @@
############################################################################
#
# Copyright (c) 2015 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__trevo
MAIN trevo
STACK_MAIN 1200
COMPILE_FLAGS
SRCS
trevo.cpp
DEPENDS
platforms__common
)
# vim: set noet ft=cmake fenc=utf-8 ff=unix :
File diff suppressed because it is too large Load Diff
+10
View File
@@ -1087,6 +1087,16 @@ PARAM_DEFINE_INT32(SENS_EN_SF0X, 0);
*/
PARAM_DEFINE_INT32(SENS_EN_MB12XX, 0);
/**
* TeraRanger Evo (trevo)
*
* @reboot_required true
*
* @boolean
* @group Sensor Enable
*/
PARAM_DEFINE_INT32(SENS_EN_TREVO, 0);
/**
* TeraRanger One (trone)
*