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-02-11 12:36:44 +0300
committerPawel Spychalski (DzikuVx) <pspychalski@gmail.com>2019-02-11 12:36:44 +0300
commit782a7d0a99f2b8080e1a326395d5a2afd4570bff (patch)
treee2067b9a62d9dde051b5e88f1f1160bfa6c2103c /js
parent4d901f94bc4d480e0304574729d910fdb59e52d6 (diff)
lower periodic tasks frequency
Diffstat (limited to 'js')
-rw-r--r--js/periodicStatusUpdater.js10
-rw-r--r--js/serial_queue.js2
-rw-r--r--js/tasks.js27
3 files changed, 4 insertions, 35 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_queue.js b/js/serial_queue.js
index bf51d778..0c6b14cd 100644
--- a/js/serial_queue.js
+++ b/js/serial_queue.js
@@ -7,7 +7,7 @@ helper.mspQueue = (function (serial, MSP) {
var publicScope = {},
privateScope = {};
- privateScope.handlerFrequency = 10;
+ privateScope.handlerFrequency = 100;
privateScope.balancerFrequency = 20;
privateScope.loadFilter = new classes.SimpleSmoothFilter(1, 0.85);
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