Skip to content

Grid Survey Pattern Generator, Quickly See Heading and RTH Icons along with new Keyboard Navigation#2593

Open
GenCodeInc wants to merge 5 commits intoiNavFlight:maintenance-9.xfrom
GenCodeInc:feature/grid-pattern
Open

Grid Survey Pattern Generator, Quickly See Heading and RTH Icons along with new Keyboard Navigation#2593
GenCodeInc wants to merge 5 commits intoiNavFlight:maintenance-9.xfrom
GenCodeInc:feature/grid-pattern

Conversation

@GenCodeInc
Copy link

@GenCodeInc GenCodeInc commented Mar 15, 2026

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

Draw complex surveys in seconds
image

Preview and Edit Before you generate the survey,
image

Generate mission with clear makings on where the RTH will activate
image

Create large surveys with multiple POI in seconds
image

Clearly see RTH and Heading Settings
image

These missions can be made in seconds.

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
@GenCodeInc
Copy link
Author

@b14ckyy I think people will like this survey option. If you have any issues let me know.

@GenCodeInc
Copy link
Author

I dont own an inav plane so someone may want to test in a safe location or with the simulator on a fixed wing and vtol.

image image

@b14ckyy b14ckyy added the New Feature Entirely new feature or major feature change label Mar 15, 2026
- 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
@GenCodeInc GenCodeInc changed the title Add grid survey pattern generator to Mission Control Grid Survey Pattern Generator with Keyboard Navigation Mar 15, 2026
@GenCodeInc
Copy link
Author

GenCodeInc commented Mar 15, 2026

@b14ckyy

Use the arrow keys its fun!! ;)

You can now use your keyboard to step thru the waypoints using arrow right and left, you can also use your delete key to delete a waypoint, this makes checking the waypoints faster than ever.

I also added a small RTH tag to clearly let the operator know that the last point will initiate a RTH as it was not visible before unless you clicked on the waypoint, I think these are great additions to inav. Hope you guys like them.

Oh yea and a +add waypoint when hovering over the line so its clear that option is available to the planner.

image image

@b14ckyy
Copy link
Collaborator

b14ckyy commented Mar 15, 2026

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.

@b14ckyy b14ckyy added this to the 9.1 milestone Mar 15, 2026
@GenCodeInc
Copy link
Author

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 ;)

@b14ckyy
Copy link
Collaborator

b14ckyy commented Mar 15, 2026

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)
@GenCodeInc GenCodeInc changed the title Grid Survey Pattern Generator with Keyboard Navigation Grid Survey Pattern Generator, Quickly See Heading and RTH Icons along with new Keyboard Navigation Mar 17, 2026
@GenCodeInc
Copy link
Author

GenCodeInc commented Mar 17, 2026

With so big (visible) feature changes you will certainly be named in the "Highlights of this version" section :D

@b14ckyy

Heading now shows a small compass so you know where the drone will point to without clicking on every waypoint.
image

GenCodeInc added 2 commits March 16, 2026 19:42
- 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
@sonarqubecloud
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

New Feature Entirely new feature or major feature change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants