Skip to content

Commit

Permalink
Merge pull request #1775 from lrowen/test-singlestep-size
Browse files Browse the repository at this point in the history
Use precision to control single-step size in gs232controller feature [Issue# 1771]
  • Loading branch information
f4exb authored Aug 13, 2023
2 parents 33ce5cf + ba7cb15 commit 44298cf
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions plugins/feature/gs232controller/gs232controllergui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -690,6 +690,12 @@ void GS232ControllerGUI::setPrecision()
ui->tolerance->setDecimals(m_settings.m_precision);
ui->azimuthOffset->setDecimals(m_settings.m_precision);
ui->elevationOffset->setDecimals(m_settings.m_precision);
double step = pow(10.0, -m_settings.m_precision);
ui->coord1->setSingleStep(step);
ui->coord2->setSingleStep(step);
ui->tolerance->setSingleStep(step);
ui->azimuthOffset->setSingleStep(step);
ui->elevationOffset->setSingleStep(step);
}

void GS232ControllerGUI::on_protocol_currentIndexChanged(int index)
Expand Down

0 comments on commit 44298cf

Please sign in to comment.