Skip to content

fix(simple_flight): protect Params kMinThrottle from Windows min macros - #9825

Open
Bartok9 wants to merge 1 commit into
microsoft:mainfrom
Bartok9:aerial/2026-07-29-params-stdmin
Open

fix(simple_flight): protect Params kMinThrottle from Windows min macros#9825
Bartok9 wants to merge 1 commit into
microsoft:mainfrom
Bartok9:aerial/2026-07-29-params-stdmin

Conversation

@Bartok9

@Bartok9 Bartok9 commented Jul 29, 2026

Copy link
Copy Markdown

Protects SimpleFlight VelocityPid::kMinThrottle from Windows min macros by using (std::min)(...).

No behavior change when macros are absent.

AI-assisted; human-reviewed.

Claim: bartok
Operator: bartok
Campaign: aerial-drone

Parenthesize std::min so windows.h min macros cannot break VelocityPid
constant initialization (matches other simple_flight clamps).
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.

1 participant