Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/arezaie14/ars_kalman_filter
This is Kalman filter in c language for all programming languages such a micro controllers and ...
https://github.com/arezaie14/ars_kalman_filter
c cpp filter filters function-parametres kalman-filter mea micro-controllers microcontroller programming-languages
Last synced: 3 months ago
JSON representation
This is Kalman filter in c language for all programming languages such a micro controllers and ...
- Host: GitHub
- URL: https://github.com/arezaie14/ars_kalman_filter
- Owner: arezaie14
- Created: 2019-07-22T04:49:34.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-05-01T16:33:02.000Z (almost 5 years ago)
- Last Synced: 2023-11-28T08:34:11.396Z (about 1 year ago)
- Topics: c, cpp, filter, filters, function-parametres, kalman-filter, mea, micro-controllers, microcontroller, programming-languages
- Language: C
- Size: 14.6 KB
- Stars: 7
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# A Simple Kalman Filter
This is a simple Kalman filter based on c language, but it's easy to use in all programming languages such a micro controllers and cross platform programmings and ...
### Refrence :
https://github.com/denyssene/SimpleKalmanFilter.git### How To use:
```
1- init your kalman with kalman function like: kalman(4,4,0.016);
2- use kalman_update(your_data_to_filter_in_float) to filter your data
```### kalman(e_mea,e_est,q) function parametres:
```
e_mea: Measurement Uncertainty - How much do we expect to our measurement varye_est: Estimation Uncertainty - Can be initilized with the same value as e_mea
since the kalman filter will adjust its value.
q: Process Variance - usually a small number between 0.001 and 1 - how fast your measurement moves.
Recommended 0.01. Should be tunned to your needs.
```### kalman_update(mea) function parametres:
```
mea: the data you want to filter
```### Sample program:
```
#include "kalman.h"int main(){
float kalman_out;
float your_data_to_filter=0;
kalman(4,4,0.016);
while(true){
your_data_to_filter=read_adc(0);
// this is an example function like reading analog value with microcontroller or other function you want ...
kalman_out=kalman_update(your_data_to_filter);
// now kalman filter result is in kalman_out variable, you can use it :).
}
}
```If any questions please ask :)
[email protected]