From 7ed032ad2e1c39423cabd030b3613262cea5e12b Mon Sep 17 00:00:00 2001 From: "Pawel Spychalski (DzikuVx)" Date: Sat, 27 Apr 2024 20:38:41 +0200 Subject: [PATCH] Fix additional tabs --- tabs/outputs.js | 20 ------------------ tabs/sensors.js | 54 ------------------------------------------------- 2 files changed, 74 deletions(-) diff --git a/tabs/outputs.js b/tabs/outputs.js index 72269f72c..c45d6bfa4 100644 --- a/tabs/outputs.js +++ b/tabs/outputs.js @@ -431,15 +431,6 @@ TABS.outputs.initialize = function (callback) { interval.killAll(['motor_and_status_pull', 'global_data_refresh', 'msp-load-update', 'ltm-connection-check']); interval.add('IMU_pull', function () { - - /* - * Enable balancer - */ - if (mspQueue.shouldDrop()) { - update_accel_graph(); - return; - } - MSP.send_message(MSPCodes.MSP_RAW_IMU, false, false, update_accel_graph); }, 25, true); @@ -660,21 +651,10 @@ TABS.outputs.initialize = function (callback) { $motorsEnableTestMode.trigger('change'); function getPeriodicMotorOutput() { - - if (mspQueue.shouldDrop()) { - getPeriodicServoOutput(); - return; - } - MSP.send_message(MSPCodes.MSP_MOTOR, false, false, getPeriodicServoOutput); } function getPeriodicServoOutput() { - if (mspQueue.shouldDrop()) { - update_ui(); - return; - } - MSP.send_message(MSPCodes.MSP_SERVO, false, false, update_ui); } diff --git a/tabs/sensors.js b/tabs/sensors.js index 013bb6840..a909feebe 100644 --- a/tabs/sensors.js +++ b/tabs/sensors.js @@ -442,90 +442,36 @@ TABS.sensors.initialize = function (callback) { // data pulling timers if (checkboxes[0] || checkboxes[1] || checkboxes[2]) { interval.add('IMU_pull', function () { - - /* - * Enable balancer - */ - if (mspQueue.shouldDrop()) { - update_imu_graphs(); - return; - } - MSP.send_message(MSPCodes.MSP_RAW_IMU, false, false, update_imu_graphs); }, fastest, true); } if (checkboxes[3]) { interval.add('altitude_pull', function altitude_data_pull() { - - /* - * Enable balancer - */ - if (mspQueue.shouldDrop()) { - update_altitude_graph(); - return; - } - MSP.send_message(MSPCodes.MSP_ALTITUDE, false, false, update_altitude_graph); }, rates.baro, true); } if (checkboxes[4]) { interval.add('sonar_pull', function sonar_data_pull() { - - /* - * Enable balancer - */ - if (mspQueue.shouldDrop()) { - update_sonar_graphs(); - return; - } - MSP.send_message(MSPCodes.MSP_SONAR, false, false, update_sonar_graphs); }, rates.sonar, true); } if (checkboxes[5]) { interval.add('airspeed_pull', function airspeed_data_pull() { - - /* - * Enable balancer - */ - if (mspQueue.shouldDrop()) { - update_airspeed_graphs(); - return; - } - MSP.send_message(MSPCodes.MSPV2_INAV_AIR_SPEED, false, false, update_airspeed_graphs); }, rates.airspeed, true); } if (checkboxes[6]) { interval.add('temperature_pull', function temperature_data_pull() { - - /* - * Enable balancer - */ - if (mspQueue.shouldDrop()) { - update_temperature_graphs(); - return; - } - MSP.send_message(MSPCodes.MSP2_INAV_TEMPERATURES, false, false, update_temperature_graphs); }, 1000, true); } if (checkboxes[7]) { interval.add('debug_pull', function debug_data_pull() { - - /* - * Enable balancer - */ - if (mspQueue.shouldDrop()) { - update_debug_graphs(); - return; - } - MSP.send_message(MSPCodes.MSP2_INAV_DEBUG, false, false, update_debug_graphs); }, rates.debug, true); }