gnss_coordinate_convert.h 807 B

1234567891011121314151617181920212223242526
  1. #pragma once
  2. #ifndef _IV_PERCEPTION_GNSS_CONVERT_
  3. #define _IV_PERCEPTION_GNSS_CONVERT_
  4. #include <math.h>
  5. //double nmeaConvert2Lat(string lat)
  6. //{
  7. // Console.WriteLine(lat);
  8. // double nmea_d = double.Parse(lat.Substring(0, 2));
  9. // double nmea_m = double.Parse(lat.Substring(2, 6));
  10. // return nmea_d + nmea_m / 60;
  11. //}
  12. //
  13. //double nmeaConvert2Lon(string lon)
  14. //{
  15. // Console.WriteLine(lon);
  16. // double nmea_d = double.Parse(lon.Substring(0, 3));
  17. // double nmea_m = double.Parse(lon.Substring(3, 7));
  18. // return nmea_d + nmea_m / 60;
  19. //}
  20. void gps2xy(double , double , double *, double *);
  21. void GaussProjCal(double longitude, double latitude, double *X, double *Y);
  22. void GaussProjInvCal(double X, double Y, double *longitude, double *latitude);
  23. #endif // !_IV_PERCEPTION_GNSS_CONVERT_