tune: 稳定期窗口 100 快速收敛 (同步 DLD154V4B)
This commit is contained in:
@@ -452,12 +452,12 @@ void vd1_task_per_channel(Loop154_Unit *unit)
|
|||||||
unit->loop_CAPVD = get_flt_value(clamped_value, unit->loop_CAPVD);
|
unit->loop_CAPVD = get_flt_value(clamped_value, unit->loop_CAPVD);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*--- 2. 稳定期:绕过 IIR 和斜率限幅 ---*/
|
/*--- 2. 稳定期:绕过 IIR 和斜率限幅,小窗口快速收敛 ---*/
|
||||||
if (!unit->loop_stable) {
|
if (!unit->loop_stable) {
|
||||||
unit->loop_CAPVD = unit->loop_Value;
|
unit->loop_CAPVD = unit->loop_Value;
|
||||||
|
|
||||||
update_moving_average(&unit->loop_ORG_SUM, &unit->loop_ORG_CNT,
|
update_moving_average(&unit->loop_ORG_SUM, &unit->loop_ORG_CNT,
|
||||||
&unit->loop_Origin, unit->loop_CAPVD, WINDOW_ORIGIN);
|
&unit->loop_Origin, unit->loop_CAPVD, 100);
|
||||||
unit->stable_cnt++;
|
unit->stable_cnt++;
|
||||||
if (unit->stable_cnt >= STABLE_SAMPLES) {
|
if (unit->stable_cnt >= STABLE_SAMPLES) {
|
||||||
unit->loop_stable = 1;
|
unit->loop_stable = 1;
|
||||||
|
|||||||
Reference in New Issue
Block a user