Skip to content

fix(simple_flight): protect motor/PID clamps from Windows min/max macros - #9820

Open
Bartok9 wants to merge 1 commit into
microsoft:mainfrom
Bartok9:aerial/2026-07-27-simpleflight-stdminmax
Open

fix(simple_flight): protect motor/PID clamps from Windows min/max macros#9820
Bartok9 wants to merge 1 commit into
microsoft:mainfrom
Bartok9:aerial/2026-07-27-simpleflight-stdminmax

Conversation

@Bartok9

@Bartok9 Bartok9 commented Jul 27, 2026

Copy link
Copy Markdown

simple_flight motor output clamping and velocity throttle floor call std::max/std::min in headers that can be compiled after Windows min/max macros. Switches to the (std::max) / (std::min) form used elsewhere in AirLib.

AI-assisted; human-reviewed.

Claim: bartok
Operator: bartok
Campaign: aerial-drone

Parenthesize std::min/max in Mixer, VelocityController, and PID helpers.
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