Доработки по мониторингу сети и моделированию

Неудачная попытка добавить биквадратный фильтр для АЦП (уходит в разнос)
This commit is contained in:
2025-11-13 18:56:29 +03:00
parent 5299cc5b12
commit e4f05bdf6a
23 changed files with 341 additions and 223 deletions

View File

@@ -14,10 +14,24 @@
#define _UPP_CONFIG_H_
#include "stm32f4xx_hal.h"
#define PM_ADC_PERIOD 1800-1
#define U_BA 0
#define U_AC 1
#define U_BC 2
#define I_C 0
#define I_A 1
#define I_B 2
#define TEMP_1 0
#define TEMP_2 1
#define PM_U_BASE 1216.0
#define PM_I_BASE 53.0
#define PM_ADC_PERIOD_MKS 10
#define PM_ZERO_CROSS_HYSTERESIS_V 10
#define PM_ZERO_CROSS_DEBOUNCE_10US 3
#define PM_ZERO_CROSS_DEBOUNCE_10US 2.5*100 // (2.5 * 100 = 2.5 мс)
// Рассчитанные дефайны
#define PM_ADC_PERIOD (180*PM_ADC_PERIOD_MKS)-1
#endif //_UPP_CONFIG_H_