mirror of
https://github.com/azaion/autopilot.git
synced 2026-04-22 10:36:34 +00:00
Fixes for A8 remote control. Added logging messages
This commit is contained in:
@@ -53,18 +53,21 @@ void AiEngineGimbalControl::inferenceResultSlot(AiEngineInferenceResult result)
|
||||
groupRect.right *= 2;
|
||||
|
||||
if (groupRect.top > 720 || groupRect.bottom > 720) {
|
||||
qDebug() << "ERROR! inferenceResultSlot() groupRect.top > 720 || groupRect.bottom > 720";
|
||||
return;
|
||||
}
|
||||
|
||||
if (groupRect.left > 1280 || groupRect.right > 1280) {
|
||||
qDebug() << "ERROR! inferenceResultSlot() groupRect.left > 1280 || groupRect.right > 1280";
|
||||
return;
|
||||
}
|
||||
|
||||
if ((groupRect.bottom <= groupRect.top) || (groupRect.right <= groupRect.left)) {
|
||||
qDebug() << "ERROR! (groupRect.bottom <= groupRect.top) || (groupRect.right <= groupRect.left)";
|
||||
return;
|
||||
}
|
||||
|
||||
qDebug() << "TUOMAS!! Zooming to square" << groupRect.top << "x" << groupRect.left << "and" << groupRect.bottom << "x" << groupRect.right;
|
||||
qDebug() << "TUOMAS!! Zooming to square top=" << groupRect.top << "x" << groupRect.left << "and bottom:" << groupRect.bottom << "x" << groupRect.right;
|
||||
|
||||
mRemoteControl.sendData(groupRect.top, groupRect.left, groupRect.left, groupRect.right);
|
||||
mRemoteControl.sendData(groupRect.top, groupRect.left, groupRect.bottom, groupRect.right);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user