From 3cb479a9cd6eef2d4c474473ddbfa285d060fdb4 Mon Sep 17 00:00:00 2001 From: = <=> Date: Fri, 26 Jan 2024 15:13:40 -0800 Subject: [PATCH] Fix broken test --- src/cosmic/bplane.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cosmic/bplane.rs b/src/cosmic/bplane.rs index 498c0347..c81367f8 100644 --- a/src/cosmic/bplane.rs +++ b/src/cosmic/bplane.rs @@ -338,14 +338,14 @@ pub fn try_achieve_b_plane( if br_err.abs() < target.tol_b_r_km && bt_err.abs() < target.tol_b_t_km - && !ltof_err.is_some_and(|err| err.abs() > target.tol_ltof_s) + && !ltof_err.is_some_and(|err| err.abs() >= target.tol_ltof_s) { return Ok((total_dv, b_plane)); } let (norm, dv) = match ltof_err { None => { - let v = Vector2::new(bt_err, br_err); + let v = Vector2::new(br_err, bt_err); let norm = v.norm(); norm_check(norm, prev_b_plane_err, false)?; let full_jac = b_plane.jacobian();