mirror of
https://github.com/azaion/autopilot.git
synced 2026-04-22 08:36:33 +00:00
Minor build fixes for OPI5
This commit is contained in:
@@ -88,7 +88,7 @@ void RemoteControl::sendResponse(void)
|
||||
if (bytesWritten < 1) {
|
||||
qWarning().noquote().nospace() << "Error writing response: " << bytesWritten;
|
||||
}
|
||||
qDebug().noquote().nospace() << "Responded: " << response;
|
||||
qDebug().noquote().nospace() << "Responded: " << response.c_str();
|
||||
mIsBusy = false;
|
||||
}
|
||||
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
#include <QImage>
|
||||
#include "config.hpp"
|
||||
#include "defines.hpp"
|
||||
#include <opencv2/opencv.hpp>
|
||||
|
||||
GPSData UtilsTargetLocation::getLocation(float altitude, float latitude, float lognitude, float yaw, float pitch, float roll, float targetTrueSize, uint16_t targetPixelSize)
|
||||
{
|
||||
|
||||
@@ -90,9 +90,9 @@ void RemoteControl::sendData(uint16_t top, uint16_t left, uint16_t bottom, uint1
|
||||
std::string command = commandDocument.toJson(QJsonDocument::Compact).toStdString();
|
||||
size_t bytesWritten = write(mFifoFdOut, command.c_str(), command.size());
|
||||
if (bytesWritten < 1) {
|
||||
qWarning().noquote().nospace() << "Error writing data: " << bytesWritten;
|
||||
qWarning().noquote().nospace() << "Error writing data: " << QString::number(bytesWritten);
|
||||
}
|
||||
qDebug().noquote().nospace() << "Sent: " << command;
|
||||
qDebug().noquote().nospace() << "Sent: " << command.c_str();
|
||||
}
|
||||
|
||||
#ifdef FIFO_TEST
|
||||
|
||||
Reference in New Issue
Block a user