1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-11-30 08:24:11 +01:00

Small bug where a field was still referenced but didn't exist in UI.

This commit is contained in:
James Cotton 2011-07-17 02:19:58 -05:00
parent 7081bb926b
commit efb2f315be

View File

@ -110,7 +110,6 @@ void ConfigCCAttitudeWidget::attitudeRawUpdated(UAVObject * obj) {
attitudeSettingsData.BiasCorrectGyro = initialBiasCorrected; attitudeSettingsData.BiasCorrectGyro = initialBiasCorrected;
AttitudeSettings::GetInstance(getObjectManager())->setData(attitudeSettingsData); AttitudeSettings::GetInstance(getObjectManager())->setData(attitudeSettingsData);
ui->status->setText("Calibration done.");
} else { } else {
// Possible to get here if weird threading stuff happens. Just ignore updates. // Possible to get here if weird threading stuff happens. Just ignore updates.
qDebug("Unexpected accel update received."); qDebug("Unexpected accel update received.");
@ -162,8 +161,6 @@ void ConfigCCAttitudeWidget::startAccelCalibration() {
y_gyro_accum.clear(); y_gyro_accum.clear();
z_gyro_accum.clear(); z_gyro_accum.clear();
ui->status->setText(tr("Calibrating..."));
// Disable gyro bias correction to see raw data // Disable gyro bias correction to see raw data
AttitudeSettings::DataFields attitudeSettingsData = AttitudeSettings::GetInstance(getObjectManager())->getData(); AttitudeSettings::DataFields attitudeSettingsData = AttitudeSettings::GetInstance(getObjectManager())->getData();
initialBiasCorrected = attitudeSettingsData.BiasCorrectGyro; initialBiasCorrected = attitudeSettingsData.BiasCorrectGyro;