mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-21 07:33:33 +08:00
Much improved tests: Both C++03/C++11 are supported, with exceptions and without them; test outputs are being dumped on disk
This commit is contained in:
@@ -82,10 +82,10 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
static uavcan::MonotonicTime tsMono(uint64_t usec) { return uavcan::MonotonicTime::fromUSec(usec); }
|
||||
static uavcan::UtcTime tsUtc(uint64_t usec) { return uavcan::UtcTime::fromUSec(usec); }
|
||||
inline uavcan::MonotonicTime tsMono(uint64_t usec) { return uavcan::MonotonicTime::fromUSec(usec); }
|
||||
inline uavcan::UtcTime tsUtc(uint64_t usec) { return uavcan::UtcTime::fromUSec(usec); }
|
||||
|
||||
static uavcan::MonotonicDuration durMono(int64_t usec) { return uavcan::MonotonicDuration::fromUSec(usec); }
|
||||
inline uavcan::MonotonicDuration durMono(int64_t usec) { return uavcan::MonotonicDuration::fromUSec(usec); }
|
||||
|
||||
template <typename T>
|
||||
static bool areTimestampsClose(const T& a, const T& b, int64_t precision_usec = 10000)
|
||||
|
||||
Reference in New Issue
Block a user