mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-11-22 14:19:57 +08:00
fix(timesync): raise offset process noise to reduce step overshoot
Assisted-by: Claude:claude-opus-5-5 Signed-off-by: Andrea Bernasconi <andrea.bernasconi@auterion.com>
This commit is contained in:
1 parent
42b7346165
commit
a22f01d7e0
2 files changed
+3
-3
No files matched your search
@@ -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;
|
||||
|
||||
|
||||
@@ -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 <gtest/gtest.h>
|
||||
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user