mirror of
https://github.com/azaion/autopilot.git
synced 2026-04-22 08:36:33 +00:00
Add support for A8 remote control to opi_rtsp test app
This commit is contained in:
@@ -9,13 +9,13 @@ TARGET = a8
|
||||
QMAKE_CXXFLAGS = -O0 -g -ggdb -fsanitize=undefined,address,bounds,float-divide-by-zero,integer-divide-by-zero,null,return,signed-integer-overflow,unreachable,shift,alignment,nonnull-attribute,returns-nonnull-attribute,enum
|
||||
QMAKE_LFLAGS = -O0 -g -ggdb -fsanitize=undefined,address,bounds,float-divide-by-zero,integer-divide-by-zero,null,return,signed-integer-overflow,unreachable,shift,alignment,nonnull-attribute,returns-nonnull-attribute,enum
|
||||
|
||||
QMAKE_CXX = clang++
|
||||
QMAKE_CC = clang
|
||||
#QMAKE_CXX = clang++
|
||||
#QMAKE_CC = clang
|
||||
|
||||
# Not nice, but for some reason QtCreator doesn't use /usr/lib/ccache/g++ from the PATH
|
||||
linux-g++ {
|
||||
QMAKE_CXX = clang++
|
||||
QMAKE_CC = clang
|
||||
# QMAKE_CXX = clang++
|
||||
# QMAKE_CC = clang
|
||||
}
|
||||
|
||||
SOURCES += \
|
||||
|
||||
@@ -84,7 +84,7 @@ void RemoteControl::sendResponse(void)
|
||||
QJsonDocument responseDocument(mResponseObject);
|
||||
std::string response = responseDocument.toJson(QJsonDocument::Compact).toStdString();
|
||||
|
||||
qDebug().noquote().nospace() << "Sending responce: " << response;
|
||||
// qDebug().noquote().nospace() << "Sending responce: " << response;
|
||||
|
||||
write(mFifoFdOut, response.c_str(), response.size());
|
||||
mIsBusy = false;
|
||||
|
||||
@@ -89,7 +89,7 @@ void RemoteControl::sendData(uint16_t top, uint16_t left, uint16_t bottom, uint1
|
||||
QJsonDocument commandDocument(commandObject);
|
||||
std::string command = commandDocument.toJson(QJsonDocument::Compact).toStdString();
|
||||
write(mFifoFdOut, command.c_str(), command.size());
|
||||
qDebug().noquote().nospace() << "Sent: " << command;
|
||||
//qDebug().noquote().nospace() << "Sent: " << command;
|
||||
}
|
||||
|
||||
#ifdef FIFO_TEST
|
||||
|
||||
Reference in New Issue
Block a user