Skip to content

nanomo/KalmanFilter-for-Arduino

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

KalmanFilter-for-Arduino

Simple one variable 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

  • C++ 79.3%
  • Other 20.7%