15#include "../Math/Quaternion.h"
A Kalman filter for quaternion smoothing.
int memory
The size of the internal buffer to store quaternion history.
Quaternion * ShiftArray(Quaternion arr[])
Shifts the array to remove the oldest quaternion and make room for a new one.
QuaternionKalmanFilter()
Default constructor for QuaternionKalmanFilter.
Quaternion Filter(Quaternion value)
Filters a quaternion value to reduce noise.
int currentAmount
Tracks the current number of quaternions stored in memory.
float gain
The filter gain, controls the weight of new data versus the estimated state.
Quaternion * values
Pointer to an array of quaternion values for the filter's memory.
~QuaternionKalmanFilter()
Destructor for QuaternionKalmanFilter.
A mathematical construct representing a rotation in 3D space.