-
Notifications
You must be signed in to change notification settings - Fork 111
1.4: Cherry-pick 3254 [Enable QGC Server link by default] #3509
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
base: 1.4
Are you sure you want to change the base?
Conversation
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
Reviewer's guide (collapsed on small PRs)Reviewer's GuideCherry-picks commit 3254 to enable the GCS server endpoint by default by setting its 'enabled' flag to True, ensuring QGC can connect on 0.0.0.0:14550 even when the vehicle’s IP changes via DHCP. Class diagram for updated Endpoint initialization in AutopilotManagerclassDiagram
class AutopilotManager {
+__init__()
}
class Endpoint {
+name
+place
+argument
+persistent
+enabled
}
AutopilotManager --> Endpoint : creates
AutopilotManager : Endpoint(name="GCS Server Link", place="0.0.0.0", argument=14550, persistent=True, enabled=True)
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
have you checked that this doesnt result in duplicated data being received on qgc when the user hardcodes the 192.168.2.1 IP ? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This indeed makes QGC connection doubled:
- First, clean all QGC stuff:
\rm -rf \
~/.cache/QGroundControl.org \
~/.cache/QGCMapCache300 \
~/Documents/QGroundControl \
~/.config/QGroundControl.org
- Then, use the following setup:
- Vehicle with static IP (192.168.2.2) + DHCP Server (192.168.2.x)
- Topside computer as DHCP client (leased as 192.168.2.184)
- Then, when opening QGC:
- QGC connects immediately
- QGC finds and shows the video stream + video controls
- QGC reports Heartbeat and other messages at doubled rate (heartbeat at 2Hz, etc)
- Text messages are all doubled:

- If I remove one of the IPs, the messages are then at normal rate (not doubled)
It seems so :( edit: created this issue |
From: #3254
The issue: When the backup DHCP server quicks in the client computer can switche from a static IP to a DHCP client (Tested in ubuntu 24.04), the IP changes from 192.168.2.1 to 192.168.2.*, and QGC fails to connect.
Another problem is that the GCS server endpoint 0.0.0.0:14550 on BlueOS is also not enabled, because of this, QGC doesn’t connect even if you manually set the vehicle’s IP and port.
This PR enables the GCS Server port to at least allow users to manually connect to the vehicle.
Summary by Sourcery
Bug Fixes: