mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-25 17:25:16 +03:00
Revert "Add info overlay about gyro status over model view" (#4361)
Revert "Add info overlay about gyro status over model view (#4358)"
This reverts commit 80e5770b8e
.
This commit is contained in:
parent
73442643cf
commit
0c80ccce00
5 changed files with 13 additions and 84 deletions
|
@ -7618,17 +7618,5 @@
|
||||||
"programmingFailedNotification": {
|
"programmingFailedNotification": {
|
||||||
"message": "FC programming failed",
|
"message": "FC programming failed",
|
||||||
"description": "Notification message when programming is unsuccessful"
|
"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."
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1832,9 +1832,6 @@ each(range(12), {
|
||||||
shape-rendering: crispEdges;
|
shape-rendering: crispEdges;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.blur {
|
|
||||||
filter: blur(3px);
|
|
||||||
}
|
|
||||||
@media not all and (max-width: 575px) {
|
@media not all and (max-width: 575px) {
|
||||||
.visible-on-phone-only {
|
.visible-on-phone-only {
|
||||||
display: none !important;
|
display: none !important;
|
||||||
|
|
|
@ -167,21 +167,3 @@
|
||||||
.disarm-flag {
|
.disarm-flag {
|
||||||
padding-left: 5px;
|
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;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
|
@ -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
|
// 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]));
|
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;
|
TABS.setup = setup;
|
||||||
|
|
||||||
export { setup };
|
export { setup };
|
||||||
|
|
|
@ -70,29 +70,21 @@
|
||||||
<div class="modelwrapper"></div>
|
<div class="modelwrapper"></div>
|
||||||
<div class="grid-row grid-box col4">
|
<div class="grid-row grid-box col4">
|
||||||
<div class="col-span-3 model-and-info">
|
<div class="col-span-3 model-and-info">
|
||||||
<div id="model-and-info-container">
|
<div id="interactive_block">
|
||||||
<div class="overlay-status">
|
<div id="canvas_wrapper" class="background_paper">
|
||||||
<p class="status-message"
|
<canvas id="canvas"></canvas>
|
||||||
i18n="accCalibratingMessageText"></p>
|
<div class="attitude_info">
|
||||||
<p class="status-description"
|
<dl>
|
||||||
i18n="accCalibratingDescriptionText"></p>
|
<dt i18n="initialSetupHeading"></dt>
|
||||||
</div>
|
<dd class="heading"> </dd>
|
||||||
<div id="interactive_block">
|
<dt i18n="initialSetupPitch"></dt>
|
||||||
<div id="canvas_wrapper" class="background_paper">
|
<dd class="pitch"> </dd>
|
||||||
<canvas id="canvas"></canvas>
|
<dt i18n="initialSetupRoll"></dt>
|
||||||
<div class="attitude_info">
|
<dd class="roll"> </dd>
|
||||||
<dl>
|
</dl>
|
||||||
<dt i18n="initialSetupHeading"></dt>
|
|
||||||
<dd class="heading"> </dd>
|
|
||||||
<dt i18n="initialSetupPitch"></dt>
|
|
||||||
<dd class="pitch"> </dd>
|
|
||||||
<dt i18n="initialSetupRoll"></dt>
|
|
||||||
<dd class="roll"> </dd>
|
|
||||||
</dl>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<a class="reset sm-min" href="#" i18n="initialSetupButtonResetZaxis"></a>
|
|
||||||
</div>
|
</div>
|
||||||
|
<a class="reset sm-min" href="#" i18n="initialSetupButtonResetZaxis"></a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-span-1 grid-box col1">
|
<div class="col-span-1 grid-box col1">
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue