mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-23 08:33:34 +08:00
Added support for attitude_estimator_q functions.
This commit is contained in:
@@ -342,6 +342,22 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
void setRow(size_t i, const Matrix<Type, N, 1> &row)
|
||||
{
|
||||
Matrix<Type, M, N> &self = *this;
|
||||
for (size_t j = 0; j < N; j++) {
|
||||
self(i, j) = row(j, 0);
|
||||
}
|
||||
}
|
||||
|
||||
void setCol(size_t j, const Matrix<Type, M, 1> &col)
|
||||
{
|
||||
Matrix<Type, M, N> &self = *this;
|
||||
for (size_t i = 0; i < M; i++) {
|
||||
self(i, j) = col(i, 1);
|
||||
}
|
||||
}
|
||||
|
||||
void setZero()
|
||||
{
|
||||
memset(_data, 0, sizeof(_data));
|
||||
|
||||
Reference in New Issue
Block a user