mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-05 00:11:35 +08:00
UAVCAN_PACKED_* removed completely, as with the latest optimizations it is not needed anymore
This commit is contained in:
@@ -82,17 +82,6 @@
|
|||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
|
||||||
* Struct layout control.
|
|
||||||
* THIS MAY BREAK THE CODE.
|
|
||||||
*/
|
|
||||||
#ifndef UAVCAN_PACKED_BEGIN
|
|
||||||
# define UAVCAN_PACKED_BEGIN
|
|
||||||
#endif
|
|
||||||
#ifndef UAVCAN_PACKED_END
|
|
||||||
# define UAVCAN_PACKED_END
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Declaration visibility
|
* Declaration visibility
|
||||||
* http://gcc.gnu.org/wiki/Visibility
|
* http://gcc.gnu.org/wiki/Visibility
|
||||||
|
|||||||
@@ -16,7 +16,6 @@
|
|||||||
namespace uavcan
|
namespace uavcan
|
||||||
{
|
{
|
||||||
|
|
||||||
UAVCAN_PACKED_BEGIN
|
|
||||||
class UAVCAN_EXPORT OutgoingTransferRegistryKey
|
class UAVCAN_EXPORT OutgoingTransferRegistryKey
|
||||||
{
|
{
|
||||||
DataTypeID data_type_id_;
|
DataTypeID data_type_id_;
|
||||||
@@ -56,7 +55,6 @@ public:
|
|||||||
std::string toString() const;
|
std::string toString() const;
|
||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
UAVCAN_PACKED_END
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Outgoing transfer registry keeps track of Transfer ID values for all currently existing local transfer senders.
|
* Outgoing transfer registry keeps track of Transfer ID values for all currently existing local transfer senders.
|
||||||
|
|||||||
@@ -13,7 +13,6 @@
|
|||||||
namespace uavcan
|
namespace uavcan
|
||||||
{
|
{
|
||||||
|
|
||||||
UAVCAN_PACKED_BEGIN
|
|
||||||
class UAVCAN_EXPORT TransferReceiver
|
class UAVCAN_EXPORT TransferReceiver
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
@@ -95,7 +94,6 @@ public:
|
|||||||
|
|
||||||
MonotonicDuration getInterval() const { return MonotonicDuration::fromMSec(transfer_interval_msec_); }
|
MonotonicDuration getInterval() const { return MonotonicDuration::fromMSec(transfer_interval_msec_); }
|
||||||
};
|
};
|
||||||
UAVCAN_PACKED_END
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user