Skip to content

Commit

Permalink
Fix iod
Browse files Browse the repository at this point in the history
  • Loading branch information
LuEdRaMo committed Aug 28, 2024
1 parent 8f166bc commit fb4aa41
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/orbitdetermination/orbitdetermination.jl
Original file line number Diff line number Diff line change
Expand Up @@ -361,15 +361,15 @@ function iod(radec::Vector{RadecMPC{T}}, params::NEOParameters{T};
end
# Reduce tracklets by polynomial regression
tracklets = reduce_tracklets(radec)
# Set jet transport variables
varorder = max(params.tsaorder, params.gaussorder, params.jtlsorder)
scaled_variables("dx", ones(T, 6); order = varorder)
# Gauss method
if gauss
sol = min(sol, gaussinitcond(radec, tracklets, params; dynamics))
# Termination condition
nrms(sol) <= params.gaussQmax && length(sol.res) == length(radec) && return sol
end
# Set jet transport variables
varorder = max(params.tsaorder, params.gaussorder, params.jtlsorder)
scaled_variables("dx", ones(T, 6); order = varorder)
# Iterate tracklets
for i in eachindex(tracklets)
# Admissible region
Expand Down

0 comments on commit fb4aa41

Please sign in to comment.