root/applications/pmsm/simulator_zdenek/ekf_example/mpf_double.h @ 1469

Revision 1469, 0.8 kB (checked in by smidl, 10 years ago)

upravy rand

Line 
1// Bayesian Filtering for PMSM using Marginalized Particle Filter
2
3//#define Fpm 0.1989
4#ifndef M_PI
5#define M_PI 3.141596
6#endif
7
8#define N 4
9
10//#define Lsd Ls*0.9
11//#define Lsq Ls
12
13#define VYBER_MODELU    0       // 0 = plny model s respektovanim Lsd/Lsq ... implicitne
14                                                        // 1 = parametry modelu z identifikace
15#define _dt     0.000125
16
17#define floatx float
18
19floatx qrandn();
20floatx qrandu();
21void rng_init();
22
23void mpf_bayes ( const floatx isa, const floatx isb , const floatx usa, const floatx usb );
24void mpf_init(floatx qom0, floatx qth0, floatx r0);
25void mpf_mean(floatx *Ecosth, floatx *Esinth, floatx *Eome);
26void mpf_th(floatx th1[N]);
27void mpf_om(floatx om1[N]);
28void mpf_best( floatx *Ecosth, floatx *Esinth, floatx *Eome);
29
30floatx kalman_om ( const floatx isa, const floatx isb , const floatx usa, const floatx usb, const floatx th );
Note: See TracBrowser for help on using the browser.