Skip to content

Commit

Permalink
Fix additional tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
DzikuVx committed Apr 27, 2024
1 parent 1cc748e commit 7ed032a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 74 deletions.
20 changes: 0 additions & 20 deletions tabs/outputs.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down Expand Up @@ -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);
}

Expand Down
54 changes: 0 additions & 54 deletions tabs/sensors.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 7ed032a

Please sign in to comment.