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

📄 timeconstants.hpp

📁 一个gps小工具包
💻 HPP
字号:
#pragma ident "$Id: TimeConstants.hpp 316 2006-11-28 22:17:17Z snelsen $"#ifndef GPSTK_TIMECONSTANTS_HPP#define GPSTK_TIMECONSTANTS_HPP//============================================================================////  This file is part of GPSTk, the GPS Toolkit.////  The GPSTk is free software; you can redistribute it and/or modify//  it under the terms of the GNU Lesser General Public License as published//  by the Free Software Foundation; either version 2.1 of the License, or//  any later version.////  The GPSTk is distributed in the hope that it will be useful,//  but WITHOUT ANY WARRANTY; without even the implied warranty of//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the//  GNU Lesser General Public License for more details.////  You should have received a copy of the GNU Lesser General Public//  License along with GPSTk; if not, write to the Free Software Foundation,//  Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA//  //  Copyright 2004, The University of Texas at Austin////============================================================================namespace gpstk{      /// Add this offset to convert Modified Julian Date to Julian Date.   const double MJD_TO_JD = 2400000.5;      /// 'Julian day' offset from MJD   const long MJD_JDAY = 2400001L;      /// 'Julian day' of GPS epoch (Jan. 1, 1980).   const long GPS_EPOCH_JDAY = 2444245L;      /// Modified Julian Date of GPS epoch (Jan. 1, 1980).   const long GPS_EPOCH_MJD = 44244L;      /// Modified Julian Date of UNIX epoch (Jan. 1, 1970).   const long UNIX_MJD = 40587L;      /// Seconds per half a GPS week.   const long HALFWEEK = 302400L;      /// Seconds per whole GPS week.   const long FULLWEEK = 604800L;      /// Weeks per GPS Epoch   const long WEEKS_PER_EPOCH = 1024L;      /// Seconds per day.   const long SEC_PER_DAY = 86400L;      /// Days per second.   const double DAY_PER_SEC = 1.0/SEC_PER_DAY;      /// Milliseconds in a second.   const long MS_PER_SEC = 1000L;      /// Seconds per millisecond.   const double SEC_PER_MS = 1.0/MS_PER_SEC;         /// Milliseconds in a day.   const long MS_PER_DAY = MS_PER_SEC * SEC_PER_DAY;      /// Days per milliseconds.   const double DAY_PER_MS = 1.0/MS_PER_DAY;      /// Zcounts in a  day.   const long ZCOUNT_PER_DAY = 57600L;      /// Days in a Zcount   const double DAY_PER_ZCOUNT = 1.0/ZCOUNT_PER_DAY;      /// Zcounts in a week.   const long ZCOUNT_PER_WEEK = 403200L;      /// Weeks in a Zcount.   const double WEEKS_PER_ZCOUNT = 1.0/ZCOUNT_PER_WEEK;} // namespace#endif // GPSTK_TIMECONSTANTS_HPP

⌨️ 快捷键说明

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