diff --git a/locales/en/messages.json b/locales/en/messages.json index e8635cca..fd0fc4b9 100755 --- a/locales/en/messages.json +++ b/locales/en/messages.json @@ -7618,17 +7618,5 @@ "programmingFailedNotification": { "message": "FC programming failed", "description": "Notification message when programming is unsuccessful" - }, - "accCalibratingMessageText": { - "message": "Calibrating accelerometer" - }, - "accCalibratingDescriptionText": { - "message": "Place the drone on a flat surface and wait for the calibration to complete." - }, - "gyroErroredText": { - "message": "No Gyro" - }, - "gyroErroredDescriptionText": { - "message": "Gyro has not been detected." } } diff --git a/src/css/main.less b/src/css/main.less index ebb20cce..c19c56bb 100644 --- a/src/css/main.less +++ b/src/css/main.less @@ -1832,9 +1832,6 @@ each(range(12), { shape-rendering: crispEdges; } } -.blur { - filter: blur(3px); -} @media not all and (max-width: 575px) { .visible-on-phone-only { display: none !important; diff --git a/src/css/tabs/setup.less b/src/css/tabs/setup.less index 8b72b1ea..15d78dcf 100644 --- a/src/css/tabs/setup.less +++ b/src/css/tabs/setup.less @@ -167,21 +167,3 @@ .disarm-flag { padding-left: 5px; } - -#model-and-info-container { - position: relative; - - .overlay-status { - position: absolute; - top: 50%; - left: 50%; - transform: translate(-50%, -50%); - z-index: 1; - text-align: center; - - .status-message { - font-weight: bold; - font-size: 2.1rem; - } - } -} diff --git a/src/js/tabs/setup.js b/src/js/tabs/setup.js index a39166b2..c6e73e92 100644 --- a/src/js/tabs/setup.js +++ b/src/js/tabs/setup.js @@ -497,8 +497,6 @@ setup.initialize = function (callback) { ); } - setup.updateGyroStatus(FC.CONFIG.armingDisableFlags); - // System info is acquired in the background using update_live_status() in serial_backend.js bat_voltage_e.text(i18n.getMessage("initialSetupBatteryValue", [FC.ANALOG.voltage])); @@ -606,34 +604,6 @@ setup.refresh = function () { }); }; -setup.updateGyroStatus = function (armingDisableFlags) { - const NO_GYRO_BIT = 0; // Position of NO_GYRO flag - const CALIBRATING_BIT = 12; // Position of CALIBRATING flag - const ACC_CALIBRATION_BIT = 23; // Position of ACC_CALIBRATION flag - - const hasNoGyro = armingDisableFlags & (1 << NO_GYRO_BIT); - const isCalibrating = - armingDisableFlags & (1 << CALIBRATING_BIT) || armingDisableFlags & (1 << ACC_CALIBRATION_BIT); - - const hasGyroIssue = hasNoGyro || isCalibrating; - - if (hasGyroIssue) { - // Show appropriate text based on the issue - $(".overlay-status .status-message").text( - i18n.getMessage(hasNoGyro ? "gyroErroredText" : "accCalibratingMessageText"), - ); - $(".overlay-status .status-description").text( - i18n.getMessage(hasNoGyro ? "gyroErroredDescriptionText" : "accCalibratingDescriptionText"), - ); - - $("#interactive_block").addClass("blur"); - $(".overlay-status").show(); - } else { - $(".overlay-status").hide(); - $("#interactive_block").removeClass("blur"); - } -}; - TABS.setup = setup; export { setup }; diff --git a/src/tabs/setup.html b/src/tabs/setup.html index a746f481..2c24afbe 100644 --- a/src/tabs/setup.html +++ b/src/tabs/setup.html @@ -70,29 +70,21 @@
-
-
-

-

-
-
-
- -
-
-
-
 
-
-
 
-
-
 
-
-
+
+
+ +
+
+
+
 
+
+
 
+
+
 
+
-
+