示例#1
0
int main(void)
{
	/* zhou stub */
    /* 创建gagent进程单独运行 */
    //CoreInit();
    X86_Serial_Init();
    IOF_Config_hook_init();
	IOF_General_Hook_Init();
    GAgent_TimerInit();
    X86_Timer_Creat(GAGENT_TIMER_S_1, GAGENT_TIMER_US, x86_timer_handle);       /* 1S */
	
    GAgent_Init();

    while(1)
    {
        GAgent_TimerRun();
        GAgent_DoBusiness();
        //sleep(1);
    }
}
示例#2
0
int main(void)
{
    /* 创建gagent进程单独运行 */
	
    //CoreInit();
    IOF_Config_hook_init();
	IOF_General_Hook_Init();
    GAgent_TimerInit();
    X86_Timer_Creat(GAGENT_TIMER_S_1, GAGENT_TIMER_US, x86_timer_handle);       /* 1S */
	
    GAgent_Init();
	top(&G_mavlink_attitude);
    while(1)
    {
        GAgent_TimerRun();
        GAgent_DoBusiness();
//		printf("roll =%f,pitch =%f,yaw =%f,rollspeed =%f,pitchspeed =%f,yawspeed=%f \n",G_mavlink_attitude.roll,G_mavlink_attitude.pitch, G_mavlink_attitude.yaw,G_mavlink_attitude.rollspeed,G_mavlink_attitude.pitchspeed,G_mavlink_attitude.yawspeed);
        msleep(1500);
    }
}