mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-18 16:53:33 +08:00
Work on kalman filter interface.
This commit is contained in:
@@ -98,6 +98,12 @@ public:
|
||||
return r;
|
||||
}
|
||||
|
||||
void operator*=(const Quaternion & other)
|
||||
{
|
||||
Quaternion &self = *this;
|
||||
self = self * other;
|
||||
}
|
||||
|
||||
Matrix41 derivative(const Matrix31 & w) const {
|
||||
const Quaternion &q = *this;
|
||||
Type dataQ[] = {
|
||||
|
||||
+5
-5
@@ -6,12 +6,12 @@ namespace matrix {
|
||||
|
||||
template<typename Type, size_t M, size_t N>
|
||||
int kalman_correct(
|
||||
const SquareMatrix<Type, M> & P,
|
||||
const Matrix<Type, M, M> & P,
|
||||
const Matrix<Type, N, M> & C,
|
||||
const SquareMatrix<Type, N> & R,
|
||||
const Vector<Type, N> &r,
|
||||
Vector<Type, M> & dx,
|
||||
SquareMatrix<Type, M> & dP,
|
||||
const Matrix<Type, N, N> & R,
|
||||
const Matrix<Type, N, 1> &r,
|
||||
Matrix<Type, M, 1> & dx,
|
||||
Matrix<Type, M, M> & dP,
|
||||
float & beta
|
||||
)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user