feat(V4B): V4.07 SENS=0 触发回调 357→337 — 最终表 {337,71,38,25}/{51,27,18,12}

现场反馈: 等比值偏低档触发过深, SENS=0 回调至 337(300~357 折中)
- 进入表: {357,71,38,25} → {337,71,38,25}
- 释放表: {51,27,18,12} 不变
单测: test_planb_release.c 断言更新(V4.07), 全部通过
文档: devlog V2.16 + technical-spec §4.3.3
This commit is contained in:
wangfq
2026-09-01 15:31:05 +08:00
parent 778664067e
commit 3d8f412f33
5 changed files with 16 additions and 14 deletions
+7 -7
View File
@@ -17,8 +17,8 @@
#define TICK_MS 10
#define ORIGIN 100000UL
/* 方案B V4.06 调校表 (与 TaskLoop.c 一致) */
static const uint16_t SensTable[4] = {357, 71, 38, 25}; /* 进入: 原{300,60,32,21} ×1.190 */
/* 方案B V4.07 调校表 (与 TaskLoop.c 一致) */
static const uint16_t SensTable[4] = {337, 71, 38, 25}; /* 进入: 原{300,60,32,21}, V4.07 SENS=0 回调 357→337 */
static const uint16_t SensTable_1[4] = { 51, 27, 18, 12}; /* 释放: 原{60,32,21,14} ×0.857 */
static const uint16_t SensTable_1_old[4] = { 60, 32, 21, 14}; /* 原始表(对比用) */
@@ -53,15 +53,15 @@ static void test_hysteresis_positive(void)
printf("[OK] 滞回为正: 四档释放表均 < 进入表\n");
}
static void test_v406_tuned_values(void)
static void test_v407_tuned_values(void)
{
/* SENS=3: 进入 25 / 释放 12 (用户现场实测) */
assert(SensTable[3] == 25);
assert(SensTable_1[3] == 12);
/* 其他档等比: ×25/21 与 ×12/14 */
assert(SensTable[2] == 38 && SensTable[1] == 71 && SensTable[0] == 357);
/* 其他档: SENS=0 回调 337, 其余等比 ×25/21 与 ×12/14 */
assert(SensTable[2] == 38 && SensTable[1] == 71 && SensTable[0] == 337);
assert(SensTable_1[2] == 18 && SensTable_1[1] == 27 && SensTable_1[0] == 51);
printf("[OK] V4.06 调校表值正确: 进入{357,71,38,25} 释放{51,27,18,12}\n");
printf("[OK] V4.07 调校表值正确: 进入{337,71,38,25} 释放{51,27,18,12}\n");
}
static void test_tuned_later_than_old(void)
@@ -92,7 +92,7 @@ int main(void)
{
printf("=== 方案B (快滤波+灵敏度表现场调校 V4.06) 单测 ===\n");
test_hysteresis_positive();
test_v406_tuned_values();
test_v407_tuned_values();
test_tuned_later_than_old();
test_release_reasonable();
printf("\n全部通过 ✓\n");