emitprotocolStatusMessage(tr("The MAVLink protocol version on the MAV and QGroundControl mismatch!"),
emitprotocolStatusMessage(tr("The MAVLink protocol version on the MAV and QGroundControl mismatch!"),
tr("It is unsafe to use different MAVLink versions. QGroundControl therefore refuses to connect to system %1, which sends MAVLink version %2 (QGroundControl uses version %3).").arg(message.sysid).arg(heartbeat.mavlink_version).arg(MAVLINK_VERSION));
tr("It is unsafe to use different MAVLink versions. QGroundControl therefore refuses to connect to system %1, which sends MAVLink version %2 (QGroundControl uses version %3).").arg(message.sysid).arg(heartbeat.mavlink_version).arg(MAVLINK_VERSION));
versionMismatchIgnore=true;
versionMismatchIgnore=true;
...
@@ -279,28 +299,39 @@ void MAVLinkProtocol::receiveBytes(LinkInterface* link, QByteArray b)
...
@@ -279,28 +299,39 @@ void MAVLinkProtocol::receiveBytes(LinkInterface* link, QByteArray b)
}
}
// Only count message if UAS exists for this message
// Only count message if UAS exists for this message
emitprotocolStatusMessage(tr("Opening MAVLink logfile for writing failed"),tr("MAVLink cannot log to the file %1, please choose a different file. Stopping logging.").arg(m_logfile->fileName()));
emitprotocolStatusMessage(tr("Opening MAVLink logfile for writing failed"),tr("MAVLink cannot log to the file %1, please choose a different file. Stopping logging.").arg(m_logfile->fileName()));
m_loggingEnabled=false;
m_loggingEnabled=false;
}
}
}
}
}elseif(!enabled){
else
if(m_logfile){
{
if(m_logfile->isOpen()){
emitprotocolStatusMessage(tr("Opening MAVLink logfile for writing failed"),tr("MAVLink cannot start logging, no logfile selected."));