MyGPS.h 863 B

123456789101112131415161718192021222324252627282930
  1. /********************************************************************************
  2. * File Name: MyGPS.h
  3. * Function Describe: Header file for MyGPS.c
  4. * Explain:
  5. * Writer:
  6. * Date:
  7. *******************************************************************************/
  8. #ifndef __MY_GPS_H
  9. #define __MY_GPS_H
  10. //-------------------------------------------------------------------------------
  11. typedef struct
  12. {
  13. double longitude; //经度,单位:°
  14. char lo_direction; //经度方向:E/W
  15. double latitude; //纬度,单位:°
  16. char la_direction; //纬度方向:N/S
  17. int Speed;//速度
  18. int Hight;//海拔
  19. }SutMyGps;
  20. extern SutMyGps MyGPS;
  21. int convertMyGPS(char *buffer,int buflen,SutMyGps *output);
  22. //-------------------------------------------------------------------------------
  23. #endif
  24. //-------------------------------------------------------------------------------