用的是LAUNCHXL-F28027F和BOOSTXL-DRV8301开发板,motorware\sw\solutions\instaspin_foc\boards\boostxldrv8301_revB\f28x\f2802xF\projects\ccs5\proj_lab05b例子,如果在运行中想随时调节电机的转速用哪个函数?还是改变CTRL object的值?
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.
用的是LAUNCHXL-F28027F和BOOSTXL-DRV8301开发板,motorware\sw\solutions\instaspin_foc\boards\boostxldrv8301_revB\f28x\f2802xF\projects\ccs5\proj_lab05b例子,如果在运行中想随时调节电机的转速用哪个函数?还是改变CTRL object的值?
CTRL_setSpd_max_pu(ctrlHandle,3000);
CTRL_setSpd_out_pu(ctrlHandle,3000);
CTRL_setMaximumSpeed_pu(ctrlHandle,3000);
CTRL_setSpeed_ref_pu(ctrlHandle,3000);
CTRL_setSpd_ref_krpm(ctrlHandle,3000);
CTRL_setSpdMax(ctrlHandle,3000);
这几个函数全部都添加在了
for(;;)
{
// Waiting for enable system flag to be set
while(!(gMotorVars.Flag_enableSys));
前面,但是电机的转速只有900rpm,达不到3000rpm,还有其他地方需要设置吗?