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