attitude_estimator_q added

This commit is contained in:
Anton Babushkin
2015-04-12 01:47:48 +02:00
parent d4ae721bc0
commit dc2bb2a85e
7 changed files with 661 additions and 30 deletions
+18
View File
@@ -135,6 +135,24 @@ public:
}
#endif
/**
* set row from vector
*/
void set_row(unsigned int row, const Vector<N> v) {
for (unsigned i = 0; i < N; i++) {
data[row][i] = v.data[i];
}
}
/**
* set column from vector
*/
void set_col(unsigned int col, const Vector<M> v) {
for (unsigned i = 0; i < M; i++) {
data[i][col] = v.data[i];
}
}
/**
* access by index
*/