Skip to content

Plan Mode: Improve UI of Plan Creator and Corridor Scan #12901

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

mrschick
Copy link
Contributor

Description

  1. Tweaks the survey/scan presets so that they will auto-select the generated complex waypoint first. This cuts down on clicks in most situations where tweaking the takeoff waypoint's position or altitude is not a priority, i.e: because it's already set to the connected drone's position and already uses an acceptable altitude.
  2. Tweaks the "Rotate Entry Point" logic of the Corridor Scan waypoint to be more user friendly, since before for scans narrow enough to cover with a single pass, the button would have to be clicked twice to get the expected result of inverting the flight's direction over the defined corridor.

Test Steps

  1. Under Plan Mode > File > Create Plan, try selecting any of the survey/scan presets under different conditions;
  2. Create a Corridor Scan and tweak its waypoints and "corridor width" to test the behavior of the "Rotate Entry Point" button under different conditions;

Checklist:

Related Issue

None

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@HTRamsey HTRamsey requested a review from DonLakeFlyer May 23, 2025 17:13
@mrschick mrschick force-pushed the feature/complex-plan-improv branch from f85d26d to a827e80 Compare May 26, 2025 07:36
@DonLakeFlyer DonLakeFlyer added this to the Release V5.1 milestone Jun 6, 2025
mrschick added 2 commits June 11, 2025 11:45
When creating a Survey/Scan mision with the plan creator, the complex mission item will be auto-selected, since most of the time it's the highest priority item.
On paths with a single lane, a double-press of the button was required to invert the scan's direction along the path.
@mrschick mrschick force-pushed the feature/complex-plan-improv branch from a827e80 to bde380e Compare June 11, 2025 09:45
@DonLakeFlyer
Copy link
Contributor

So I like the fix for 2.

But I don't like the change for 1:

  • This only sort of works if you are connected to a multi-rotor and it is already in its correct takeoff location. That doesn't seem like a majority case to me.
  • The concept of the takeoff item not possibly needing tweaking also only works for multi-rotor take off. Fixed wing must set a climb out position.
  • Given the way the ui works even if you don't change anything on takeoff you still need to go back and click done.
  • Also the way the mavlink takeoff command works differs from PX4 and ArduPilot. PX4: the coordinate matters, ArduPilot: there is not coordinate it just goes straight up
  • If you are creating a Plan offline or where the vehicle home position is not currently correct you need to set the correct position for Launch/Takeoff since it will now be known

This could theoretically be cleaned up for say multi-rotor and ardupilot and a known home position but that's all to complicated to deal with.

@mrschick
Copy link
Contributor Author

Dunno, the way I see it is that it makes planning of already connected multicopters quicker, since the takeoff item is auto-set and one doesn't need to touch it. While in any other mode it also doesn't have a negative impact, since one would have to set either item anyway, and the order in which they do doesn't impact the time spent.

@DonLakeFlyer
Copy link
Contributor

since the takeoff item is auto-set and one doesn't need to touch it.

It's not though. You still need to click "Done" on the Takeoff item.

@mrschick
Copy link
Contributor Author

mrschick commented Jul 1, 2025

Odd.
While testing this on my Linux machine and emulating gazebo, creating the plan with the Multicopter already connected would auto-set the takeoff item to the drone's position, without having to press "done".

@DonLakeFlyer
Copy link
Contributor

Hmm

While testing this on my Linux machine and emulating gazebo, creating the plan with the Multicopter already connected would auto-set the takeoff item to the drone's position, without having to press "done".

Let me check again. I may have created the plan with SITL before the home position became available.

@DonLakeFlyer
Copy link
Contributor

I may have created the plan with SITL before the home position became available.

Yeah, that was it. You still run into the problem if you are planning offline though. Because then you need to set the takeoff item position.

The better way to make this work for complex items is to walk the list after everything is set up and fine the first "not done" item and select that. Instead of hardcoding to the polygon. That will work in all cases.

@mrschick
Copy link
Contributor Author

mrschick commented Jul 23, 2025

True, that would be even better 👌🏻

I did all of this for an internship that has since finished, there is a possibility that I will be employed longer-term in the near future and can improve this further.
Until then, I could revert the first change in the current PR and eventually make a new PR for its improved version.

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.

2 participants