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

AnalyzeView: Fix GeoTagWorker Threading #11813

Merged
merged 1 commit into from
Oct 19, 2024

Conversation

HTRamsey
Copy link
Collaborator

@HTRamsey HTRamsey commented Aug 27, 2024

Remove QThread inheritance and fix QObject parenting
Fixes #11858
Closes #8488 by using timestamps
Also fixes a couple potential logic issues in corner cases
Pending a fix in ExifParser from #11906 first
I still need one really good log source for testing

@HTRamsey HTRamsey force-pushed the dev-analyzeview-geotagworker branch 2 times, most recently from e351524 to 056dbac Compare September 8, 2024 06:05
@HTRamsey HTRamsey force-pushed the dev-analyzeview-geotagworker branch 6 times, most recently from e8955cc to c4e309f Compare September 22, 2024 06:50
@HTRamsey HTRamsey force-pushed the dev-analyzeview-geotagworker branch from c4e309f to 8ba6129 Compare October 7, 2024 19:05
@HTRamsey HTRamsey marked this pull request as ready for review October 7, 2024 19:06
@HTRamsey HTRamsey force-pushed the dev-analyzeview-geotagworker branch 3 times, most recently from 9fc1b70 to ea6d6db Compare October 8, 2024 12:47

_worker->moveToThread(_workerThread);

(void) connect(_worker, &GeoTagWorker::progressChanged, this, &GeoTagController::_workerProgressChanged);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there something new going on with connect which required the (void) now?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's just a pattern carried over from my embedded work. I like to denote that I am intentionally ignoring return values rather than being unaware if it has one or not, helps with collaborating so others know that too

@HTRamsey
Copy link
Collaborator Author

@bkueng do you have any sample logs/pics I can use for the unit test?

@bkueng
Copy link
Member

bkueng commented Oct 18, 2024

Not at hand. But if you have a PX4 SITL setup, there's a gazebo classic plugin here: https://github.com/PX4/PX4-SITL_gazebo-classic/blob/main/src/gazebo_camera_manager_plugin.cpp. It's used by the cam_plane model. I never used it myself though.

@HTRamsey HTRamsey merged commit b858e18 into mavlink:master Oct 19, 2024
7 checks passed
@HTRamsey HTRamsey deleted the dev-analyzeview-geotagworker branch October 19, 2024 02:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

GeoTagPage QGCFileDialog Issue Improved Geo-Tagging
3 participants