#include <Orbit.h>
Inheritance diagram for Orbit:

Public Methods | |
| Orbit (double asclon = 0., double alt = 600., double inc = 28.5, double phs = 0., double apitch = 0., double ayaw = 0., double aroll = 0.) | |
| default constructor. More... | |
| double | get_phase (double time) const |
| phase of the orbit as a proportion of a single period. | |
| std::pair<double,double> | coords (double time) const |
| returns position as a pair using specified time. More... | |
| virtual double | latitude (double time) const |
| latitude as a function of time (in minutes). More... | |
| virtual double | longitude (double time) const |
| longitude as a function of time, taking into account the starting longitude and the eastward rotation of the earth. More... | |
| virtual double | pitch (double time) const |
| pitch of the spacecraft (rotation around E-W axis) zenith pointing is pitch == 0. More... | |
| virtual double | yaw (double time) const |
| yaw of the spacecraft (rotation around zenith) square to E-W and N-S axis represents yaw == 0. More... | |
| virtual double | roll (double time) const |
| roll of the spacecraft (rotation around N-S axis) zenith pointing is roll == 0. More... | |
| virtual double | phase (double time) const |
| phase of the orbit at a given time. More... | |
| void | inclination ( double inc ) |
| set the inclination of the orbit. More... | |
| void | ascendingLon ( double asc ) |
| set the longitude of the ascending node. More... | |
| void | startphase ( double phi ) |
| set the phase of the orbit (in radians). More... | |
| double | startphase () const |
| inlined access methods. More... | |
| double | period () const |
| double | inclination () const |
| double | altitude () const |
| double | ascendingLon () const |
Protected Methods | |
| virtual void | setlatitude ( double ) |
| virtual void | setlongitude ( double ) |
| virtual void | setpitch ( double ) |
| virtual void | setyaw ( double ) |
| virtual void | setroll ( double ) |
Private Attributes | |
| double | m_ascendingLon |
| double | m_inclination |
| double | m_altitude |
| double | m_period |
| double | m_sini |
| double | m_cosi |
| double | m_startphase |
Friends | |
| class | GPS |
Constructor: The three arguments are 1. Longitude of the ascending node (where the orbit crosses the equator, moving northward) in degrees 2. Altitude in kilometers. Defaults to 600. 3. Orbital inclination in degrees. Defaults to 28.5.
Member functions: latitude(time) and longitude(time) give the position of the satellite (in degrees) when "time" minutes have elapsed since the ascending node passage. longitude is between 0 and 360. coords(time) returns the latitude and longitude as a pair<double,double>. period() returns the period of the orbit (in minutes). inclination(), altitude(), and ascendingLon() return the parameters used in the constructor, in case you forget.
There is no need for an explicit destructor, copy constructor, or assignment operator.
Definition at line 36 of file Orbit.h.
|
|
default constructor.
|
|
|
|
|
|
|
|
|
set the longitude of the ascending node.
Definition at line 31 of file Orbit.cxx. Referenced by GPS::ascendingLon(), and GPS::synch(). |
|
|
returns position as a pair using specified time.
|
|
|
phase of the orbit as a proportion of a single period.
|
|
|
Definition at line 114 of file Orbit.h. Referenced by Orbit(). |
|
|
set the inclination of the orbit.
|
|
|
latitude as a function of time (in minutes).
|
|
|
longitude as a function of time, taking into account the starting longitude and the eastward rotation of the earth.
|
|
|
Definition at line 112 of file Orbit.h. Referenced by phase(), and GPS::phase(). |
|
|
phase of the orbit at a given time.
Definition at line 70 of file Orbit.cxx. Referenced by GPS::phase(), and GPS::state(). |
|
|
pitch of the spacecraft (rotation around E-W axis) zenith pointing is pitch == 0.
Definition at line 58 of file Orbit.cxx. Referenced by GPS::pitch(). |
|
|
roll of the spacecraft (rotation around N-S axis) zenith pointing is roll == 0.
Definition at line 66 of file Orbit.cxx. Referenced by GPS::roll(). |
|
|
Reimplemented in StaticOrbit. Definition at line 93 of file Orbit.h. Referenced by GPS::lat(), and GPS::setState(). |
|
|
Reimplemented in StaticOrbit. Definition at line 94 of file Orbit.h. Referenced by GPS::lon(), and GPS::setState(). |
|
|
Reimplemented in StaticOrbit. Definition at line 95 of file Orbit.h. Referenced by GPS::pitch(), and GPS::setState(). |
|
|
Reimplemented in StaticOrbit. Definition at line 97 of file Orbit.h. Referenced by GPS::roll(), and GPS::setState(). |
|
|
Reimplemented in StaticOrbit. Definition at line 96 of file Orbit.h. Referenced by GPS::setState(), and GPS::yaw(). |
|
|
inlined access methods.
|
|
|
set the phase of the orbit (in radians).
Definition at line 36 of file Orbit.cxx. Referenced by GPS::phase(). |
|
|
yaw of the spacecraft (rotation around zenith) square to E-W and N-S axis represents yaw == 0.
Definition at line 62 of file Orbit.cxx. Referenced by GPS::yaw(). |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1.2.3 written by Dimitri van Heesch,
© 1997-2000