Bi-monthly release with minor bug fixes and improvements
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Guide: "\u0002\u0000\u000E\u0000\u000B\u0000\u0000\u0000-0.43 -0.02"
Guide: "\u0002\u0000\u000E\u0000\u0000\u0000\u0000-0.37 0.51"
Guide: "\u0002\u0000\r\u0000\u0002\u0000\u0000\u0000OK"
Guide: "LinGuider::processResponse SET_DITHERING_RANGE"
Guide: "\u0002\u0000\u000E\u0000\u000B\u0000\u0000\u0000-1.37 -0.32"
Guide: "\u0002\u0000\u0004\u0000\u0002\u0000\u0000\u0000OK"
Guide: "LinGuider::processResponse DITHERING"
Guide: "Dithering completed successfully."
Guide: "Guiding resumed."
Guide: Capturing frame...
Guide: "\u0002\u0000\u000E\u0000\t\u0000\u0000\u00000.03 0.87"
Guide: "\u0002\u0000\u000E\u0000\t\u0000\u0000\u00000.49 0.85"
Guide: "\u0002\u0000\r\u0000\u0002\u0000\u0000\u0000OK\u0002\u0000\u000E\u0000"
Guide: "LinGuider::processResponse SET_DITHERING_RANGE"
Guide: "Failed to set dither range."
Guide: "\u0000\u0000\u0000-0.27 0.64"
Guide: "Invalid response."
Guide: "\u0002\u0000\u000E\u0000\t\u0000\u0000\u00000.14 0.63"
Guide: "\u0002\u0000\u000E\u0000\u000B\u0000\u0000\u0000-0.19 -0.86"
Guide: "\u0002\u0000\u000E\u0000\u000B\u0000\u0000\u0000-0.31 -0.49\u0002\u0000\r\u0000\u0002\u0000\u0000\u0000OK"
Guide: "\u0002\u0000\u000E\u0000\u000B\u0000\u0000\u0000-0.31 -0.49"
Guide: "\u0002\u0000\u000E\u0000\u000B\u0000\u0000\u0000-0.43 -0.02"
0x02 0x00 0x0e 0x00 0x0b 0x00 0x00 0x00 "-0.43 -0.02"
Guide: "\u0002\u0000\u000E\u0000\u000B\u0000\u0000\u0000-0.31 -0.49\u0002\u0000\r\u0000\u0002\u0000\u0000\u0000OK"
0x02 0x00 0x0e 0x00 0x0b 0x00 0x00 0x00 "-0.31 -0.49" 0x02 0x00 0x0d 0x00 0x02 0x00 0x00 0x00 "OK"
Guide: "\u0002\u0000\r\u0000\u0002\u0000\u0000\u0000OK\u0002\u0000\u000E\u0000"
0x02 0x00 0x0d 0x00 0x02 0x00 0x00 0x00 "OK" 0x02 0x00 0x0e 0x00
Guide: "\u0002\u0000\u000E\u0000\u0000\u0000\u0000-0.02 0.90"
0x02 0x00 0x0e 0x00 0x00 0x00 0x00 "-0.02 0.90"
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
private:
void sendCommand(LinGuiderCommand command, const QString &args = QString());
void processResponse(LinGuiderCommand command, const QString &reply);
QTcpSocket *tcpSocket;
+ QByteArray rawBuffer;
LinGuider::LinGuider()
{
+ rawBuffer.clear();
tcpSocket = new QTcpSocket(this);
bool LinGuider::Connect()
{
if (connection == DISCONNECTED)
{
+ rawBuffer.clear();
connection = CONNECTING;
bool LinGuider::Disconnect()
{
+ rawBuffer.clear();
connection = DISCONNECTED;
tcpSocket->disconnectFromHost();
void LinGuider::readLinGuider()
{
while (tcpSocket->atEnd() == false )
{
rawBuffer += tcpSocket->readAll();
while(1)
{
if (rawBuffer.count() < 8)
break;
if (Options::guideLogging())
qDebug() << "Guide:" << rawBuffer;
qint16 magicNumber = *(reinterpret_cast<qint16*>(rawBuffer.data()));
if (magicNumber != 0x02)
{
emit newLog(i18n("Invalid response."));
rawBuffer = rawBuffer.mid(1);
continue;
}
qint16 command = *(reinterpret_cast<qint16*>(rawBuffer.data()+2));
if (command < GET_VER || command > GET_RA_DEC_DRIFT)
{
emit newLog(i18n("Invalid response."));
rawBuffer = rawBuffer.mid(1);
continue;
}
qint16 datalen = *(reinterpret_cast<qint16*>(rawBuffer.data()+4));
if (rawBuffer.count() < datalen + 8)
break;
QString reply = rawBuffer.mid(8, datalen);
processResponse(static_cast<LinGuiderCommand>(command), reply);
rawBuffer = rawBuffer.mid(8+datalen);
}
}
}
void LinGuider::processResponse(LinGuiderCommand command, const QString &reply)
{
:
case DITHER:
- if (reply == "OK")
+ if (reply == "Long time cmd finished")
emit newStatus(GUIDE_DITHERING_SUCCESS);
else
emit newStatus(GUIDE_DITHERING_ERROR);
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.