diff options
author | Pawel Spychalski (DzikuVx) <pspychalski@gmail.com> | 2019-03-09 14:55:09 +0300 |
---|---|---|
committer | Pawel Spychalski (DzikuVx) <pspychalski@gmail.com> | 2019-03-09 14:55:09 +0300 |
commit | 384e2153fdceab2b4bfc54650daae78d66ccdad5 (patch) | |
tree | 89708cc11c281f139bfbc0f30131daeb197a3e90 /js | |
parent | 2aec6d2bb78c24d37f2b638fcfbd93959d79e4c7 (diff) |
disable RPY D or FF depending on platfrm type
Diffstat (limited to 'js')
-rw-r--r-- | js/fc.js | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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, |