APM:Libraries
libraries
AP_Soaring
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
14
class
ExtendedKalmanFilter
{
15
public
:
16
ExtendedKalmanFilter
(
void
) {}
17
18
VectorN<float,N>
X
;
19
MatrixN<float,N>
P
;
20
MatrixN<float,N>
Q
;
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
:
26
float
measurementpredandjacobian
(
VectorN<float,N>
&
A
);
27
};
A
Definition:
test_own_ptr.cpp:175
ExtendedKalmanFilter::ExtendedKalmanFilter
ExtendedKalmanFilter(void)
Definition:
ExtendedKalmanFilter.h:16
ExtendedKalmanFilter::R
float R
Definition:
ExtendedKalmanFilter.h:21
VectorN< float, N >
x
#define x(i)
ExtendedKalmanFilter::P
MatrixN< float, N > P
Definition:
ExtendedKalmanFilter.h:19
ExtendedKalmanFilter::measurementpredandjacobian
float measurementpredandjacobian(VectorN< float, N > &A)
Definition:
ExtendedKalmanFilter.cpp:5
ExtendedKalmanFilter::Q
MatrixN< float, N > Q
Definition:
ExtendedKalmanFilter.h:20
ExtendedKalmanFilter::reset
void reset(const VectorN< float, N > &x, const MatrixN< float, N > &p, const MatrixN< float, N > q, float r)
Definition:
ExtendedKalmanFilter.cpp:23
ExtendedKalmanFilter
Definition:
ExtendedKalmanFilter.h:14
MatrixN< float, N >
matrixN.h
ExtendedKalmanFilter::update
void update(float z, float Vx, float Vy)
Definition:
ExtendedKalmanFilter.cpp:32
ExtendedKalmanFilter::X
VectorN< float, N > X
Definition:
ExtendedKalmanFilter.h:18
Generated on Sun Jun 17 2018 14:18:51 for APM:Libraries by
1.8.13