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_loop.h
00001 #ifndef __CONFIG_LOOP_H 00002 #define __CONFIG_LOOP_H 00003 00004 #include "config_inverter.h" 00005 00006 #define K_LOOP_D 2.5f 00007 #define KI_BASE_D 0.025f 00008 00009 #define K_LOOP_Q 6.0f 00010 #define KI_BASE_Q 0.01f 00011 00012 #define F_SLOW_LOOP 100.0f 00013 00014 #define INTEGRAL_MAX 1.0f 00015 00016 /*filter strengths, 0-1.0 00017 higher = stronger filtering*/ 00018 #define W_FILTER_STRENGTH 0.99f 00019 #define DQ_FILTER_STRENGTH 0.95f 00020 #define THROTTLE_FILTER_STRENGTH 0.0f 00021 00022 00023 /*internally computed*/ 00024 #define KP_D (K_LOOP_D / BUS_VOLTAGE) 00025 #define KI_D (KI_BASE_D * K_LOOP_D / BUS_VOLTAGE * 5000.0f / F_SW) 00026 00027 #define KP_Q (K_LOOP_Q / BUS_VOLTAGE) 00028 #define KI_Q (KI_BASE_Q * K_LOOP_Q / BUS_VOLTAGE * 5000.0f / F_SW) 00029 00030 #define SLOW_LOOP_COUNTER ((int) (F_SW / F_SLOW_LOOP)) 00031 00032 #endif
Generated on Wed Jul 13 2022 04:37:22 by
1.7.2