mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-17 20:53:35 +08:00
Timestamp update
This commit is contained in:
@@ -200,14 +200,14 @@ public:
|
||||
|
||||
UtcTime& operator=(const Timestamp& ts)
|
||||
{
|
||||
*this = fromUSec(ts.husec * Timestamp::USEC_PER_LSB);
|
||||
*this = fromUSec(ts.usec);
|
||||
return *this;
|
||||
}
|
||||
|
||||
operator Timestamp() const
|
||||
{
|
||||
Timestamp ts;
|
||||
ts.husec = toUSec() / Timestamp::USEC_PER_LSB;
|
||||
ts.usec = toUSec();
|
||||
return ts;
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user