mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-28 22:04:09 +08:00
UAVCAN_PACKED_* removed completely, as with the latest optimizations it is not needed anymore
This commit is contained in:
parent
815337ab1f
commit
5cfbb193e6
@ -82,17 +82,6 @@
|
||||
# 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
|
||||
* http://gcc.gnu.org/wiki/Visibility
|
||||
|
||||
@ -16,7 +16,6 @@
|
||||
namespace uavcan
|
||||
{
|
||||
|
||||
UAVCAN_PACKED_BEGIN
|
||||
class UAVCAN_EXPORT OutgoingTransferRegistryKey
|
||||
{
|
||||
DataTypeID data_type_id_;
|
||||
@ -56,7 +55,6 @@ public:
|
||||
std::string toString() const;
|
||||
#endif
|
||||
};
|
||||
UAVCAN_PACKED_END
|
||||
|
||||
/**
|
||||
* Outgoing transfer registry keeps track of Transfer ID values for all currently existing local transfer senders.
|
||||
|
||||
@ -13,7 +13,6 @@
|
||||
namespace uavcan
|
||||
{
|
||||
|
||||
UAVCAN_PACKED_BEGIN
|
||||
class UAVCAN_EXPORT TransferReceiver
|
||||
{
|
||||
public:
|
||||
@ -95,7 +94,6 @@ public:
|
||||
|
||||
MonotonicDuration getInterval() const { return MonotonicDuration::fromMSec(transfer_interval_msec_); }
|
||||
};
|
||||
UAVCAN_PACKED_END
|
||||
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user