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.

请教,28069与8305组合,lab5b,无法实现往复运动,为什么????????????

 if(HAL_readGpio(halHandle,gpioNumber3) == LOW)
        {
            usDelay(100000);
            if(HAL_readGpio(halHandle,gpioNumber3) == LOW)
               {
                for(;;)
                   {
                       CTRL_setSpd_ref_krpm(ctrlHandle,gMotorVars.SpeedRef_krpm);  // set the speed reference
                       gMotorVars.SpeedRef_krpm=_IQ(setSpeed/1000);
                       usDelay(100000);
                       gMotorVars.SpeedRef_krpm=_IQ(-(setSpeed/1000));
                       usDelay(100000);
                    }
                }

}

速度列表中只是显示,电机没有转,为什么?是我的程序不对嘛?能不能帮忙解决?比较着急用