mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-16 17:53:35 +08:00
Fixed Linux driver: SocketCan driver adds time offset from the provided clock instance, which fixes time synchronization in PerDriverPrivate clock adjustment mode
This commit is contained in:
@@ -31,12 +31,12 @@ class DefaultLogSink : public uavcan::ILogSink
|
||||
*/
|
||||
struct DriverPack
|
||||
{
|
||||
SocketCanDriver can;
|
||||
SystemClock clock;
|
||||
SocketCanDriver can;
|
||||
|
||||
DriverPack(ClockAdjustmentMode clock_adjustment_mode)
|
||||
: can()
|
||||
, clock(clock_adjustment_mode)
|
||||
: clock(clock_adjustment_mode)
|
||||
, can(clock)
|
||||
{ }
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user