mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-14 04:13:33 +08:00
ISystemClock::adjustUtc() accepts only relative offset now
This commit is contained in:
@@ -37,11 +37,10 @@ public:
|
||||
|
||||
/**
|
||||
* Set the UTC system clock.
|
||||
* @param [in] timestamp New UTC timestamp. Avoid when possible.
|
||||
* @param [in] offset Current UTC time error. More precise than just timestamp, use it if possible.
|
||||
* @param [in] adjustment Amount of time to add to the clock value.
|
||||
* For POSIX refer to adjtime(), settimeofday().
|
||||
*/
|
||||
virtual void adjustUtc(UtcTime new_time, UtcDuration offset) = 0;
|
||||
virtual void adjustUtc(UtcDuration adjustment) = 0;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
@@ -42,7 +42,7 @@ public:
|
||||
return uavcan::UtcTime::fromUSec(utc);
|
||||
}
|
||||
|
||||
void adjustUtc(uavcan::UtcTime, uavcan::UtcDuration)
|
||||
void adjustUtc(uavcan::UtcDuration)
|
||||
{
|
||||
assert(0);
|
||||
}
|
||||
@@ -76,7 +76,7 @@ public:
|
||||
return uavcan::UtcTime::fromUSec(uint64_t(tv.tv_sec) * 1000000UL + tv.tv_usec);
|
||||
}
|
||||
|
||||
void adjustUtc(uavcan::UtcTime, uavcan::UtcDuration)
|
||||
void adjustUtc(uavcan::UtcDuration)
|
||||
{
|
||||
assert(0);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user