- Main Page
- Related Pages
- Modules
- Classes
- Files

# work/git/mixpp/pmsm/simulator_zdenek/ekf_example/fixed.h

    00001 /*
    00002    Operace v pevne radove carce
    00003
    00004    9.10.2005
    00005 */
    00006
    00007
    00008 extern long prevod(double x, unsigned int posun);
    00009 // prevod "x" do systemu "Qposun"
    00010 extern double zprevod(long x, unsigned int posun);
    00011 // prevod "x" ze systemu "Qposun" do DOUBLE
    00012 extern long nasob(int x, int y,unsigned int posun);
    00013 // (x*y)>>posun
    00014 extern int deleni15(int x, int y);
    00015 // (x*Q15/y)
    00016 extern int deleni(int x, int y, int posun1, int posun2, int scale, int posun_fin);
    00017 // obecne deleni: x_"Qposun1"*"Qscale"/y_"Qposun2" -> "Q_posun_fin"