用的是LAUNCHXL-F28027F和BOOSTXL-DRV8301开发板,motorware\sw\solutions\instaspin_foc\boards\boostxldrv8301_revB\f28x\f2802xF\projects\ccs5\proj_lab05b例子,怎么获取电流的大小,来设置超过某个电流值一段时间就停止转动?
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例子,怎么获取电流的大小,来设置超过某个电流值一段时间就停止转动?
程序里面有下面语句可以得到电流检测的ADC数据保存在gAdaData结构体里面
// convert the ADC data
HAL_readAdcData(halHandle,&gAdcData);