/* =================================================================================
File name : HVPM_Sensorless-Settings.H
Description: Incremental Build Level control file.
================================================================================= */
#ifndef PROJ_SETTINGS_H
#define PROJ_SETTINGS_H
/*------------------------------------------------------------------------------
Following is the list of the Build Level choices.
------------------------------------------------------------------------------*/
#define LEVEL1 1 // Module check out (do not connect the motors)
#define LEVEL2 2 // Verify ADC, park/clarke, calibrate the offset
#define LEVEL3 3 // Verify closed current(torque) loop and PIDs and speed measurement
#define LEVEL4 4 // Verify speed estimation and rotor position est.
#define LEVEL5 5 // Verify close speed loop and speed PID
#define LEVEL6 6 // Verify close speed loop sensorless
#define BUILDLEVEL LEVEL3
我将上面的LEVEL3改成LEVEL2(即#define BUILDLEVEL LEVEL2),再编译工程,主函数中BUILDLEVEL却还是3.应该变为2才对,总感觉h文件没被编译。是怎么回事呢? 求帮助!谢谢