Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Config/current_controller_config.h
- Committer:
- benkatz
- Date:
- 2017-11-08
- Revision:
- 34:51647c6c500d
- Parent:
- 29:0dbc822dd29a
- Child:
- 35:69b24894c11d
File content as of revision 34:51647c6c500d:
#ifndef CURRENT_CONTROLLER_CONFIG_H #define CURRENT_CONTROLLER_CONFIG_H #define K_D .05f // Volts/Amp #define K_Q .05f // Volts/Amp #define K_SCALE 0.00043f // K_loop/Loop BW (Hz) #define KI_D 0.0255f // 1/samples #define KI_Q 0.0255f // 1/samples #define V_BUS 24.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 #define I_MAX 40.0f #endif