APM:Libraries
ExtendedKalmanFilter.h
Go to the documentation of this file.
1 /*
2 Extended Kalman Filter class by Sam Tabor, 2013.
3 * http://diydrones.com/forum/topics/autonomous-soaring
4 * Set up for identifying thermals of Gaussian form, but could be adapted to other
5 * purposes by adapting the equations for the jacobians.
6 */
7 
8 #pragma once
9 
10 #include <AP_Math/matrixN.h>
11 
12 #define N 4
13 
15 public:
17 
21  float R;
22  void reset(const VectorN<float,N> &x, const MatrixN<float,N> &p, const MatrixN<float,N> q, float r);
23  void update(float z, float Vx, float Vy);
24 
25 private:
27 };
#define x(i)
MatrixN< float, N > P
float measurementpredandjacobian(VectorN< float, N > &A)
MatrixN< float, N > Q
void reset(const VectorN< float, N > &x, const MatrixN< float, N > &p, const MatrixN< float, N > q, float r)
void update(float z, float Vx, float Vy)
VectorN< float, N > X