From bcda1c7c024cca404304f661a6a044dca1c570f5 Mon Sep 17 00:00:00 2001 From: demvlad Date: Thu, 14 Nov 2024 20:13:41 +0300 Subject: [PATCH 1/2] added 'Attitude' field in blackbox list --- src/js/debug.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/js/debug.js b/src/js/debug.js index e6cc5fcf0d..51a6a557f0 100644 --- a/src/js/debug.js +++ b/src/js/debug.js @@ -774,6 +774,7 @@ const DEBUG = { "Altitude", "RSSI", "Gyro", + "Attitude", "Accelerometer", "Debug Log", "Motor", From 28e9635040d45ddd52ab9d86682604aeefb8eea1 Mon Sep 17 00:00:00 2001 From: demvlad Date: Thu, 14 Nov 2024 20:38:00 +0300 Subject: [PATCH 2/2] The new attitude field is compatible with older versions --- 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 51a6a557f0..5a2a0731b3 100644 --- a/src/js/debug.js +++ b/src/js/debug.js @@ -774,7 +774,6 @@ const DEBUG = { "Altitude", "RSSI", "Gyro", - "Attitude", "Accelerometer", "Debug Log", "Motor", @@ -835,6 +834,7 @@ function update() { 'debug[6]': 'Altitude D', 'debug[7]': 'Altitude F', }; + DEBUG.enableFields.splice(DEBUG.enableFields.indexOf("Gyro"), 0, "Attitude"); } }