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:
authorPaweł Spychalski <pspychalski@gmail.com>2019-02-11 20:09:43 +0300
committerGitHub <noreply@github.com>2019-02-11 20:09:43 +0300
commitf139a6a15501edcd8fcec6fa4b8942381e167c19 (patch)
treee67c61fa4d30bb9cc3e02696051a21014bbf31ad /js
parent1af9d9de601689533fb740ace18340204b374e58 (diff)
parent782a7d0a99f2b8080e1a326395d5a2afd4570bff (diff)
Merge pull request #685 from iNavFlight/dzikuvx-msp-heavy
MSP queue adjustments
Diffstat (limited to 'js')
-rw-r--r--js/periodicStatusUpdater.js10
-rw-r--r--js/serial.js4
-rw-r--r--js/tasks.js27
3 files changed, 5 insertions, 36 deletions
diff --git a/js/periodicStatusUpdater.js b/js/periodicStatusUpdater.js
index f2e2f1b6..950fa5dd 100644
--- a/js/periodicStatusUpdater.js
+++ b/js/periodicStatusUpdater.js
@@ -19,15 +19,11 @@ helper.periodicStatusUpdater = (function () {
}
if (baudSpeed >= 115200) {
- return 200;
+ return 300;
} else if (baudSpeed >= 57600) {
- return 400;
- } else if (baudSpeed >= 38400) {
- return 500;
- } else if (baudSpeed >= 19200) {
return 600;
- } else if (baudSpeed >= 9600) {
- return 750;
+ } else if (baudSpeed >= 38400) {
+ return 800;
} else {
return 1000;
}
diff --git a/js/serial.js b/js/serial.js
index 5fe661be..98a1f9ae 100644
--- a/js/serial.js
+++ b/js/serial.js
@@ -300,9 +300,9 @@ var serial = {
*/
getTimeout: function () {
if (serial.bitrate >= 57600) {
- return 1500;
+ return 3000;
} else {
- return 2500;
+ return 4000;
}
}
diff --git a/js/tasks.js b/js/tasks.js
deleted file mode 100644
index 580e43af..00000000
--- a/js/tasks.js
+++ /dev/null
@@ -1,27 +0,0 @@
-'use strict';
-
-var helper = helper || {};
-
-helper.task = (function () {
-
- var publicScope = {},
- privateScope = {};
-
- privateScope.getStatusPullInterval = function () {
- //TODO use serial connection speed to determine update interval
- return 250;
- };
-
- publicScope.statusPullStart = function () {
- helper.interval.add('status_pull', function () {
- MSP.send_message(MSPCodes.MSP_STATUS, false, false, function () {
- if (semver.gte(CONFIG.flightControllerVersion, "1.5.0")) {
- MSP.send_message(MSPCodes.MSP_SENSOR_STATUS);
- }
- });
-
- }, privateScope.getStatusPullInterval(), true);
- };
-
- return publicScope;
-})(); \ No newline at end of file