📄 calc_error.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 + -