不可能啊,一个例程里面有4种模式。case MOTOR_BLDC_HALL:
DEBUGMSG(DEBUG_ZONE_INFO, ("Running the APP_BLDC_HALL();\n"));
App_BLDC_Hall();
break;
case MOTOR_BLDC_BEMF:
DEBUGMSG(DEBUG_ZONE_INFO, ("Running the APP_BLDC_BEMF();\n"));
App_BLDC_Bemf();
break;
case MOTOR_FOC_HALL:
DEBUGMSG(DEBUG_ZONE_INFO, ("Running the APP_FOC_HALL();\n"));
App_FOC_Hall();
break;
case MOTOR_FOC_SENSORLESS:
DEBUGMSG(DEBUG_ZONE_INFO, ("Running the APP_FOC_SENSORLESS();\n"));
App_FOC_Sensorless();
break;
|