gSatTEME.hpp   gSatTEME.hpp 
skipping to change at line 19 skipping to change at line 19
* Revisiting Spacetrack Report #3 AIAA 2006-6753 * Revisiting Spacetrack Report #3 AIAA 2006-6753
* Vallado, David A., Paul Crawford, Richard Hujsak, and T.S. * Vallado, David A., Paul Crawford, Richard Hujsak, and T.S.
* Kelso, "Revisiting Spacetrack Report #3," * Kelso, "Revisiting Spacetrack Report #3,"
* presented at the AIAA/AAS Astrodynamics Specialist * presented at the AIAA/AAS Astrodynamics Specialist
* Conference, Keystone, CO, 2006 August 21–24. * Conference, Keystone, CO, 2006 August 21–24.
* http://celestrak.com/publications/AIAA/2006-6753/ * http://celestrak.com/publications/AIAA/2006-6753/
************************************************************************** */ ************************************************************************** */
/************************************************************************** * /************************************************************************** *
* Copyright (C) 2006 by J.L. Canales * * Copyright (C) 2006 by J.L. Canales *
* jlcanales@users.sourceforge.net * * jlcanales.gasco@gmail.com *
* * * *
* This program is free software; you can redistribute it and/or modify * * 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 * * it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or * * the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. * * (at your option) any later version. *
* * * *
* This program is distributed in the hope that it will be useful, * * This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of * * but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. * * GNU General Public License for more details. *
skipping to change at line 70 skipping to change at line 70
//! first TLE Kep. data line //! first TLE Kep. data line
//! @param[in] pstrTleLine2 Pointer to a null end string with the //! @param[in] pstrTleLine2 Pointer to a null end string with the
//! second TLE Kep. data line //! second TLE Kep. data line
gSatTEME(const char *pstrName, char *pstrTleLine1, char *pstrTleLine 2); gSatTEME(const char *pstrName, char *pstrTleLine1, char *pstrTleLine 2);
// Operation: setEpoch( gTime ai_time) // Operation: setEpoch( gTime ai_time)
//! @brief Set compute epoch for prediction //! @brief Set compute epoch for prediction
//! @param[in] ai_time gTime object storing the compute epoch time. //! @param[in] ai_time gTime object storing the compute epoch time.
void setEpoch(gTime ai_time); void setEpoch(gTime ai_time);
// Operation: setEpoch( double ai_minSinceKepEpoch) // Operation: setEpoch( double ai_time)
//! @brief Set compute epoch for prediction
//! @param[in] ai_time double variable storing the compute epoch ti
me in Julian Days.
void setEpoch(double ai_time)
{
gTime time(ai_time);
return setEpoch( time);
}
// Operation: setMinSinceKepEpoch( double ai_minSinceKepEpoch)
//! @brief Set compute epoch for prediction in minutes since Kepleri an data Epoch //! @brief Set compute epoch for prediction in minutes since Kepleri an data Epoch
//! @param[in] ai_minSinceKepEpoch Time since Keplerian Epoch measu red in minutes //! @param[in] ai_minSinceKepEpoch Time since Keplerian Epoch measu red in minutes
//! and fraction of minutes. //! and fraction of minutes.
void setEpoch(double ai_minSinceKepEpoch); void setMinSinceKepEpoch(double ai_minSinceKepEpoch);
// Operation: getPos() // Operation: getPos()
//! @brief Get the TEME satellite position Vector //! @brief Get the TEME satellite position Vector
//! @return gVector //! @return gVector
//! Satellite position vector. //! Satellite position vector meassured in Km.
//! x: position[0] //! x: position[0]
//! y: position[1] //! y: position[1]
//! z: position[2] //! z: position[2]
gVector getPos() gVector getPos()
{ {
return m_Position; return m_Position;
} }
// Operation: getVel() // Operation: getVel()
//! @brief Get the TEME satellite Velocity Vector //! @brief Get the TEME satellite Velocity Vector
//! @return gVector Satellite Velocity Vector\n //! @return gVector Satellite Velocity Vector measured in Km/s
//! x: Vel[0]\n //! x: Vel[0]\n
//! y: Vel[1]\n //! y: Vel[1]\n
//! z: Vel[2]\n //! z: Vel[2]\n
gVector getVel() gVector getVel()
{ {
return m_Vel; return m_Vel;
} }
// Operation: getSubPoint // Operation: getSubPoint
//! @brief Get the Geographic satellite subpoint Vector //! @brief Get the Geographic satellite subpoint Vector calculated b y the method compute SubPoint
//! @details To implement this operation, next references has been u sed: //! @details To implement this operation, next references has been u sed:
//! Orbital Coordinate Systems, Part III By Dr. T.S. Kelso //! Orbital Coordinate Systems, Part III By Dr. T.S. Kelso
//! http://www.celestrak.com/columns/v02n03/ //! http://www.celestrak.com/columns/v02n03/
//! @param[in] ai_Time Epoch time for subpoint calculation. (of cour
se, this must be
//! refactorized to be computed in the setEpoch function)
//! @return gVector Geographical coordinates\n //! @return gVector Geographical coordinates\n
//! Latitude: Coord[0] measured in degrees\n //! Latitude: Coord[0] measured in degrees\n
//! Longitude: Coord[1] measured in degrees\n //! Longitude: Coord[1] measured in degrees\n
//! Altitude: Coord[2] measured in Km.\n //! Altitude: Coord[2] measured in Km.\n
gVector getSubPoint(gTime ai_Time); gVector getSubPoint()
{
return m_SubPoint;
}
int getErrorCode() int getErrorCode()
{ {
return satrec.error; return satrec.error;
} }
private: private:
// Operation: computeSubPoint
//! @brief Compute the Geographic satellite subpoint Vector
//! @details To implement this operation, next references has been u
sed:
//! Orbital Coordinate Systems, Part III By Dr. T.S. Kelso
//! http://www.celestrak.com/columns/v02n03/
//! @param[in] ai_Time Epoch time for subpoint calculation. (of cour
se, this must be
//! refactorized to be computed in the setEpoch function)
//! @return gVector Geographical coordinates\n
//! Latitude: Coord[0] measured in degrees\n
//! Longitude: Coord[1] measured in degrees\n
//! Altitude: Coord[2] measured in Km.\n
gVector computeSubPoint( gTime ai_time);
// sgp4 proceses variables // sgp4 proceses variables
double tumin, mu, radiusearthkm, xke, j2, j3, j4, j3oj2; double tumin, mu, radiusearthkm, xke, j2, j3, j4, j3oj2;
elsetrec satrec; elsetrec satrec;
std::string m_SatName; std::string m_SatName;
gVector m_Position; gVector m_Position;
gVector m_Vel; gVector m_Vel;
gVector m_SubPoint;
}; };
#endif // _GSATTEME_HPP_ #endif // _GSATTEME_HPP_
 End of changes. 10 change blocks. 
10 lines changed or deleted 36 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/