Skip to content

Commit

Permalink
Rotator Controller: Allow negative azimuth.
Browse files Browse the repository at this point in the history
  • Loading branch information
srcejon committed May 23, 2023
1 parent 302c040 commit 42215c7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions plugins/feature/gs232controller/gs232controllergui.ui
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,9 @@
</item>
<item row="4" column="1">
<widget class="QSpinBox" name="azimuthMin">
<property name="minimum">
<number>-180</number>
</property>
<property name="maximum">
<number>450</number>
</property>
Expand Down
6 changes: 3 additions & 3 deletions plugins/feature/gs232controller/rotctrldprotocol.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ void RotCtrlDProtocol::readData()
int rprt = matchRprt.captured(1).toInt();
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
// E.g: ./rotctld.exe -m 603 -r com7 -vvvvv
// read_string(): RX 16 characters
Expand All @@ -97,12 +97,12 @@ void RotCtrlDProtocol::readData()
QString az = m_rotCtlDAz;
QString el = response;
m_rotCtlDReadAz = false;
//qDebug() << "GS232ControllerWorker::readData read Az " << az << " El " << el;
//qDebug() << "RotCtrlDProtocol::readData read Az " << az << " El " << el;
reportAzEl(az.toFloat(), el.toFloat());
}
else
{
qWarning() << "GS232ControllerWorker::readData - Unexpected rotctld response \"" << response << "\"";
qWarning() << "RotCtrlDProtocol::readData - Unexpected rotctld response \"" << response << "\"";
reportError(QString("Unexpected rotctld response: %1").arg(response));
}
}
Expand Down

0 comments on commit 42215c7

Please sign in to comment.