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: FastPWM3 mbed-dev-STM-lean
Config/motor_config.h
- Committer:
- benkatz
- Date:
- 2019-11-07
- Revision:
- 57:0795d2add37e
- Parent:
- 55:c4c9fec8539c
- Child:
- 58:32e8927fe39f
File content as of revision 57:0795d2add37e:
#ifndef MOTOR_CONFIG_H #define MOTOR_CONFIG_H #define R_PHASE 0.13f //Ohms #define L_D 0.00008f //Henries #define L_Q 0.00008f //Henries #define KT .075f //N-m per peak phase amp, = WB*NPP*3/2 #define NPP 11 //Number of pole pairs #define GR 2.0f //Gear ratio #define KT_OUT 0.036f //KT*GR #define WB 0.00287f //Flux linkage, Webers. #define R_TH 1.25f //Kelvin per watt #define INV_M_TH 0.02825f //Kelvin per joule #define T_AMBIENT 25.0f // ambient temperature during temp calibration #endif