diff --git a/src/lib/timesync/Timesync.hpp b/src/lib/timesync/Timesync.hpp index 0eb91852ba2..976bd7c42e3 100644 --- a/src/lib/timesync/Timesync.hpp +++ b/src/lib/timesync/Timesync.hpp @@ -59,7 +59,7 @@ static constexpr time_t PX4_EPOCH_SECS = 1234567890ULL; // SKEW_RANDOM_WALK : skew random walk density [1/s], higher follows clock corrections faster // INITIAL_SKEW_STD : prior skew std [s/s], i.e. crystal tolerance static constexpr double MEASUREMENT_NOISE_STD = 1e-3; -static constexpr double OFFSET_RANDOM_WALK = 1e-9; +static constexpr double OFFSET_RANDOM_WALK = 1e-8; static constexpr double SKEW_RANDOM_WALK = 7e-13; static constexpr double INITIAL_SKEW_STD = 100e-6; diff --git a/src/lib/timesync/TimesyncTest.cpp b/src/lib/timesync/TimesyncTest.cpp index ab217e7ab63..b047423ab30 100644 --- a/src/lib/timesync/TimesyncTest.cpp +++ b/src/lib/timesync/TimesyncTest.cpp @@ -32,7 +32,7 @@ ****************************************************************************/ /** - * Timesync convergence on a simulated remote clock (7 ppm drift, +-2 ms noise) with a step or ramp correction. + * Timesync convergence on a simulated remote clock (7 ppm drift, +-0.5 ms noise) with a step or ramp correction. */ #include @@ -65,7 +65,7 @@ Result runScenario(const Scenario &scenario) { static constexpr double OFFSET_US = -1000e6; // remote clock 1000 s ahead static constexpr double DRIFT_PPM = 7.0; - static constexpr int64_t NOISE_US = 2000; + static constexpr int64_t NOISE_US = 500; static constexpr double BURST_INTERVAL_US = 15e3; std::mt19937 rng(1);