Ben Katz / Mbed 2 deprecated Hobbyking_Cheetah_F334

Dependencies:   CANnucleo FastPWM3 mbed

Fork of Hobbyking_Cheetah_Compact by Ben Katz

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers current_controller_config.h Source File

current_controller_config.h

00001 #ifndef CURRENT_CONTROLLER_CONFIG_H
00002 #define CURRENT_CONTROLLER_CONFIG_H
00003 
00004 #define K_D .5f   //V/A
00005 #define K_Q .5f   //V/A
00006 #define KI_D 0.04f  //1/samples
00007 #define KI_Q 0.04f  //1/samples
00008 #define V_BUS 24.0f
00009 
00010 #define D_INT_LIM V_BUS/(K_D*KI_D)  //A*samples
00011 #define Q_INT_LIM V_BUS/(K_Q*KI_Q)  //A*samples
00012 
00013 
00014 
00015 #endif