mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-17 20:53:35 +08:00
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>
This commit is contained in:
committed by
Nuno Marques
parent
d5f8a300df
commit
e439070f25
@@ -1088,14 +1088,18 @@ PARAM_DEFINE_INT32(SENS_EN_SF0X, 0);
|
||||
PARAM_DEFINE_INT32(SENS_EN_MB12XX, 0);
|
||||
|
||||
/**
|
||||
* TeraRanger One (trone)
|
||||
* TeraRanger Rangefinder (i2c)
|
||||
*
|
||||
* @reboot_required true
|
||||
*
|
||||
* @boolean
|
||||
* @min 0
|
||||
* @max 3
|
||||
* @group Sensor Enable
|
||||
* @value 0 Disabled
|
||||
* @value 1 Autodetect
|
||||
* @value 2 TROne
|
||||
* @value 3 TREvo
|
||||
*/
|
||||
PARAM_DEFINE_INT32(SENS_EN_TRONE, 0);
|
||||
PARAM_DEFINE_INT32(SENS_EN_TRANGER, 0);
|
||||
|
||||
/**
|
||||
* Lightware SF1xx/SF20/LW20 laser rangefinder (i2c)
|
||||
|
||||
Reference in New Issue
Block a user