This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

bldc控制程序 rmp_cntl函数



bldc控制程序 中rmp_cntl函数作用,为什么我要给定占空比DutyFunc,转速设定值CmtnPeriodTarget都要用到斜坡函数的输出给定,我把这些值直接给定到占空比DutyFunc转速设定值CmtnPeriodTarget不可以吗。

  • 其实是可以直接设定占空比以及转速值的。

    但是如果前后两次设定值有较大的变化,因为电机有惯性转速不能突变,就不能很好适应驱动信号的突变,电机就会有大的抖动甚至可能控制失步。

    rmp_cnt函数就是用来避免前后设定值突变的,让驱动信号有一个缓慢变化过程。

  • 谢谢你的指导,那我还想问一下具体他这三个斜坡函数应用时候怎么选择,如果delay都选择一样,延时效果都一样吗