...
This commit is contained in:
@@ -289,7 +289,8 @@ public:
|
||||
coord_t& dec_app,
|
||||
coord_t& ha,
|
||||
coord_t& az,
|
||||
coord_t& alt)
|
||||
coord_t& alt,
|
||||
eo_t& eo)
|
||||
{
|
||||
std::lock_guard lock{_stateMutex};
|
||||
|
||||
@@ -307,12 +308,12 @@ public:
|
||||
pol_pos->x *= arcsec2rad;
|
||||
pol_pos->y *= arcsec2rad;
|
||||
|
||||
double oaz, ozd, oha, odec, ora, eo;
|
||||
double oaz, ozd, oha, odec, ora, eo_;
|
||||
|
||||
int ret = eraAtco13(ra, dec, 0.0, 0.0, 0.0, 0.0, juldate.MJD0, juldate.mjd, dut1->count(), _currentState.lon,
|
||||
_currentState.lat, _currentState.elev, pol_pos->x, pol_pos->y, _currentState.meteo.pressure,
|
||||
_currentState.meteo.temperature, _currentState.meteo.humidity, _currentState.wavelength,
|
||||
&oaz, &ozd, &oha, &odec, &ora, &eo);
|
||||
&oaz, &ozd, &oha, &odec, &ora, &eo_);
|
||||
|
||||
if (ret == 1) {
|
||||
return ERROR_DUBIOUS_YEAR;
|
||||
@@ -325,6 +326,7 @@ public:
|
||||
az = oaz;
|
||||
alt = std::numbers::pi / 2.0 - ozd;
|
||||
ha = oha;
|
||||
eo = eo_;
|
||||
|
||||
return ERROR_OK;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user