void A3(void) // Motor Start Stop State Machine
//—————————————–
{
// For ACI Motor
if(StartMotor==1)
{
MotorEnable=1;
IdRef = _IQ(0.05); // Id reference (pu) IqRef = _IQ(0.02); // Iq reference (pu) SpeedRef = _IQ(0.3); // Speed reference (pu)
StartMotor=0;
}
if(StopMotor==1)
{
//open the speed loop
lsw=0;
//kill the flux
if(IdRef>2000)
{
IdRef=IdRef-2000;
if(SpeedRef>=_IQ(0.10))
{
SpeedRef=SpeedRef-(SpeedRef*0.1);
}
}
else
{
//flux is kllled, stop the motor
MotorEnable=0;
StopMotor=0;
}
}
//—————–
//the next time CpuTimer0 'counter' reaches Period value go to A1
A_Task_Ptr = &A4;
//—————–
}
CCS4中的{}对应关系怎么用快捷方式看?
未经允许不得转载:TI中文支持网 » CCS4中的{}对应关系怎么用快捷方式看?
相关推荐
- TIDM-DC-DC-BUCK: Design files can't download
- TMS320F28335: Error enabling this function: This task cannot be accomplished with the existing AET resources.
- TMS320F280049: 芯片在运行过程中莫名出现复位
- TMS320F28035: Ti28035芯片看门狗复位偶尔失败问题
- TMS320C28346: 28346 DMA和CPU同时访问冲突问题
- TMS320F28335: 是否有对应的SDL 软件诊断库?
- LAUNCHXL-F28069M: J3,5V引脚的作用是什么;在ADC采样过程中,需要怎样接外接信号?
- TMS320F28335: C2000™︎ 微控制器论坛