mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-15 03:53:34 +08:00
STM32, LPC11C24: Default min jump set to 10 ms
This commit is contained in:
@@ -116,7 +116,7 @@ void adjustUtc(uavcan::UtcDuration adjustment)
|
||||
utc_correction_usec_per_overflow_x16 = std::max(utc_correction_usec_per_overflow_x16, -MaxUtcSpeedCorrectionX16);
|
||||
utc_correction_usec_per_overflow_x16 = std::min(utc_correction_usec_per_overflow_x16, MaxUtcSpeedCorrectionX16);
|
||||
|
||||
if (adjustment.getAbs().toMSec() > 2 || !utc_set)
|
||||
if (adjustment.getAbs().toMSec() > 9 || !utc_set)
|
||||
{
|
||||
const int64_t adj_usec = adjustment.toUSec();
|
||||
{
|
||||
|
||||
@@ -41,7 +41,7 @@ uavcan::uint32_t utc_jump_cnt = 0;
|
||||
uavcan::int32_t utc_correction_usec_per_overflow_x16 = 0;
|
||||
uavcan::int64_t prev_adjustment = 0;
|
||||
|
||||
uavcan::UtcDuration min_jump = uavcan::UtcDuration::fromMSec(3);
|
||||
uavcan::UtcDuration min_jump = uavcan::UtcDuration::fromMSec(10);
|
||||
|
||||
uavcan::uint64_t time_mono = 0;
|
||||
uavcan::uint64_t time_utc = 0;
|
||||
|
||||
Reference in New Issue
Block a user