Skip to content

Commit

Permalink
fix way offset angles are calculated
Browse files Browse the repository at this point in the history
  • Loading branch information
mileslucas committed Feb 10, 2022
1 parent 33230b7 commit 3a9cdd0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SatelliteSpots.jl
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ function Base.show(io::IO, result::SpotResults)
std_dist = std(dists; corrected=false, mean=mean_dist)

angs = angles(result, ctr)
offsets = rem.(angs, 360 / n)
offsets = ntuple(i -> mod(angs[i], 360) - (i - 1) * 360 / n, n)
mean_ang = mean(offsets)
std_ang = std(offsets; corrected=false, mean=mean_ang)

Expand Down

0 comments on commit 3a9cdd0

Please sign in to comment.