智能车制作
标题:
加CCD的时候出现一个错误extern float g_fAcceAngle是illeagl storage class,他说...
[打印本页]
作者:
丨奇灬锦兮丶
时间:
2015-5-31 11:35
标题:
加CCD的时候出现一个错误extern float g_fAcceAngle是illeagl storage class,他说...
#include "Includes.h"
//#include "Ascii_char.h"
#include "Event.h"
#include "CarSub.h"
#pragma LINK_INFO DERIVITAVE "mc9s12xs128MAA"
float g_fGyrooffest = 0.0;
extern float g_fAcceAngle;
extern float g_fGyroAngleSpeed;
extern float g_fCarAngle;
extern float g_fCarSpeed;
extern int g_nLeftMotorPulseSigma;
extern int g_nRightMotorPulseSigma;
extern float OutData[4];
extern unsigned int speed_Lback;
extern unsigned int speed_Rback;
void delay_tms(uint t) //delay t ms
{
uint j=0;
for( ;t>0;t--)
for(j=13400;j>0;j--);
}
void main(void)
{
unsigned int i = 0;
unsigned char *pixel_pt;
/* Init Pixel Array */
pixel_pt = Pixel;
for(i=0; i<128+10; i++) {
*pixel_pt++ = 0;
}
Inits();
/* Start_count();
clear_screen();
for (i=0; i<1024; i++)
{
g_fGyrooffest += (float)Read_ADValue(1); //uint
}
g_fGyrooffest /= 1024.0;
Display_AD_Result_Value(36, 1, Read_ADValue(0)); //显示陀螺仪零偏值
//delay_tms(1000);
clear_screen();
Display(); */
EnableInterrupts;
while(1)
{
Key_Scanf();
Key_Value();
CCD_Test();
}
}
欢迎光临 智能车制作 (http://dns.znczz.com/)
Powered by Discuz! X3.2