Modifying the HKCC for no readily apparent reason

Dependencies:   FastPWM3

Committer:
benkatz
Date:
Thu Mar 02 15:31:23 2017 +0000
Revision:
20:bf9ea5125d52
Child:
22:60276ba87ac6
Compact version works.;

Who changed what in which revision?

UserRevisionLine numberNew contents of line
benkatz 20:bf9ea5125d52 1 #ifndef CURRENT_CONTROLLER_CONFIG_H
benkatz 20:bf9ea5125d52 2 #define CURRENT_CONTROLLER_CONFIG_H
benkatz 20:bf9ea5125d52 3
benkatz 20:bf9ea5125d52 4 #define K_D .5f //V/A
benkatz 20:bf9ea5125d52 5 #define K_Q .5f //V/A
benkatz 20:bf9ea5125d52 6 #define KI_D 0.04f //1/samples
benkatz 20:bf9ea5125d52 7 #define KI_Q 0.04f //1/samples
benkatz 20:bf9ea5125d52 8 #define V_BUS 14.0f
benkatz 20:bf9ea5125d52 9
benkatz 20:bf9ea5125d52 10 #define D_INT_LIM V_BUS/(K_D*KI_D) //A*samples
benkatz 20:bf9ea5125d52 11 #define Q_INT_LIM V_BUS/(K_Q*KI_Q) //A*samples
benkatz 20:bf9ea5125d52 12
benkatz 20:bf9ea5125d52 13
benkatz 20:bf9ea5125d52 14
benkatz 20:bf9ea5125d52 15 #endif