convert.h

来自「非常好用的gps数据读写接口」· C头文件 代码 · 共 45 行

H
45
字号
/***************************************************************************                     convert.h  -  converting functions                             -------------------    begin                : So M鋜 21 17:50:31 CET 2004    copyright            : (C) 2004 by Dennis Real    email                : dev-null@users.sourceforge.net ***************************************************************************//*************************************************************************** *                                                                         * *   This program is free software; you can redistribute it and/or modify  * *   it under the terms of the GNU General Public License as published by  * *   the Free Software Foundation; either version 2 of the License, or     * *   (at your option) any later version.                                   * *                                                                         * ***************************************************************************/#ifndef CONVERT_H#define CONVERT_H#include "def.h"/* convert first 4 bytes to float, lsb comes first */ float char2float(BYTE *ch);/* convert first 4 bytes to long, lsb comes first */ long char2long(BYTE *ch);/* convert first 4 bytes to long	*/ double char2double(BYTE *ch);/* convert first 16 bytes to Radian_Type	*/Radian_Type char2radiantype(BYTE *ch);/*  convert degrees to radian */double deg2rad(double deg);/*  convert radian to degrees */double rad2deg(double rad);/*	convert velocity north&east to direction in rad	*/double directionrad(double vn, double ve);#endif

⌨️ 快捷键说明

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