mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-26 17:58:43 -05:00
Rotator Controller: Allow negative azimuth.
This commit is contained in:
parent
302c040515
commit
42215c7bd2
@ -339,6 +339,9 @@
|
|||||||
</item>
|
</item>
|
||||||
<item row="4" column="1">
|
<item row="4" column="1">
|
||||||
<widget class="QSpinBox" name="azimuthMin">
|
<widget class="QSpinBox" name="azimuthMin">
|
||||||
|
<property name="minimum">
|
||||||
|
<number>-180</number>
|
||||||
|
</property>
|
||||||
<property name="maximum">
|
<property name="maximum">
|
||||||
<number>450</number>
|
<number>450</number>
|
||||||
</property>
|
</property>
|
||||||
|
@ -75,7 +75,7 @@ void RotCtrlDProtocol::readData()
|
|||||||
int rprt = matchRprt.captured(1).toInt();
|
int rprt = matchRprt.captured(1).toInt();
|
||||||
if (rprt != 0)
|
if (rprt != 0)
|
||||||
{
|
{
|
||||||
qWarning() << "GS232ControllerWorker::readData - rotctld error: " << errors[-rprt];
|
qWarning() << "RotCtrlDProtocol::readData - rotctld error: " << errors[-rprt];
|
||||||
// Seem to get a lot of EPROTO errors from rotctld due to extra 00 char in response to GS232 C2 command
|
// Seem to get a lot of EPROTO errors from rotctld due to extra 00 char in response to GS232 C2 command
|
||||||
// E.g: ./rotctld.exe -m 603 -r com7 -vvvvv
|
// E.g: ./rotctld.exe -m 603 -r com7 -vvvvv
|
||||||
// read_string(): RX 16 characters
|
// read_string(): RX 16 characters
|
||||||
@ -97,12 +97,12 @@ void RotCtrlDProtocol::readData()
|
|||||||
QString az = m_rotCtlDAz;
|
QString az = m_rotCtlDAz;
|
||||||
QString el = response;
|
QString el = response;
|
||||||
m_rotCtlDReadAz = false;
|
m_rotCtlDReadAz = false;
|
||||||
//qDebug() << "GS232ControllerWorker::readData read Az " << az << " El " << el;
|
//qDebug() << "RotCtrlDProtocol::readData read Az " << az << " El " << el;
|
||||||
reportAzEl(az.toFloat(), el.toFloat());
|
reportAzEl(az.toFloat(), el.toFloat());
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
qWarning() << "GS232ControllerWorker::readData - Unexpected rotctld response \"" << response << "\"";
|
qWarning() << "RotCtrlDProtocol::readData - Unexpected rotctld response \"" << response << "\"";
|
||||||
reportError(QString("Unexpected rotctld response: %1").arg(response));
|
reportError(QString("Unexpected rotctld response: %1").arg(response));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user