it works!
Dependencies: mbed-dev-f303 FastPWM3
Revision 52:b81f50f83054, committed 2020-12-30
- Comitter:
- supremelyy001
- Date:
- Wed Dec 30 08:49:45 2020 +0000
- Parent:
- 51:6cd89bd6fcaa
- Commit message:
- first commit
Changed in this revision
Config/motor_config.h | Show annotated file Show diff for this revision Revisions of this file |
diff -r 6cd89bd6fcaa -r b81f50f83054 Config/motor_config.h --- a/Config/motor_config.h Wed Jul 17 03:40:12 2019 +0000 +++ b/Config/motor_config.h Wed Dec 30 08:49:45 2020 +0000 @@ -1,17 +1,26 @@ #ifndef MOTOR_CONFIG_H #define MOTOR_CONFIG_H -#define R_PHASE 0.13f //Ohms -#define L_D 0.00002f //Henries -#define L_Q 0.00002f //Henries -#define KT .08f //N-m per peak phase amp, = WB*NPP*3/2 +//#define R_PHASE 0.13f //Ohms +//#define L_D 0.00002f //Henries +//#define L_Q 0.00002f //Henries +//#define KT .08f //N-m per peak phase amp, = WB*NPP*3/2 +//#define NPP 21 //Number of pole pairs +//#define GR 1.0f //Gear ratio +//#define KT_OUT 0.45f //KT*GR +//#define WB 0.0025f //Flux linkage, Webers. +//#define R_TH 1.25f //Kelvin per watt +//#define INV_M_TH 0.03125f //Kelvin per joule + +#define R_PHASE 0.295f //Ohms +#define L_D 0.0001513f //Henries +#define L_Q 0.0001962f //Henries +#define KT .251f //N-m per peak phase amp, = WB*NPP*3/2 #define NPP 21 //Number of pole pairs -#define GR 1.0f //Gear ratio -#define KT_OUT 0.45f //KT*GR -#define WB 0.0025f //Flux linkage, Webers. +#define GR 35.0f //Gear ratio +#define KT_OUT 8.785f //KT*GR +#define WB 0.00797f //Flux linkage, Webers. #define R_TH 1.25f //Kelvin per watt #define INV_M_TH 0.03125f //Kelvin per joule - - #endif