Skip to content

Commit

Permalink
Change time correction sign
Browse files Browse the repository at this point in the history
Previously calc_pvt applies time correction factor with the wrong
sign, which results in correct position solution at wrong time.
For more information look at
JuliaGNSS#8
  • Loading branch information
minecraft2048 committed Jun 3, 2024
1 parent 056edbd commit 955af10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PositionVelocityTime.jl
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ function calc_pvt(
)
relative_clock_drift = user_velocity_and_clock_drift[4] / SPEEDOFLIGHT
time_correction = ξ[4]
corrected_reference_time = reference_time + time_correction / SPEEDOFLIGHT
corrected_reference_time = reference_time + time_correction / (-SPEEDOFLIGHT)

week = get_week(first(healthy_states).decoder)
start_time = get_system_start_time(first(healthy_states).decoder)
Expand Down

0 comments on commit 955af10

Please sign in to comment.