mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-29 07:34:06 +08:00
Explicit 'virtual' for implemented methods
This commit is contained in:
parent
5a8a672152
commit
bdec81bbfa
@ -63,7 +63,7 @@ public:
|
||||
, gradual_adj_cnt_(0)
|
||||
{ }
|
||||
|
||||
uavcan::MonotonicTime getMonotonic() const
|
||||
virtual uavcan::MonotonicTime getMonotonic() const
|
||||
{
|
||||
struct timespec ts;
|
||||
if (clock_gettime(CLOCK_MONOTONIC, &ts) != 0)
|
||||
@ -73,7 +73,7 @@ public:
|
||||
return uavcan::MonotonicTime::fromUSec(uint64_t(ts.tv_sec) * 1000000UL + ts.tv_nsec / 1000UL);
|
||||
}
|
||||
|
||||
uavcan::UtcTime getUtc() const
|
||||
virtual uavcan::UtcTime getUtc() const
|
||||
{
|
||||
timeval tv;
|
||||
if (gettimeofday(&tv, NULL) != 0)
|
||||
@ -88,7 +88,7 @@ public:
|
||||
return utc;
|
||||
}
|
||||
|
||||
void adjustUtc(uavcan::UtcDuration adjustment)
|
||||
virtual void adjustUtc(uavcan::UtcDuration adjustment)
|
||||
{
|
||||
if (adj_mode_ == ClockAdjustmentMode::PerDriverPrivate)
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user