mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-22 03:23:37 +08:00
@@ -52,11 +52,4 @@ int TransferID::computeForwardDistance(TransferID rhs) const
|
||||
return d;
|
||||
}
|
||||
|
||||
int TransferID::subtracted(TransferID rhs) const
|
||||
{
|
||||
const int x = rhs.computeForwardDistance(*this);
|
||||
|
||||
return (x >= ((1 << BitLen) / 2)) ? (x - (1 << BitLen)) : x;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user