📄 convert.h
字号:
/*************************************************************************** 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -