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.13f //Ohms 00005 #define L_D 0.00002f //Henries 00006 #define L_Q 0.00002f //Henries 00007 #define KT .08f //N-m per peak phase amp, = WB*NPP*3/2 00008 #define NPP 21 //Number of pole pairs 00009 #define GR 1.0f //Gear ratio 00010 #define KT_OUT 0.45f //KT*GR 00011 #define WB 0.0025f //Flux linkage, Webers. 00012 #define R_TH 1.25f //Kelvin per watt 00013 #define INV_M_TH 0.03125f //Kelvin per joule 00014 00015 00016 00017 #endif
Generated on Wed Jul 13 2022 07:21:26 by
