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-09 14:55:09 +0300
committerPawel Spychalski (DzikuVx) <pspychalski@gmail.com>2019-03-09 14:55:09 +0300
commit384e2153fdceab2b4bfc54650daae78d66ccdad5 (patch)
tree89708cc11c281f139bfbc0f30131daeb197a3e90 /js
parent2aec6d2bb78c24d37f2b638fcfbd93959d79e4c7 (diff)
disable RPY D or FF depending on platfrm type
Diffstat (limited to 'js')
-rw-r--r--js/fc.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/js/fc.js b/js/fc.js
index 40967b48..b2a60e19 100644
--- a/js/fc.js
+++ b/js/fc.js
@@ -64,6 +64,12 @@ var FC = {
isNewMixer: function () {
return !!(typeof CONFIG != "undefined" && semver.gte(CONFIG.flightControllerVersion, "2.0.0"));
},
+ isRpyFfComponentUsed: function () {
+ return MIXER_CONFIG.platformType == PLATFORM_AIRPLANE;
+ },
+ isRpyDComponentUsed: function () {
+ return MIXER_CONFIG.platformType != PLATFORM_AIRPLANE;
+ },
resetState: function () {
SENSOR_STATUS = {
isHardwareHealthy: 0,