Skip to content

nut-code-monkey/KalmanFilter-for-Arduino

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

KalmanFilter-for-Arduino

Simple one varable Kalman filter library for Arduino

Install:

Import 'KalmanFilter' directory as Arduino library:

Arduino.app -> Sketch -> Import Library... -> Add Library

Usage:

Initialize filter:

#include "KalmanFilter.h"

KalmanFilter filter; // create with default parameters
filter.setState( defaultValue ); // setup vith default value

And use:

double value = getValueFromSensor();

filter.correct( value ); // add new value from sensor
double correctedValue = filter.getState(); // get corrected value

Output:

kalman filter

About

Simple Kalman filter library for Arduino

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages