Part Number: TMS320F28027F
基于instaSPIN-FOC算法的电机控制,如何修改电机参数gMotorVars.SpeedRef_krpm,用于使电机反转?


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.
额,很抱歉我发现我这边的板子上次测试的时候被我锁住没办法解锁了。。。
你试一下把代码:
CTRL_setSpd_ref_krpm(ctrlHandle,gMotorVars.SpeedRef_krpm);
改成:
CTRL_setSpd_ref_krpm(ctrlHandle,-gMotorVars.SpeedRef_krpm);
应该改一下符号就能赋负值了