Skip to content

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

Open
Bartok (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
Bartok (Bartok9) wants to merge 1 commit into
microsoft:mainfrom
Bartok9:aerial/2026-07-29-params-stdmin

Conversation

@Bartok9

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

1 participant