Migrates residual Lts sources to generated rtiddsgen API
Adds NmeaManagement tests, fixes codegen includes and Qt6 SerialPort CMake target.
This commit is contained in:
1 parent
5485a90385
commit
881d44f4dd
512 files changed
+6887
-6426
No files matched your search
+1
-1
@@ -211,7 +211,7 @@ template <typename T> bool inline get2Byte(const QByteArray& data, T& out)
|
||||
template <typename T> void inline set1Byte(const T in, QByteArray& out)
|
||||
{
|
||||
static_assert(std::is_integral_v<T> || std::is_enum_v<T>, "Only integrals allowed for raw byte accessd");
|
||||
unsigned char c = in;
|
||||
unsigned char c = static_cast<unsigned char>(in);
|
||||
out += c;
|
||||
}
|
||||
|
||||
|
||||
@@ -30,6 +30,13 @@ double QPoint3D::distanceToPoint(const QPoint3D& point) const
|
||||
return (*this - point).length();
|
||||
}
|
||||
|
||||
// The header declares these operators inside namespace LtsUtils; they must
|
||||
// be defined there too (a `using` directive does not place definitions
|
||||
// into a namespace). Qt6's QDataStreamOperatorForType metatype machinery
|
||||
// references the LtsUtils-scoped symbols explicitly.
|
||||
namespace LtsUtils
|
||||
{
|
||||
|
||||
QDataStream& operator<<(QDataStream& s, const QPoint3D& p)
|
||||
{
|
||||
s << p.x() << p.y() << p.z();
|
||||
@@ -47,3 +54,5 @@ QDataStream& operator>>(QDataStream& s, QPoint3D& p)
|
||||
p.rz() = z;
|
||||
return s;
|
||||
}
|
||||
|
||||
} // namespace LtsUtils
|
||||
Reference in new issue
Block a user