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
Config/motor_config.h
- Committer:
- benkatz
- Date:
- 2018-05-24
- Revision:
- 41:304ac2affb23
- Parent:
- 40:cd7e837b2b93
- Child:
- 45:26801179208e
File content as of revision 41:304ac2affb23:
#ifndef MOTOR_CONFIG_H
#define MOTOR_CONFIG_H
#define R_PHASE 0.105f //Ohms
#define L_D 0.00003f //Henries
#define L_Q 0.00003f //Henries
#define KT .075f //N-m per peak phase amp, = WB*NPP*3/2
#define NPP 21 //Number of pole pairs
#define GR 6.0f //Gear ratio
#define KT_OUT 0.45f //KT*GR
#define WB 0.0024f //Webers.
#endif