#include "stc8h.h"
#include "typedef.h" 这个头文件,怎么定义?
/*********************
*********************/
//=========60hz================
#define OPEN_MAX 134
#define OPEN_MiX 80
#define NUM_DATA 54 //NUM_DATA=OPEN_MAX-OPEN_MiX
#define U8 unsigned int
const u8 open_bu[55]={9,9,9,9,9,9,9,9,9,9, //5-11
9,9,9,9,9,9,9,9,9,9,
9,9,9,9,9,9,9,9,9,9,
9,9,9,9,9,9,9,9,9,9,
9,9,9,9,9,9,9,9,9,9,
9,9,9,9,9,
}; //补偿敏感度
const u8 buchang_ad[55]={32,33,34,36,38,40,42,44,46,48,
50,50,50,50,50,50,50,50,50,50,
50,50,50,50,50,50,50,50,50,50,
50,50,50,50,50,50,50,50,50,50,
50,50,50,50,50,50,50,50,50,50,
50,50,50,50,50,
}; //补偿起点
#define F_BU 4 //如果政策补偿了
#define RUAN_QI 20 //软启动速率
#define RUAN_QI_DATA 110 //软启动初值
|