feat: allow IMU inversion (#7505)

This commit is contained in:
3djc
2026-07-04 18:33:29 +10:00
committed by GitHub
parent c070ddda4b
commit 057883da83
20 changed files with 124 additions and 3 deletions
+19
View File
@@ -107,6 +107,25 @@ HardwarePanel::HardwarePanel(QWidget * parent, GeneralSettings & generalSettings
addParams();
}
if (Boards::getCapability(board, Board::HasIMU)) {
addSection(tr("IMU"));
addLabel("");
addLabel(tr("Invert"));
addParams();
addLabel(tr("X"));
AutoCheckBox *imuInvertX = new AutoCheckBox(this);
imuInvertX->setField(generalSettings.imuInvertX, this);
params->append(imuInvertX);
addParams();
addLabel(tr("Y"));
AutoCheckBox *imuInvertY = new AutoCheckBox(this);
imuInvertY->setField(generalSettings.imuInvertY, this);
params->append(imuInvertY);
addParams();
}
count = Boards::getCapability(board, Board::Inputs);
if (count > 0) {