my_obs.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #ifndef __MY_OBS_H
  2. #define __MY_OBS_H
  3. #include "crdnt.h"
  4. #include "mathtool.h"
  5. #include "observer.h"
  6. #include "typedefine.h"
  7. #define OBS_SPD_PLL_M 10 // Flux observer m coefficient
  8. #define OBS_SPD_PLL_BANDWIDTH_HZ 200 // Huawei // Flux observer PLL bandwidth
  9. #define OBS_FLUX_PI_DAMPRATIO 10 // unit:0.1, Flux observer PI regulator dampratio
  10. #define OBS_FLUX_PI_CROSSFREQ_HZ 10 // unit:Hz, Flux observer PI regulator crossfrequency
  11. #define FTBC_HZ 15000 //Hz
  12. #if 0 //Volans
  13. #define MOTOR_RS 1070 // 0.1mohm
  14. #define MOTOR_LQ 18400 // 0.01uH
  15. #define MOTOR_LD 15700 // 0.01uH
  16. #define MOTOR_FLUX_WB 17035 // 0.001mW
  17. #elif 0 //Pegasi
  18. #define MOTOR_RS 655 // 0.1mohm
  19. #define MOTOR_LQ 16250 // 0.01uH
  20. #define MOTOR_LD 14250 // 0.01uH
  21. #define MOTOR_FLUX_WB 11491 // 0.01mWb
  22. #elif 1 //Pegasi Plus
  23. #define MOTOR_RS 720 // 0.1mohm
  24. #define MOTOR_LQ 25000 // 0.01uH
  25. #define MOTOR_LD 22000 // 0.01uH
  26. #define MOTOR_FLUX_WB 18023 // 0.01mWb
  27. #endif
  28. extern void my_ObsInit(void);
  29. extern void my_ObsCal(SLONG Ualpha, SLONG Ubeta, SLONG Ialpha, SLONG Ibeta, SLONG Vdc, OBSERVER_OUT *Out);
  30. #endif