Skip to content

Commit

Permalink
re-compute calibration when a measurement is updated
Browse files Browse the repository at this point in the history
  • Loading branch information
jankae committed Mar 5, 2024
1 parent b26dc41 commit 087bd8e
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -620,6 +620,15 @@ void Calibration::edit()
connect(this, &Calibration::measurementsUpdated, d, [=](){
updateMeasurementTable();
updateCalibrationList();
if(caltype.type != Type::None) {
// update the calibration with the new measurement
if(canCompute(caltype)) {
compute(caltype);
} else {
// can not keep the calibration, disabled
deactivate();
}
}
});

connect(ui->clearMeasurement, &QPushButton::clicked, [=](){
Expand Down

0 comments on commit 087bd8e

Please sign in to comment.