robot

Dependencies:   FastPWM3 mbed

CurrentModel/CurrentModel.h

Committer:
bwang
Date:
2018-11-13
Revision:
252:38644631ed97
Parent:
220:ff69c230aa6d

File content as of revision 252:38644631ed97:

#ifndef __CURRENT_MODEL_H
#define __CURRENT_MODEL_H

class CurrentModel {
public:
    CurrentModel(float Lr, float Rr, float fsw);
    float getFluxPosition(float id, float iq, float w);
private:
    float _tauinv;
    float _tsw;
    
    float _im, _theta;
};

#endif