test

Dependencies:   mbed-dev-f303 FastPWM3

Committer:
benkatz
Date:
Fri Apr 13 13:50:54 2018 +0000
Revision:
37:c0f352d6e8e3
Parent:
34:51647c6c500d
Child:
40:cd7e837b2b93
always samples position sensor

Who changed what in which revision?

UserRevisionLine numberNew contents of line
benkatz 20:bf9ea5125d52 1 #ifndef MOTOR_CONFIG_H
benkatz 20:bf9ea5125d52 2 #define MOTOR_CONFIG_H
benkatz 20:bf9ea5125d52 3
benkatz 25:f5741040c4bb 4 #define R_PHASE 0.105f //Ohms
benkatz 22:60276ba87ac6 5 #define L_D 0.00003f //Henries
benkatz 22:60276ba87ac6 6 #define L_Q 0.00003f //Henries
benkatz 37:c0f352d6e8e3 7 #define KT .075f //N-m per peak phase amp, = WB*NPP*3/2
benkatz 22:60276ba87ac6 8 #define NPP 21 //Number of pole pairs
benkatz 26:2b865c00d7e9 9 #define GR 6.0f //Gear ratio
benkatz 37:c0f352d6e8e3 10 #define KT_OUT 0.45f //KT*GR
benkatz 37:c0f352d6e8e3 11 #define WB 0.0024f //Webers.
benkatz 22:60276ba87ac6 12
benkatz 20:bf9ea5125d52 13
benkatz 20:bf9ea5125d52 14
benkatz 20:bf9ea5125d52 15 #endif