From 955af10676aae9b6ef2ac361ab00f51b8271f63a Mon Sep 17 00:00:00 2001 From: Ignatius Rivaldi Date: Wed, 22 Nov 2023 09:55:28 +1100 Subject: [PATCH] Change time correction sign 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 https://github.com/JuliaGNSS/PositionVelocityTime.jl/issues/8 --- src/PositionVelocityTime.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PositionVelocityTime.jl b/src/PositionVelocityTime.jl index b1635b3..c6fa0a1 100755 --- a/src/PositionVelocityTime.jl +++ b/src/PositionVelocityTime.jl @@ -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)