Chetan Sharma
/
HKCC_Controller_MBed_OS
Modifying the HKCC for no readily apparent reason
Config/current_controller_config.h@35:69b24894c11d, 2017-11-18 (annotated)
- Committer:
- benkatz
- Date:
- Sat Nov 18 18:41:42 2017 +0000
- Revision:
- 35:69b24894c11d
- Parent:
- 34:51647c6c500d
- Child:
- 37:c0f352d6e8e3
minor updates
Who changed what in which revision?
User | Revision | Line number | New 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 | 23:2adf23ee0305 | 4 | #define K_D .05f // Volts/Amp |
benkatz | 23:2adf23ee0305 | 5 | #define K_Q .05f // Volts/Amp |
benkatz | 35:69b24894c11d | 6 | #define K_SCALE 0.0001f // K_loop/Loop BW (Hz) 0.0042 |
benkatz | 34:51647c6c500d | 7 | #define KI_D 0.0255f // 1/samples |
benkatz | 34:51647c6c500d | 8 | #define KI_Q 0.0255f // 1/samples |
benkatz | 29:0dbc822dd29a | 9 | #define V_BUS 24.0f // Volts |
benkatz | 20:bf9ea5125d52 | 10 | |
benkatz | 22:60276ba87ac6 | 11 | #define D_INT_LIM V_BUS/(K_D*KI_D) // Amps*samples |
benkatz | 22:60276ba87ac6 | 12 | #define Q_INT_LIM V_BUS/(K_Q*KI_Q) // Amps*samples |
benkatz | 20:bf9ea5125d52 | 13 | |
benkatz | 26:2b865c00d7e9 | 14 | #define I_MAX 40.0f |
benkatz | 26:2b865c00d7e9 | 15 | |
benkatz | 20:bf9ea5125d52 | 16 | |
benkatz | 20:bf9ea5125d52 | 17 | |
benkatz | 20:bf9ea5125d52 | 18 | #endif |