Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/iNavFlight/inav-configurator.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorPawel Spychalski (DzikuVx) <pspychalski@gmail.com>2019-03-14 20:07:39 +0300
committerPawel Spychalski (DzikuVx) <pspychalski@gmail.com>2019-03-14 20:07:39 +0300
commit98a9ee7ed8b37c62f4726c19ac56510166122d77 (patch)
treed937602e8c0e3266e37fbdab252fb5cd014d7bda /js
parent338867f3d4f0715cb43f2fe5ae81e564ae36830f (diff)
Add TFmini to rangefinder types
Diffstat (limited to 'js')
-rw-r--r--js/fc.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/js/fc.js b/js/fc.js
index b2a60e19..3f08e1b5 100644
--- a/js/fc.js
+++ b/js/fc.js
@@ -989,7 +989,13 @@ var FC = {
}
},
getRangefinderNames: function () {
- return [ "NONE", "HCSR04", "SRF10", "INAV_I2C", "VL53L0X", "MSP", "UIB"];
+ let data = [ "NONE", "HCSR04", "SRF10", "INAV_I2C", "VL53L0X", "MSP", "UIB"];
+
+ if (semver.gte(CONFIG.flightControllerVersion, "2.1.0")) {
+ data.push("Benewake TFmini")
+ }
+
+ return data;
},
getOpticalFlowNames: function () {
return [ "NONE", "PMW3901", "CXOF", "MSP", "FAKE" ];