From 39c0c20cbe034d6f3b6ad9ae96254f5984784dc9 Mon Sep 17 00:00:00 2001 From: demvlad Date: Thu, 5 Dec 2024 22:32:02 +0300 Subject: [PATCH 1/2] resolved attitude log disabled flag enum position issue --- src/js/debug.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/debug.js b/src/js/debug.js index caa5f7a6b2..1c78ba3121 100644 --- a/src/js/debug.js +++ b/src/js/debug.js @@ -859,7 +859,7 @@ function update() { 'debug[5]': 'TPA Argument (Wing)', }; - DEBUG.enableFields.splice(DEBUG.enableFields.indexOf("Gyro"), 0, "Attitude"); + DEBUG.enableFields.splice(DEBUG.enableFields.indexOf("Accelerometer"), 0, "Attitude"); } } From eb5017fa8902f0205c5756d809211f89816997ff Mon Sep 17 00:00:00 2001 From: Vladimir Demidov Date: Fri, 6 Dec 2024 16:53:22 +0300 Subject: [PATCH 2/2] The code readable improvement Co-authored-by: Mark Haslinghuis --- src/js/debug.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/debug.js b/src/js/debug.js index 1c78ba3121..1c7eb8fe0d 100644 --- a/src/js/debug.js +++ b/src/js/debug.js @@ -859,7 +859,7 @@ function update() { 'debug[5]': 'TPA Argument (Wing)', }; - DEBUG.enableFields.splice(DEBUG.enableFields.indexOf("Accelerometer"), 0, "Attitude"); + DEBUG.enableFields.splice(DEBUG.enableFields.indexOf("Gyro") + 1, 0, "Attitude"); } }