Skip to content

Commit

Permalink
🔧 Remove unnecessary debugging messages
Browse files Browse the repository at this point in the history
  • Loading branch information
ronisbr committed Jun 26, 2023
1 parent 9e45a58 commit a6f856f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
4 changes: 0 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -249,8 +249,6 @@ PROGRESS: 45 2.30145 3.36402e-06 2.30
PROGRESS: 46 1.05148 1.53677e-06 1.05148 -54.3123 %
PROGRESS: 47 2.7699e-07 2.5122e-10 2.7699e-07 -100 %

ACTION: Updating the epoch of the fitted TLE to match the desired one.

(TLE: UNDEFINED (Epoch = 2023-03-24T16:28:40.388), [2.5682204663112826 0.5152694462560151 -1.2385529801114805 0.0; 0.5152694462560317 4.6021551786709445 -0.1449556257318217 0.0; ; -1.2385529801114785 -0.14495562573181023 0.999604694355324 0.0; 0.0 0.0 0.0 0.0])
```

Expand Down Expand Up @@ -313,8 +311,6 @@ ACTION: Fitting the TLE.
PROGRESS: 1 8.1461 0.00185857 8.1461 ---
PROGRESS: 2 6.78579e-06 2.29683e-08 6.78583e-06 -99.9999 %

ACTION: Updating the epoch of the fitted TLE to match the desired one.

TLE:
Name : AMAZONIA 1
Satellite number : 47699
Expand Down
9 changes: 4 additions & 5 deletions src/tle.jl
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,6 @@ function fit_sgp4_tle!(
# The user can provide a TLE or the initial mean state vector.
if initial_guess isa TLE
verbose && println("$(cy)ACTION:$(cd) Updating the epoch of the initial TLE guess to match the desired one.")
verbose && println()

# If a TLE is provided, we need to update its epoch to match the desired one.
tle = update_sgp4_tle_epoch!(
Expand Down Expand Up @@ -434,7 +433,6 @@ function fit_sgp4_tle!(

# Header.
verbose && println("$(cy)ACTION:$(cd) Fitting the TLE.")
verbose && println()
verbose && @printf(" %s%10s %20s %20s %20s %20s%s\n", cy, "Iteration", "Position RMSE", "Velocity RMSE", "Total RMSE", "RMSE Variation", cd)
verbose && @printf(" %s%10s %20s %20s %20s %20s%s\n", cb, "", "[km]", "[km / s]", "[ ]", "", cd)

Expand Down Expand Up @@ -573,9 +571,10 @@ function fit_sgp4_tle!(
)

# Update the epoch of the fitted TLE to match the desired one.
verbose && println("$(cy)ACTION:$(cd) Updating the epoch of the fitted TLE to match the desired one.")
verbose && println()
tle = update_sgp4_tle_epoch!(sgp4d, tle, mean_elements_epoch; verbose = verbose)
if abs(epoch - mean_elements_epoch) > 0.001 / 86400
verbose && println("$(cy)ACTION:$(cd) Updating the epoch of the fitted TLE to match the desired one.")
tle = update_sgp4_tle_epoch!(sgp4d, tle, mean_elements_epoch; verbose = verbose)
end

# Initialize the propagator with the TLE.
sgp4_init!(sgp4d, tle)
Expand Down

0 comments on commit a6f856f

Please sign in to comment.