try_solve_trajectory_rust

Function try_solve_trajectory_rust 

Source
pub fn try_solve_trajectory_rust(
    initial_state: [f64; 6],
    t_span: (f64, f64),
    mass_kg: f64,
    bc: f64,
    drag_model: DragModel,
    wind_segments: Vec<WindSegment>,
    atmos_params: (f64, f64, f64, f64),
    omega_vector: Option<Vec<f64>>,
    enable_spin_drift: bool,
    enable_magnus: bool,
    enable_coriolis: bool,
    method: String,
    tolerance: f64,
    max_step: f64,
    target_distance_m: f64,
) -> Result<Vec<HashMap<String, f64>>, WindSegmentError>
Expand description

Checked sibling of solve_trajectory_rust (MBA-1338): rejects malformed wind segments with a typed WindSegmentError before any integration work or trajectory points are produced. Bindings should migrate to this entry point so malformed segments surface as a structured error instead of a silently poisoned trajectory.