Skip to main content

Module wind

Module wind 

Source

Structs§

WindSegment
One downrange wind segment. vertical_mps (m/s, positive = updraft) feeds straight into the segment’s wind vector via wind_vector (MBA-728); boundary-layer shear scales horizontal wind only, so vertical passes through unscaled wherever shear is applied on top of a segment.
WindSegmentError
A malformed WindSegment rejected at a checked construction/solve boundary (MBA-1338).
WindSock
Wind condition handler for trajectory calculations

Enums§

WindSegmentField
Which WindSegment field failed validation (MBA-1338).
WindSegmentRule
The validation rule a WindSegment field violated (MBA-1338).

Functions§

parse_wind_segment_str
Parse a "SPEED:ANGLE:UNTIL_DISTANCE[:VERTICAL]" string into a WindSegment (speed_kmh, angle_deg, until_distance_m, vertical_mps).
validate_wind_segments
Validate every segment, reporting the first violation as a typed error carrying the caller’s segment index, the offending field, and the violated rule (MBA-1338).
wind_vector
THE wind-vector builder (McCoy frame: x downrange, y up, z right). Horizontal wind uses the wind-FROM convention (0 = headwind, PI/2 = from the right); vertical_mps is positive-updraft and lands on y UNSCALED — boundary-layer shear models scale horizontal flow only (MBA-728 decision).