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-dev-f303 FastPWM3
motor_config.h
00001 #ifndef MOTOR_CONFIG_H 00002 #define MOTOR_CONFIG_H 00003 00004 #define R_PHASE 0.105f //Ohms 00005 //#define L_D 0.00003f //Henries 00006 #define L_D 0.00005f 00007 //#define L_Q 0.00003f //Henries 00008 #define L_Q 0.00005f 00009 //#define KT .075f //N-m per peak phase amp, = WB*NPP*3/2 00010 #define KT .05f 00011 #define NPP 21 //Number of pole pairs 00012 #define GR 6.0f //Gear ratio 00013 // #define KT_OUT 0.45f //KT*GR 00014 #define KT_OUT 0.30f // xmotor, 这个可能是受到了磁铁和保持架影响 00015 //#define WB 0.0024f //Webers. 00016 #define WB 0.0016f 00017 00018 00019 #endif
Generated on Wed Jul 13 2022 15:44:18 by
1.7.2