mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-26 13:03:34 +08:00
STM32: clock sync: Simple PI controller for speed adjustments; converges to +-100 usec in few minutes
This commit is contained in:
@@ -50,6 +50,13 @@ uavcan::int32_t getUtcSpeedCorrectionPPM();
|
||||
*/
|
||||
uavcan::uint32_t getUtcAjdustmentJumpCount();
|
||||
|
||||
/**
|
||||
* Returns clock error sampled at previous UTC adjustment.
|
||||
* Positive if the hardware timer is slower than reference time.
|
||||
* This function is thread safe.
|
||||
*/
|
||||
uavcan::UtcDuration getPrevUtcAdjustment();
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user