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

misseditor: Better mission command dropdown #1233

Merged
merged 1 commit into from
Sep 17, 2023

Conversation

stephendade
Copy link
Contributor

Fix for #1162.

Modifies the mission editor's "Command" dropdown to use a custom control (ListCtrl), which has a better layout and visible scrollbars.

Tested on WSL and Ubuntu 22:

Screenshot 2023-08-29 161219

@rmackay9 - I'd be interested if this works better for you.

@stephendade stephendade marked this pull request as draft August 29, 2023 06:18
@rmackay9
Copy link
Contributor

Thank you so much!

@stephendade
Copy link
Contributor Author

@rmackay9, would you be able to give this a test-drive? Mostly just to see if the GUI changes work for you.

I'll get @tridge or @peterbarker to do the actual code review.

@rmackay9
Copy link
Contributor

Hi @stephendade,

Yes, I'll give this a test. I'm not very confident about building MAVproxy from source but I'll try.

@rmackay9
Copy link
Contributor

rmackay9 commented Sep 13, 2023

Hi @stephendade,

I gave this a test and it is certainly better than master because I can actually get to the commands I'd like to add.

It is a bit weird though, sometimes when I click on an existing command and try to change it, the drop-down appears behind the wp editor. It also appeared to me that at least once the list of commands was not sorted alphabetically although I'm now having troubles reproducing this.
image

@stephendade
Copy link
Contributor Author

It is a bit weird though, sometimes when I click on an existing command and try to change it, the drop-down appears behind the wp editor. It also appeared to me that at least once the list of commands was not sorted alphabetically although I'm now having troubles reproducing this.

I've managed to replicate this. It's a x11 vs Wayland issue again. @MichelleRos had similar issues and fixed it via putting GDK_BACKEND="x11" in ~\.bashrc and restarting.

I've confirmed if you do the same, it should fix the window focus issue.

Copy link
Contributor

@rmackay9 rmackay9 left a comment

Choose a reason for hiding this comment

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

@stephendade,

Yes, that's fixed it for me as well. I had to add "export GDK_BACKEND="x11"" to my ~/.bashrc file.

Copy link
Contributor

@peterbarker peterbarker left a comment

Choose a reason for hiding this comment

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

@stephendade I can reliably produce this assertion:

wx._core.wxAssertionError: C++ assertion "firstHandler != this" failed at ../src/common/wincmn.cpp(1461) in PopEventHandler(): cannot pop the wxWindow itself

The above exception was the direct cause of the following exception:

SystemError: _PyEval_EvalFrameDefault returned a result with an exception set

... by selecting a type which ArduPilot doesn't undertstand, writing waypoints then reading waypoints.

@stephendade
Copy link
Contributor Author

@stephendade I can reliably produce this assertion:

wx._core.wxAssertionError: C++ assertion "firstHandler != this" failed at ../src/common/wincmn.cpp(1461) in PopEventHandler(): cannot pop the wxWindow itself

The above exception was the direct cause of the following exception:

SystemError: _PyEval_EvalFrameDefault returned a result with an exception set

... by selecting a type which ArduPilot doesn't undertstand, writing waypoints then reading waypoints.

Now fixed. It was a reference counting issue (see wxWidgets/Phoenix#627)

@peterbarker peterbarker merged commit 199565a into ArduPilot:master Sep 17, 2023
1 check passed
@peterbarker
Copy link
Contributor

Merged, thanks!

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.

3 participants