From ed53266ca35e473a5f1363c628a8f818379a1feb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tuomas=20J=C3=A4rvinen?= Date: Thu, 4 Jul 2024 12:11:05 +0300 Subject: [PATCH] Minor build fixes for OPI5 --- misc/camera/a8/remoteControl.cpp | 2 +- misc/camera/a8/utilsTargetLocation.cpp | 1 - misc/camera/a8_remote/remoteControl.cpp | 4 ++-- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/misc/camera/a8/remoteControl.cpp b/misc/camera/a8/remoteControl.cpp index 3b2df8a..f140b47 100644 --- a/misc/camera/a8/remoteControl.cpp +++ b/misc/camera/a8/remoteControl.cpp @@ -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; } diff --git a/misc/camera/a8/utilsTargetLocation.cpp b/misc/camera/a8/utilsTargetLocation.cpp index f1c41c0..579435c 100644 --- a/misc/camera/a8/utilsTargetLocation.cpp +++ b/misc/camera/a8/utilsTargetLocation.cpp @@ -3,7 +3,6 @@ #include #include "config.hpp" #include "defines.hpp" -#include GPSData UtilsTargetLocation::getLocation(float altitude, float latitude, float lognitude, float yaw, float pitch, float roll, float targetTrueSize, uint16_t targetPixelSize) { diff --git a/misc/camera/a8_remote/remoteControl.cpp b/misc/camera/a8_remote/remoteControl.cpp index 130b9a7..9a918a2 100644 --- a/misc/camera/a8_remote/remoteControl.cpp +++ b/misc/camera/a8_remote/remoteControl.cpp @@ -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