1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-12-23 01:55:48 -05:00

Merge pull request #1775 from lrowen/test-singlestep-size

Use precision to control single-step size in gs232controller feature [Issue# 1771]
This commit is contained in:
Edouard Griffiths 2023-08-13 19:34:47 +02:00 committed by GitHub
commit 44298cf339
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)