Add support for A8 remote control to opi_rtsp test app

This commit is contained in:
Your Name
2024-07-04 11:02:18 +03:00
parent a14e463989
commit dfe3c7c561
6 changed files with 32 additions and 9 deletions
+4 -4
View File
@@ -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 += \
+1 -1
View File
@@ -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;
+1 -1
View File
@@ -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