zebra
/
ZebraJointController
zebra joint controller firmware (originally from MIT HKC motor controller by benkatz)
Embed:
(wiki syntax)
Show/hide line numbers
current_controller_config.h
00001 #ifndef CURRENT_CONTROLLER_CONFIG_H 00002 #define CURRENT_CONTROLLER_CONFIG_H 00003 00004 // Current controller/// 00005 #define K_D .05f // Loop gain, Volts/Amp 00006 #define K_Q .05f // Loop gain, Volts/Amp 00007 #define K_SCALE 0.0001f // K_loop/Loop BW (Hz) 0.0042 00008 #define KI_D 0.0255f // PI zero, in radians per sample 00009 #define KI_Q 0.0255f // PI zero, in radians per sample 00010 #define V_BUS 24.0f // Volts 00011 #define OVERMODULATION 1.15f // 1.0 = no overmodulation 00012 00013 #define D_INT_LIM V_BUS/(K_D*KI_D) // Amps*samples 00014 #define Q_INT_LIM V_BUS/(K_Q*KI_Q) // Amps*samples 00015 00016 //Observer// 00017 #define DT 0.000025f 00018 #define K_O 0.02f 00019 00020 00021 00022 00023 #endif
Generated on Sun Jul 17 2022 04:31:50 by 1.7.2