27#ifndef MAGCOORDINATEALIGNFILTER_H
28#define MAGCOORDINATEALIGNFILTER_H
38 static const int DIM = 3;
42 setMatrix((
const double[DIM][DIM]){{1,0,0},{0,1,0},{0,0,1}});
51 double get(
int i,
int j)
const {
52 if (i >= DIM || j >= DIM || i < 0 || j < 0) {
53 qWarning(
"Index out of bounds");
60 memcpy(
data_, m,
sizeof(
double[DIM][DIM]));
78 Q_PROPERTY(
TMagMatrix transMatrix READ matrix WRITE setMatrix)
Datatype for calibrated magnetometer measurements.
Coordinate alignment filter.
MagCoordinateAlignFilter()
Constructor.
const TMagMatrix & matrix() const
void setMatrix(const TMagMatrix &matrix)
static FilterBase * factoryMethod()
Factory method.
TMagMatrix holds a transformation matrix.
double get(int i, int j) const
TMagMatrix(const TMagMatrix &other)
void setMatrix(const double m[DIM][DIM])
TMagMatrix(double m[][DIM])
Q_DECLARE_METATYPE(TMatrix)
Datatypes for different filters.