Commit e252fd0a authored by Don Gagne's avatar Don Gagne

Remove unused code

parent facc770e
......@@ -242,41 +242,6 @@ void SensorsComponentController::_handleUASTextMessage(int uasId, int compId, in
_updateAndEmitGyroCalInProgress(false);
_refreshParams();
}
#if 0
if (text.startsWith("Hold still, starting to measure ")) {
QString axis = text.section(" ", -2, -2);
setInstructionImage(QString(":/files/images/px4/calibration/accel_%1.png").arg(axis));
}
if (text.startsWith("pending: ")) {
QString axis = text.section(" ", 1, 1);
setInstructionImage(QString(":/files/images/px4/calibration/accel_%1.png").arg(axis));
}
if (text == "rotate in a figure 8 around all axis" /* support for old typo */
|| text == "rotate in a figure 8 around all axes" /* current version */) {
setInstructionImage(":/files/images/px4/calibration/mag_calibration_figure8.png");
}
if (text.endsWith(" calibration: done") || text.endsWith(" calibration: failed")) {
// XXX use a confirmation image or something
setInstructionImage(":/files/images/px4/calibration/accel_down.png");
if (text.endsWith(" calibration: done")) {
ui->progressBar->setValue(100);
} else {
ui->progressBar->setValue(0);
}
if (activeUAS) {
_requestAllSensorParameters();
}
}
if (text.endsWith(" calibration: started")) {
setInstructionImage(":/files/images/px4/calibration/accel_down.png");
}
#endif
}
void SensorsComponentController::_refreshParams(void)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment