Add low airspeed detection logic and bind lowairspeed property to HUD#3691
Merged
meee1 merged 1 commit intoArduPilot:masterfrom Apr 13, 2026
Merged
Add low airspeed detection logic and bind lowairspeed property to HUD#3691meee1 merged 1 commit intoArduPilot:masterfrom
meee1 merged 1 commit intoArduPilot:masterfrom
Conversation
Contributor
Author
|
@meee1 when you have a time |
78f911c to
31c22aa
Compare
There was a problem hiding this comment.
Pull request overview
Adds a computed low-airspeed alert into the ArduPilot CurrentState and wires that state into the WinForms HUD binding so the HUD can visually react when the aircraft is flying below its configured minimum airspeed.
Changes:
- Bind
lowairspeedfrom the HUD binding source intohud1in the FlightData view. - Add
CurrentStatelogic to periodically cache the configured minimum airspeed parameter and setlowairspeedwhen VFR airspeed is below that threshold (with sensor health checks).
Reviewed changes
Copilot reviewed 1 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| GCSViews/FlightData.Designer.cs | Adds WinForms data-binding for lowairspeed onto the HUD control. |
| ExtLibs/ArduPilot/CurrentState.cs | Introduces cached min-airspeed param lookup and low-airspeed detection logic in VFR_HUD processing. |
Files not reviewed (1)
- GCSViews/FlightData.Designer.cs: Language not supported
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
31c22aa to
a7dd6b5
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds a new low-airspeed alert calculation to the vehicle state: when the aircraft is armed and airborne, it periodically reads the minimum airspeed parameter, caches it for a few seconds, and marks the state as low airspeed if the measured airspeed drops below that threshold while the airspeed sensor is healthy. It also avoids hammering the parameter lookup by rechecking the minimum airspeed only every five seconds. Finally, the HUD is bound to this new
lowairspeedstate so the display can react visually when the condition is detected.