Skip to content

Add low airspeed detection logic and bind lowairspeed property to HUD#3691

Merged
meee1 merged 1 commit intoArduPilot:masterfrom
ArthurPatriot:fix/lowairspeed
Apr 13, 2026
Merged

Add low airspeed detection logic and bind lowairspeed property to HUD#3691
meee1 merged 1 commit intoArduPilot:masterfrom
ArthurPatriot:fix/lowairspeed

Conversation

@ArthurPatriot
Copy link
Copy Markdown
Contributor

@ArthurPatriot ArthurPatriot commented Mar 29, 2026

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 lowairspeed state so the display can react visually when the condition is detected.

@ArthurPatriot
Copy link
Copy Markdown
Contributor Author

@meee1 when you have a time

@ArthurPatriot ArthurPatriot force-pushed the fix/lowairspeed branch 2 times, most recently from 78f911c to 31c22aa Compare March 29, 2026 00:36
@meee1 meee1 requested a review from Copilot March 29, 2026 10:55
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 lowairspeed from the HUD binding source into hud1 in the FlightData view.
  • Add CurrentState logic to periodically cache the configured minimum airspeed parameter and set lowairspeed when 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.

Comment thread ExtLibs/ArduPilot/CurrentState.cs Outdated
Comment thread ExtLibs/ArduPilot/CurrentState.cs
@meee1 meee1 merged commit bfcf666 into ArduPilot:master Apr 13, 2026
6 checks passed
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.

3 participants