mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-26 06:13:35 +08:00
Added config macro UAVCAN_TOSTRING
This commit is contained in:
@@ -7,7 +7,6 @@
|
||||
|
||||
#include <cassert>
|
||||
#include <algorithm>
|
||||
#include <string>
|
||||
#include <uavcan/stdint.hpp>
|
||||
#include <uavcan/impl_constants.hpp>
|
||||
#include <uavcan/driver/system_clock.hpp>
|
||||
@@ -58,8 +57,10 @@ struct UAVCAN_EXPORT CanFrame
|
||||
bool isRemoteTransmissionRequest() const { return id & FlagRTR; }
|
||||
bool isErrorFrame() const { return id & FlagERR; }
|
||||
|
||||
#if UAVCAN_TOSTRING
|
||||
enum StringRepresentation { StrTight, StrAligned };
|
||||
std::string toString(StringRepresentation mode = StrTight) const;
|
||||
#endif
|
||||
|
||||
/**
|
||||
* CAN frames arbitration rules, particularly STD vs EXT:
|
||||
|
||||
Reference in New Issue
Block a user