mirror of
https://github.com/azaion/autopilot.git
synced 2026-04-22 11:26:35 +00:00
Fixes for A8 remote control. Added logging messages
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
#include "remoteControl.hpp"
|
||||
#include <QCoreApplication>
|
||||
#include <QDebug>
|
||||
#include <QHostAddress>
|
||||
@@ -7,9 +6,7 @@
|
||||
#include <QThread>
|
||||
#include <QTimer>
|
||||
#include <QUdpSocket>
|
||||
#include <fcntl.h>
|
||||
#include <sys/stat.h>
|
||||
#include <unistd.h>
|
||||
#include "remoteControl.hpp"
|
||||
|
||||
uint8_t RemoteControl::sendData(uint16_t top, uint16_t left, uint16_t bottom, uint16_t right)
|
||||
{
|
||||
@@ -23,8 +20,6 @@ uint8_t RemoteControl::sendData(uint16_t top, uint16_t left, uint16_t bottom, ui
|
||||
if (bytesSent == -1) {
|
||||
qWarning("Failed to send the datagram: %s", qPrintable(udpSocket.errorString()));
|
||||
return 1;
|
||||
} else {
|
||||
qDebug("Datagram sent successfully");
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user