Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

QGroundControl Misinterprets Workspace Boundaries #11529

Open
nechtobolshee opened this issue May 14, 2024 · 0 comments
Open

QGroundControl Misinterprets Workspace Boundaries #11529

nechtobolshee opened this issue May 14, 2024 · 0 comments

Comments

@nechtobolshee
Copy link

nechtobolshee commented May 14, 2024

Expected Behavior

QGroundControl should accurately recognize and adhere to the actual workspace boundaries for video streams, ensuring that elements such as cursor coordinates and external markers accurately reflect their true positions within the displayed video frame.

Current Behavior

When streaming a video at a resolution of 720x576, QGroundControl incorrectly assumes the entire workspace width is 720 pixels. As a result, it mismatches cursor coordinates, placing external elements (like a green dot which is part of an overlay) outside of their intended bounds as seen in the UI. This is evidenced by the cursor's value approaching 0.99+ at the border, indicating a workspace boundary error where QGroundControl thinks the workspace is wider than it actually is.

Steps to Reproduce:

Please provide an unambiguous set of steps to reproduce the current behavior

  1. Prepare a video stream with a resolution of 720x576.
  2. Configure QGroundControl.
  3. Start streaming the video to QGroundControl.
  4. Click on the black frame on the sides and look at the coordinates that were sent in the MAV_CMD_CAMERA_TRACK_POINT command. (Move the cursor to the edge of the video area to see the coordinate values reaching 0.99+, indicating a misinterpretation of the actual workspace width.)

System Information

  • Operating System: Ubuntu 22.04
  • QGC Version: master
  • QGC Build: daily

Detailed Description

The issue appears when QGroundControl handles video streams, particularly in the calculation and recognition of workspace boundaries. The application fails to correctly determine the actual width of the video display area, treating the entire workspace as if it is the same as the video width (720 pixels). This results in misalignment of cursor coordinates and external elements.

Log Files and Screenshots

The second image clearly shows the problem - when you click on a corner of the workspace, the point shifts.
QGround Control (2)
QGround Control

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant