Skip to content

Commit

Permalink
Fix broken test
Browse files Browse the repository at this point in the history
  • Loading branch information
= committed Jan 26, 2024
1 parent 344943b commit 3cb479a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cosmic/bplane.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 3cb479a

Please sign in to comment.