Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed Hobbyking_Cheetah FastPWM3
Config/motor_config.h@55:165927e4f815, 2022-05-10 (annotated)
- Committer:
- qiudehua
- Date:
- Tue May 10 02:26:27 2022 +0000
- Revision:
- 55:165927e4f815
- Parent:
- 53:e85efce8c1eb
GT_MOTOR_24NM_V03_PT1000
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| benkatz | 20:bf9ea5125d52 | 1 | #ifndef MOTOR_CONFIG_H |
| benkatz | 20:bf9ea5125d52 | 2 | #define MOTOR_CONFIG_H |
| benkatz | 20:bf9ea5125d52 | 3 | |
| benkatz | 48:74a40481740c | 4 | #define R_PHASE 0.13f //Ohms |
| benkatz | 47:e1196a851f76 | 5 | #define L_D 0.00002f //Henries |
| benkatz | 47:e1196a851f76 | 6 | #define L_Q 0.00002f //Henries |
| qiudehua | 55:165927e4f815 | 7 | //#define KT .08f //N-m per peak phase amp, = WB*NPP*3/2 |
| qiudehua | 55:165927e4f815 | 8 | //#define KT 0.07875f //N-m per peak phase amp, = WB*NPP*3/2 = 0.0025*21*3/2 = 0.07875 |
| qiudehua | 55:165927e4f815 | 9 | #define KT 0.2f //N-m per peak phase amp, = WB*NPP*3/2 = 0.0025*21*3/2 = 0.07875 |
| benkatz | 47:e1196a851f76 | 10 | #define NPP 21 //Number of pole pairs |
| benkatz | 53:e85efce8c1eb | 11 | #define GR 6.0f //Gear ratio |
| qiudehua | 55:165927e4f815 | 12 | //#define KT_OUT 0.45f //KT*GR |
| qiudehua | 55:165927e4f815 | 13 | #define KT_OUT 1.2f //KT*GR |
| benkatz | 48:74a40481740c | 14 | #define WB 0.0025f //Flux linkage, Webers. |
| benkatz | 48:74a40481740c | 15 | #define R_TH 1.25f //Kelvin per watt |
| benkatz | 48:74a40481740c | 16 | #define INV_M_TH 0.03125f //Kelvin per joule |
| benkatz | 22:60276ba87ac6 | 17 | |
| benkatz | 20:bf9ea5125d52 | 18 | |
| benkatz | 20:bf9ea5125d52 | 19 | |
| benkatz | 20:bf9ea5125d52 | 20 | #endif |