emitlogProcessingStatusChanged(tr("Log Compressor: Cannot start/compress log file, since input file %1 is not readable").arg(QFileInfo(infile.fileName()).absoluteFilePath()));
_signalCriticalError(tr("Log Compressor: Cannot start/compress log file, since input file %1 is not readable").arg(QFileInfo(infile.fileName()).absoluteFilePath()));
emitlogProcessingStatusChanged(tr("Log Compressor: Cannot start/compress log file, since output file %1 is not writable").arg(QFileInfo(outTmpFile.fileName()).absoluteFilePath()));
_signalCriticalError(tr("Log Compressor: Cannot start/compress log file, since output file %1 is not writable").arg(QFileInfo(outTmpFile.fileName()).absoluteFilePath()));
@@ -233,7 +234,10 @@ void MAVLinkProtocol::receiveBytes(LinkInterface* link, QByteArray b)
warnedUser=true;
// Obviously the user tries to use a 0.9 autopilot
// with QGroundControl built for version 1.0
emitprotocolStatusMessage("MAVLink Version or Baud Rate Mismatch","Your MAVLink device seems to use the deprecated version 0.9, while QGroundControl only supports version 1.0+. Please upgrade the MAVLink version of your autopilot. If your autopilot is using version 1.0, check if the baud rates of QGroundControl and your autopilot are the same.");
emitprotocolStatusMessage(tr("MAVLink Protocol"),tr("There is a MAVLink Version or Baud Rate Mismatch. "
"Your MAVLink device seems to use the deprecated version 0.9, while QGroundControl only supports version 1.0+. "
"Please upgrade the MAVLink version of your autopilot. "
"If your autopilot is using version 1.0, check if the baud rates of QGroundControl and your autopilot are the same."));
}
if(decodeState==0&&!decodedFirstPacket)
...
...
@@ -250,7 +254,8 @@ void MAVLinkProtocol::receiveBytes(LinkInterface* link, QByteArray b)
else
{
warnedUserNonMavlink=true;
emitprotocolStatusMessage("MAVLink Baud Rate Mismatch","Please check if the baud rates of QGroundControl and your autopilot are the same.");
emitprotocolStatusMessage(tr("MAVLink Protocol"),tr("There is a MAVLink Version or Baud Rate Mismatch. "
"Please check if the baud rates of QGroundControl and your autopilot are the same."));
}
}
}
...
...
@@ -303,7 +308,7 @@ void MAVLinkProtocol::receiveBytes(LinkInterface* link, QByteArray b)
if(_tempLogFile.write(b)!=len)
{
// If there's an error logging data, raise an alert and stop logging.
emitprotocolStatusMessage(tr("MAVLink Logging failed"),tr("Could not write to file %1, logging disabled.").arg(_tempLogFile.fileName()));
emitprotocolStatusMessage(tr("MAVLink Protocol"),tr("MAVLink Logging failed. Could not write to file %1, logging disabled.").arg(_tempLogFile.fileName()));
_stopLogging();
_logSuspendError=true;
}
...
...
@@ -327,7 +332,7 @@ void MAVLinkProtocol::receiveBytes(LinkInterface* link, QByteArray b)
// Check if the UAS has the same id like this system
if(message.sysid==getSystemId())
{
emitprotocolStatusMessage(tr("SYSTEM ID CONFLICT!"),tr("Warning: A second system is using the same system id (%1)").arg(getSystemId()));
emitprotocolStatusMessage(tr("MAVLink Protocol"),tr("Warning: A second system is using the same system id (%1)").arg(getSystemId()));
}
// Create a new UAS based on the heartbeat received
...
...
@@ -347,8 +352,9 @@ void MAVLinkProtocol::receiveBytes(LinkInterface* link, QByteArray b)
// Bring up dialog to inform user
if(!versionMismatchIgnore)
{
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));
emitprotocolStatusMessage(tr("MAVLink Protocol"),tr("The MAVLink protocol version on the MAV and QGroundControl mismatch! "
"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));
errMsg=tr("Unable to automatically determine --fg-root directory location. You will need to specify --fg-root=<directory> as an additional command line parameter from ui.");
errMsg=tr("Unable to automatically determine --fg-scenery directory location. You will need to specify --fg-scenery=directory as an additional command line parameter from ui.");
// Verify directory where FlightGear stores communicaton protocols.
QDirfgProtocolDir(fgRootPath);
if(!fgProtocolDir.cd("Protocol")){
MainWindow::instance()->showCriticalMessage(tr("Incorrect FlightGear setup"),tr("Protocol directory is missing: '%1'. Command line parameter for --fg-root may be set incorrectly.").arg(fgProtocolDir.path()));
QGCMessageBox::critical(tr("FlightGear HIL"),tr("Incorrect FlightGear setup. Protocol directory is missing: '%1'. Command line parameter for --fg-root may be set incorrectly.").arg(fgProtocolDir.path()));
returnfalse;
}
// Verify directory which contains QGC provided FlightGear communication protocol files
_offlineEditingModeMessage=tr("You are in offline editing mode. Make sure to save your mission to a file before connecting to a system - you will need to load the file into the system, the offline list will be cleared on connect.");
MainWindow::instance()->showCriticalMessage(tr("The selected file is unreadable"),tr("Please make sure that the file %1 is readable or select a different file").arg(file));
QGCMessageBox::critical(tr("Log Replay"),tr("The selected file is unreadable. Please make sure that the file %1 is readable or select a different file").arg(file));
MainWindow::instance()->showCriticalMessage(tr("The selected file is corrupt"),tr("No valid timestamps were found at the end of the file.").arg(file));
QGCMessageBox::critical(tr("Log Replay"),tr("The selected file is corrupt. No valid timestamps were found at the end of the file.").arg(file));