Calculating Non-Linear Vehicle State
We will be using an Extended Kalman filter to calculate the vehicles state as a non-linear first order method (because using theta makes the whole system non-linear).
Because we have “truthy” or “real” IMU acceleration values, we can define our state matrix without those values, and instead use them as our control input ().
System Matrices
The following is the system’s state matrix, :
With the given inputs, we can define our control matrix, :
Because we have a theta, we will also be using a rotation matrix to globalize the vehicles positioning.
And all the perfect estimate equations are:
Predict Steps
The state is defined as such: .
The function is defined by the perfect estimate equations listed above.