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.
Config/motor_config.h
- Committer:
- abe5b02d-a2d4-4fe9-818e-c4e57c809ea4
- Date:
- 2022-06-17
- Revision:
- 52:6f4f034f117b
- Parent:
- 48:74a40481740c
File content as of revision 52:6f4f034f117b:
#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 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
#endif