mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-17 02:23:33 +08:00
Matrix: added copyToRaw method to allow copying to a pointer
because most uORB messages still contain all components of a vector one by one after each other
This commit is contained in:
@@ -87,6 +87,11 @@ public:
|
||||
memcpy(dst, _data, sizeof(dst));
|
||||
}
|
||||
|
||||
void copyToRaw(Type *dst) const
|
||||
{
|
||||
memcpy(dst, _data, sizeof(_data));
|
||||
}
|
||||
|
||||
void copyToColumnMajor(Type (&dst)[M*N]) const
|
||||
{
|
||||
const Matrix<Type, M, N> &self = *this;
|
||||
|
||||
Reference in New Issue
Block a user