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.

为什么定点浮点格式转换有的要/100,有的不需要?如下:



pid1_spd.Kp=((Uint32)(P.AsprKp)<<14)/100<<10;
pid1_spd.Ki=((Uint32)(P.AsprKi)<<14)/P.carryF<<10;