mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-28 20:43:33 +08:00
Generated types can be compiled sucessfully now
This commit is contained in:
@@ -10,6 +10,7 @@
|
|||||||
|
|
||||||
#include <uavcan/data_type.hpp>
|
#include <uavcan/data_type.hpp>
|
||||||
#include <uavcan/global_data_type_registry.hpp>
|
#include <uavcan/global_data_type_registry.hpp>
|
||||||
|
#include <uavcan/internal/marshal/types.hpp>
|
||||||
#include <uavcan/internal/util.hpp>
|
#include <uavcan/internal/util.hpp>
|
||||||
|
|
||||||
% for inc in t.cpp_includes:
|
% for inc in t.cpp_includes:
|
||||||
|
|||||||
@@ -9,7 +9,6 @@
|
|||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include <uavcan/internal/transport/crc.hpp>
|
#include <uavcan/internal/transport/crc.hpp>
|
||||||
#include <uavcan/internal/transport/transfer.hpp>
|
#include <uavcan/internal/transport/transfer.hpp>
|
||||||
#include <uavcan/internal/marshal/types.hpp>
|
|
||||||
|
|
||||||
namespace uavcan
|
namespace uavcan
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -298,6 +298,11 @@ public:
|
|||||||
return array.decodeImpl(codec, tao_mode, BooleanType<IsDynamic>());
|
return array.decodeImpl(codec, tao_mode, BooleanType<IsDynamic>());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void extendDataTypeSignature(DataTypeSignature& signature)
|
||||||
|
{
|
||||||
|
RawValueType::extendDataTypeSignature(signature);
|
||||||
|
}
|
||||||
|
|
||||||
bool empty() const { return size() == 0; }
|
bool empty() const { return size() == 0; }
|
||||||
|
|
||||||
void pop_back() { Base::shrink(); }
|
void pop_back() { Base::shrink(); }
|
||||||
|
|||||||
@@ -7,6 +7,7 @@
|
|||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <limits>
|
#include <limits>
|
||||||
#include <math.h> // Needed for isfinite
|
#include <math.h> // Needed for isfinite
|
||||||
|
#include <uavcan/data_type.hpp>
|
||||||
#include <uavcan/internal/util.hpp>
|
#include <uavcan/internal/util.hpp>
|
||||||
#include <uavcan/internal/marshal/type_util.hpp>
|
#include <uavcan/internal/marshal/type_util.hpp>
|
||||||
#include <uavcan/internal/marshal/integer_spec.hpp>
|
#include <uavcan/internal/marshal/integer_spec.hpp>
|
||||||
@@ -130,6 +131,8 @@ public:
|
|||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void extendDataTypeSignature(DataTypeSignature&) { }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
static inline void saturate(StorageType& value)
|
static inline void saturate(StorageType& value)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -6,6 +6,7 @@
|
|||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <limits>
|
#include <limits>
|
||||||
|
#include <uavcan/data_type.hpp>
|
||||||
#include <uavcan/internal/util.hpp>
|
#include <uavcan/internal/util.hpp>
|
||||||
#include <uavcan/internal/marshal/scalar_codec.hpp>
|
#include <uavcan/internal/marshal/scalar_codec.hpp>
|
||||||
#include <uavcan/internal/marshal/type_util.hpp>
|
#include <uavcan/internal/marshal/type_util.hpp>
|
||||||
@@ -98,6 +99,8 @@ public:
|
|||||||
validate();
|
validate();
|
||||||
return codec.decode<BitLen>(out_value);
|
return codec.decode<BitLen>(out_value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void extendDataTypeSignature(DataTypeSignature&) { }
|
||||||
};
|
};
|
||||||
|
|
||||||
template <CastMode CastMode>
|
template <CastMode CastMode>
|
||||||
|
|||||||
Reference in New Issue
Block a user