Mini Cheetah Actuator Branch Superseded by: https://github.com/bgkatz/motorcontrol

Dependencies:   mbed-dev-f303 FastPWM3

Superseded by: https://github.com/bgkatz/motorcontrol

Config/current_controller_config.h

Committer:
benkatz
Date:
2017-03-31
Revision:
22:60276ba87ac6
Parent:
20:bf9ea5125d52
Child:
23:2adf23ee0305

File content as of revision 22:60276ba87ac6:

#ifndef CURRENT_CONTROLLER_CONFIG_H
#define CURRENT_CONTROLLER_CONFIG_H

#define K_D .02f                     // Volts/Amp
#define K_Q .02f                     // Volts/Amp
#define KI_D 0.04f                  // 1/samples
#define KI_Q 0.04f                  // 1/samples
#define V_BUS 14.0f                 // Volts

#define D_INT_LIM V_BUS/(K_D*KI_D)  // Amps*samples
#define Q_INT_LIM V_BUS/(K_Q*KI_Q)  // Amps*samples



#endif