From 92742fffc1aa6dd77e8f7ca276059c7b90a6c86a Mon Sep 17 00:00:00 2001 From: hanyongwei <2043702190@qq.com> Date: Wed, 2 Sep 2026 13:52:48 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E4=BA=86=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: hanyongwei <2043702190@qq.com> --- .gitignore | 6 +----- plsr/accel_curve/plsr_accel_curve.c | 2 ++ 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index a9f5ec0..f5631ef 100644 --- a/.gitignore +++ b/.gitignore @@ -19,8 +19,4 @@ iar/settings/modbus.reggroups build-plsr_host-Desktop_Qt_5_6_3_MinGW_32bit-Debug/ plsr/test/ tools/ -.cursor/ -PLSR测试大纲.html -_gen_outline_p1.py -run_control_full.txt -plsr/README.md \ No newline at end of file +.cursor/ \ No newline at end of file diff --git a/plsr/accel_curve/plsr_accel_curve.c b/plsr/accel_curve/plsr_accel_curve.c index 9ac1892..b4354d1 100644 --- a/plsr/accel_curve/plsr_accel_curve.c +++ b/plsr/accel_curve/plsr_accel_curve.c @@ -441,6 +441,7 @@ void PlsrAccelBeginAccel(PlsrAccelRuntime_t *runtime, { return; /* 缺谁都不开相 */ } + /*计算加速或者减速的时间*/ PlsrAccelRuntimeBeginRamp(runtime, /* 填运行态:起→峰 */ plan->start_freq_hz, /* 入口频 */ plan->target_freq_hz, /* 峰值 */ @@ -448,6 +449,7 @@ void PlsrAccelBeginAccel(PlsrAccelRuntime_t *runtime, plan->accel_rate_hz_per_s, /* 加速斜率 */ plan->decel_rate_hz_per_s, /* 减速斜率 */ plan->curve_mode); /* 曲线模式 */ + /*选择频率表*/ PlsrAccelRuntimeSelectFreqTable(runtime, 1U, s_accel_table_length, /* 绑加速预建表 id=1 */ s_accel_table_stride); /* 步长一起绑 */ }