/* =================================================================================
File name : HVPM_Sensorless-Settings.HDescription: 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文件没被编译。是怎么回事呢? 求帮助!谢谢
BIN YAO1:
编译.h文件需要选择build all,选择build project是不行的
/* =================================================================================
File name : HVPM_Sensorless-Settings.HDescription: 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文件没被编译。是怎么回事呢? 求帮助!谢谢
Tong Yao:
回复 BIN YAO1:
我试了,用build all也不行。
但是我先用release(会出错),然后再用debug,就能更新h文件中的宏定义。
这是怎额回事啊?
/* =================================================================================
File name : HVPM_Sensorless-Settings.HDescription: 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文件没被编译。是怎么回事呢? 求帮助!谢谢
Chen Jones:
回复 Tong Yao:
你先确认是Release下的还是Debug下的。
先试试Clean Project, 再Rebuild All