Skip to content

Fixed wing Auto Speed Mode#11595

Open
breadoven wants to merge 2 commits into
iNavFlight:maintenance-10.xfrom
breadoven:abo_auto_speed_mode
Open

Fixed wing Auto Speed Mode#11595
breadoven wants to merge 2 commits into
iNavFlight:maintenance-10.xfrom
breadoven:abo_auto_speed_mode

Conversation

@breadoven
Copy link
Copy Markdown
Collaborator

@breadoven breadoven commented May 27, 2026

Adds Auto Speed mode for fixed wing similar to #10928.

Operation is pretty simple. It is enabled as an aux mode so can be activated in the usual way. Minimum and maximum allowed speeds are set using 2 settings with a range of 5 to 50 m/s, defaults of 11m/s and 22m/s respectively.. The desired speed is set between these limits using the throttle stick which acts as a speed controller only. An OSD element has been added which displays the current set speed, this is only visible when Auto speed mode is active. Speeds are 3D GPS based so a valid velocity estimated is required. There is no option to use pitot airspeed at the moment, virtual or otherwise, but it could be added.

Throttle is automatically controlled using PID control with P, I and D inputs with filtering to damp out rapid throttle changes. In Nav modes the normal fixed wing pitch to throttle control is bypassed as are the other speed related functions. There are no minimum and maximum throttle limits set at the moment, throttle is controlled over the full range from idle to maximum. This could be changed if need be, perhaps defaulting to using the current nav_fw_min_thr and nav_fw_max_thr settings.

The mode can be activated in all cases except during during Failsafe, Launch, FW Auto landing and Emergency Landing. So it can be using in Manual and Acro as well as the other navigation modes.

Currently there is no way to rapidly shut off the mode other than via the aux activation. This may need to be looked further if it's considered a problem together with other changes to improve functionality such as dealing with strong head winds etc.

HITL tested only at the moment where it works well with the default PID tune. Throttle control is smooth and responsive.

Configurator support iNavFlight/inav-configurator#2641.

@qodo-code-review
Copy link
Copy Markdown
Contributor

Qodo reviews are paused for this user.

Troubleshooting steps vary by plan Learn more →

On a Teams plan?
Reviews resume once this user has a paid seat and their Git account is linked in Qodo.
Link Git account →

Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center?
These require an Enterprise plan - Contact us
Contact us →

@github-actions
Copy link
Copy Markdown

Test firmware build ready — commit 83f894f

Download firmware for PR #11595

237 targets built. Find your board's .hex file by name on that page (e.g. MATEKF405SE.hex). Files are individually downloadable — no GitHub login required.

Development build for testing only. Use Full Chip Erase when flashing.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant