...
This commit is contained in:
@@ -212,19 +212,23 @@ public:
|
||||
|
||||
|
||||
auto target_point = [&, this](MccCelestialPoint* point) -> std::error_code {
|
||||
auto dt = std::chrono::duration<double>{tdata.HA} +
|
||||
_currentParams.timeShiftToTargetPoint * mcc_sideral_to_UT1_ratio; // hour seconds
|
||||
double dha =
|
||||
std::chrono::duration<double>(_currentParams.timeShiftToTargetPoint * mcc_sideral_to_UT1_ratio)
|
||||
.count(); // sideral hour seconds
|
||||
dha *= std::numbers::pi / 43200.0; // radians
|
||||
|
||||
auto target_ha = tdata.target.HA + dha;
|
||||
|
||||
// auto dt = std::chrono::duration<double>{tdata.HA} +
|
||||
// _currentParams.timeShiftToTargetPoint * mcc_sideral_to_UT1_ratio; // hour seconds
|
||||
|
||||
auto tp_dt = std::chrono::duration_cast<typename decltype(tdata.time_point)::duration>(
|
||||
_currentParams.timeShiftToTargetPoint);
|
||||
|
||||
// point in +time_dist future
|
||||
MccCelestialPoint pt{.pair_kind = MccCoordPairKind::COORDS_KIND_HADEC_APP,
|
||||
// .X = MccAngle(dt.count() * std::numbers::pi / 3600.0
|
||||
// / 15.0).normalize<MccAngle::NORM_KIND_0_360>(),
|
||||
.X = MccAngle(dt.count() * std::numbers::pi / 3600.0 / 15.0)
|
||||
.normalize<MccAngle::NORM_KIND_180_180>(),
|
||||
.Y = tdata.DEC_APP};
|
||||
.X = MccAngle(target_ha).normalize<MccAngle::NORM_KIND_180_180>(),
|
||||
.Y = tdata.target.DEC_APP};
|
||||
mcc_tp2tp(tdata.time_point + tp_dt, pt.time_point);
|
||||
|
||||
point->time_point = pt.time_point;
|
||||
|
||||
Reference in New Issue
Block a user