Grid Survey Pattern Generator, Quickly See Heading and RTH Icons along with new Keyboard Navigation - #2593
Conversation
Add a lawnmower/grid survey pattern generator that allows users to define a polygon area on the map and automatically generate survey waypoints within it. Features: - Grid survey button in Action Menu with polygon drawing interaction - Sidebar settings card with line spacing, altitude, speed, sweep angle, overshoot, and End with RTH checkbox - Live auto-preview: polygon outline, dashed survey path, and numbered waypoint dots update as parameters change - Lawnmower pattern algorithm with configurable sweep angle and overshoot - RTH waypoint automatically appended when End with RTH is checked - Waypoint count display with remaining capacity - Ctrl+G keyboard shortcut to activate grid draw mode - Full i18n support for all UI strings
|
@b14ckyy I think people will like this survey option. If you have any issues let me know. |
- Arrow keys (Left/Right) navigate between waypoints with card transition - Delete key removes selected waypoint with confirmation dialog - Auto-select previous waypoint after deletion - Auto-select WP1 after grid survey generation - Show 'Add WP' tooltip with crosshair when hovering flight path lines - Green RTH marker at last waypoint position for all missions - Ctrl+G keyboard shortcut for grid polygon draw
|
Man you are on fire! I love it. Great addition. Lets tag that into the 9.1 Target here already. The other PR we will check. Great work. |
Thanks just give me credit somewhere when 9.1 if you can, so I can brag at the office ;) |
|
With so big (visible) feature changes you will certainly be named in the "Highlights of this version" section :D |
- SET_HEAD waypoints show black circle with white arrow pointing in heading direction - Heading degree label displayed below the marker - Heading marker and RTH marker render above flight path lines (zIndex: 99)
- SET_HEAD shows black circle with white directional dot (pure geometry, no text rotation) - RTH and heading markers aligned with WP pin center via MARKER_ICON_OFFSET_X/Y - Both marker circles same size (radius 10) - Offset constants adjustable: MARKER_ICON_OFFSET_Y=12, MARKER_ICON_OFFSET_X=-2
|
@GenCodeInc Nice feature. Saves time when setting up a survey . The main limitation to account for using a fixedwing aircraft, is the default LINE SPACING. Due to fixedwing turn accuracy being determined a lot by the airplanes speed. And that not being slower than 60km/h for most airplanes. |
Agreed. Defaults should be safe. At 50 MPH - 80 km/h, a double-rate turn has a diameter of 212 meters. Also perhaps interesting, at 100 meters altitude, a 90 degree fov camera will cover a 200 meter strip of ground. If one wanted closer spacing with safe turns, one could use an interlace pattern. Fly rows 1, 3, 5, 7 ... then at the end go back and cover the even numbers. |
|
I changed it to 100 meters for the default |
|
I think this is close to ready for merge? At 4186, is this correct?: Also I see "missionGridPreview" in messages.json; is that used somewhere? |
…issionGridPreview locale key
|
Sorry for the delay I just noticed this today, I’ve updated the grid survey patch: changed the fallback for #gridSpacing to 100 when the input is invalid yes its ready to merge |
|
@b14ckyy @sensei-hacker This should be good to merge now. |
|
To resolve the merge conflicts, I opened #2698 Qodo had some questions, though. |
|
Closing — this PR had a merge conflict against |








Add a lawnmower/grid survey pattern generator that allows users to define a polygon area on the map and automatically generate survey waypoints within it.
Features:
Draw complex surveys in seconds

Preview and Edit Before you generate the survey,

Generate mission with clear makings on where the RTH will activate

Create large surveys with multiple POI in seconds

Clearly see RTH and Heading Settings

These missions can be made in seconds.