From 42215c7bd2b7b4f58bb3ad426a3f5c259cee3124 Mon Sep 17 00:00:00 2001 From: Jon Beniston Date: Tue, 23 May 2023 22:34:55 +0100 Subject: [PATCH] Rotator Controller: Allow negative azimuth. --- plugins/feature/gs232controller/gs232controllergui.ui | 3 +++ plugins/feature/gs232controller/rotctrldprotocol.cpp | 6 +++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/plugins/feature/gs232controller/gs232controllergui.ui b/plugins/feature/gs232controller/gs232controllergui.ui index 9cfd053dc..01cf876bc 100644 --- a/plugins/feature/gs232controller/gs232controllergui.ui +++ b/plugins/feature/gs232controller/gs232controllergui.ui @@ -339,6 +339,9 @@ + + -180 + 450 diff --git a/plugins/feature/gs232controller/rotctrldprotocol.cpp b/plugins/feature/gs232controller/rotctrldprotocol.cpp index 058a65b0a..d1e56b508 100644 --- a/plugins/feature/gs232controller/rotctrldprotocol.cpp +++ b/plugins/feature/gs232controller/rotctrldprotocol.cpp @@ -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 @@ -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)); } }