⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 calc_error.c

📁 根据GPS官方网站提供的gps定位方法而编写的C语言gps定位代码
💻 C
字号:
#include <math.h>#include "gps.h"/* *      Allows approximate calculation of ground distance *	from known latitude and longitude - the values *	MY_LAT and MY_LON in gps.h */calc_error(double lat, double lon , double height) /* these are in degrees */{	double dx = ( MY_LAT - lat) * 111225.0;	double dy = ( MY_LON - lon) * 68875.0;	double error = sqrt( dx * dx + dy * dy);	printf("Pos error = %f\n",error);}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -