Esempio n. 1
0
void printAll_UART(void)
{
    //USART_Puts("fix Mode= "); USART_Puts(skyBin_str.fix_mode);
    //USART_Puts(", Number sv= "); USART_Puts(skyBin_str.number_sv);
    USART_Puts(" Gps Week= "); USART_Puts(skyBin_str.gps_week);
    USART_Puts(" Gps tow= ");
    USART_Puts(skyBin_str.gps_tow);
/*
    USART_Puts(", Lat= ");
    USART_Puts(skyBin_str.latitude);
    USART_Puts(", Long= ");
    USART_Puts(skyBin_str.longitude);*/
    //USART_Puts(", Eps Alt= "); USART_Puts(skyBin_str.eps_alt);
    USART_Puts(" Sea Alt= "); USART_Puts(skyBin_str.sea_alt);
    //USART_Puts(", gdop= "); USART_Puts(skyBin_str.gdop);
    //USART_Puts(", pdop= "); USART_Puts(skyBin_str.pdop);
    //USART_Puts(", hdop= "); USART_Puts(skyBin_str.hdop);
    //USART_Puts(", vdop= "); USART_Puts(skyBin_str.vdop);
    //USART_Puts(", tdop= "); USART_Puts(skyBin_str.tdop);
    //USART_Puts(", ecef_x= "); USART_Puts(skyBin_str.ecef_x);
    //USART_Puts(", ecef_y= "); USART_Puts(skyBin_str.ecef_y);
    //USART_Puts(", ecef_z= "); USART_Puts(skyBin_str.ecef_z);
    //USART_Puts(", ecef_vx= "); USART_Puts(skyBin_str.ecef_vx);
    //USART_Puts(", ecef_vy= "); USART_Puts(skyBin_str.ecef_vy);
    USART_Puts(", ecef_vz= "); USART_Puts(skyBin_str.ecef_vz);
    //USART_Puts(", SPEED km/u= "); USART_Puts(skyBinSeedBuffer);
    USART_Puts("\n");
}
Esempio n. 2
0
/**
  * @brief  This function handles SysTick Handler.
  * @param  None
  * @retval None
  */
void SysTick_Handler(void)
{
	static uint32_t i=0;
	char str[]={"AT+GMM=?\n"};
	if(i++>900)
	{

		if (i>=1000)
		{
			i=0;
			USART_Puts(str);
			//RxCount=0;
		}
	}else
	{
		//GPIO_ResetBits(LED_GPIO_PORT,LED_PIN);
	}
}