Skip to content

Commit

Permalink
Renamed 'lat_alt_to_parallax' to avoid a conflict with a similar func…
Browse files Browse the repository at this point in the history
…tion in lunar/mpc_code.cpp.
  • Loading branch information
Bill-Gray committed Aug 2, 2018
1 parent 74246f2 commit 14332e9
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
3 changes: 2 additions & 1 deletion obs_tes2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,8 @@ int main( const int argc, const char **argv)

/* Figure out where the observer _really_ is, in Cartesian */
/* coordinates of date: */
lat_alt_to_parallax( lat * PI / 180., ht_in_meters, &rho_cos_phi, &rho_sin_phi);
earth_lat_alt_to_parallax( lat * PI / 180., ht_in_meters, &rho_cos_phi,
&rho_sin_phi);
observer_cartesian_coords( jd,
lon * PI / 180., rho_cos_phi, rho_sin_phi, observer_loc);
observer_cartesian_coords( jd + TIME_EPSILON,
Expand Down
3 changes: 2 additions & 1 deletion obs_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,8 @@ int main( const int argc, const char **argv)

if( err_val)
printf( "WARNING: TLE parsing error %d\n", err_val);
lat_alt_to_parallax( lat, ht_in_meters, &rho_cos_phi, &rho_sin_phi);
earth_lat_alt_to_parallax( lat, ht_in_meters, &rho_cos_phi,
&rho_sin_phi);
observer_cartesian_coords( jd, lon, rho_cos_phi, rho_sin_phi,
observer_loc);
if( is_deep && (ephem == 1 || ephem == 2))
Expand Down
3 changes: 2 additions & 1 deletion observe.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ void DLL_FUNC observer_cartesian_coords( const double jd, const double lon,
*vect++ = rho_sin_phi * EARTH_MAJOR_AXIS / 1000.;
}

void DLL_FUNC lat_alt_to_parallax( const double lat, const double ht_in_meters,
void DLL_FUNC earth_lat_alt_to_parallax( const double lat,
const double ht_in_meters,
double *rho_cos_phi, double *rho_sin_phi)
{
const double u = atan( sin( lat) * EARTH_AXIS_RATIO / cos( lat));
Expand Down
3 changes: 2 additions & 1 deletion observe.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
extern "C" {
#endif

void DLL_FUNC lat_alt_to_parallax( const double lat, const double ht_in_meters,
void DLL_FUNC earth_lat_alt_to_parallax( const double lat,
const double ht_in_meters,
double *rho_cos_phi, double *rho_sin_phi);
void DLL_FUNC observer_cartesian_coords( const double jd, const double lon,
const double rho_cos_phi, const double rho_sin_phi,
Expand Down

0 comments on commit 14332e9

Please sign in to comment.