Commit c8d6ba30 authored by LM's avatar LM

Prevented accidental direct sending

parent aef10d0b
......@@ -573,7 +573,7 @@ void HSIDisplay::mouseDoubleClickEvent(QMouseEvent * event)
if (event->type() == QMouseEvent::MouseButtonDblClick)
{
QPointF p = screenToMetricBody(event->posF());
setBodySetpointCoordinateXY(p.x(), p.y());
if (!directSending) setBodySetpointCoordinateXY(p.x(), p.y());
// qDebug() << "Double click at x: " << screenToRefX(event->x()) - xCenterPos << "y:" << screenToRefY(event->y()) - yCenterPos;
}
}
......@@ -586,7 +586,7 @@ void HSIDisplay::mouseReleaseEvent(QMouseEvent * event)
{
if (dragStarted)
{
setBodySetpointCoordinateYaw(uiYawSet);
if (!directSending) setBodySetpointCoordinateYaw(uiYawSet);
dragStarted = false;
}
}
......@@ -594,7 +594,7 @@ void HSIDisplay::mouseReleaseEvent(QMouseEvent * event)
{
if (leftDragStarted)
{
setBodySetpointCoordinateZ(uiZSetCoordinate);
if (!directSending) setBodySetpointCoordinateZ(uiZSetCoordinate);
leftDragStarted = false;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment