This commit is contained in:
Timur A. Fatkhullin
2025-07-05 22:37:22 +03:00
parent c9e9115ebc
commit 2b3d8a766b
3 changed files with 42 additions and 33 deletions

View File

@@ -61,9 +61,9 @@ public:
double wavelength = 0.55; // observed wavelength in mkm
MccAngleLAT lat = "00:00:00"_dms; // site latitude
MccAngleLON lon = "00:00:00"_dms; // site longitude
double elev = 0.0; // site elevation (in meters)
MccAngle lat = "00:00:00"_dms; // site latitude
MccAngle lon = "00:00:00"_dms; // site longitude
double elev = 0.0; // site elevation (in meters)
mcc::astrom::iers::MccLeapSeconds _leapSeconds{};
mcc::astrom::iers::MccIersBulletinA _bulletinA{};
@@ -104,7 +104,7 @@ public:
engine_state_t getState() const
{
std::scoped_lock lock{_stateMutex};
std::lock_guard lock{_stateMutex};
return _currentState;
}
@@ -164,7 +164,7 @@ public:
using real_days_t = std::chrono::duration<double, std::ratio<86400>>;
double ut1, tt = juldate.mjd;
double ut1 = juldate.mjd, tt = juldate.mjd;
auto dut1 = _currentState._bulletinA.DUT1(juldate.mjd);
@@ -234,6 +234,9 @@ public:
if (!pol_pos.has_value()) {
return ERROR_BULLETINA_OUT_OF_RANGE;
}
const auto arcsec2rad = std::numbers::pi / 180 / 3600;
pol_pos->x *= arcsec2rad;
pol_pos->y *= arcsec2rad;
double oaz, ozd, oha, odec, ora;
@@ -298,7 +301,7 @@ public:
protected:
engine_state_t _currentState{};
std::mutex _stateMutex;
mutable std::mutex _stateMutex;
};
} // namespace mcc::astrom::erfa