...
This commit is contained in:
@@ -9,7 +9,6 @@
|
||||
#include <chrono>
|
||||
|
||||
#include "mcc_angle.h"
|
||||
#include "mcc_defaults.h"
|
||||
#include "mcc_generics.h"
|
||||
|
||||
namespace mcc
|
||||
@@ -58,6 +57,8 @@ struct MccSimpleMovingModelParams {
|
||||
double trackSpeedX{};
|
||||
double trackSpeedY{};
|
||||
|
||||
// time shift into future to compute target position in future (UT1-scale time duration)
|
||||
std::chrono::duration<double> timeShiftToTargetPoint{10.0};
|
||||
|
||||
// ******* guiding mode *******
|
||||
|
||||
@@ -141,22 +142,5 @@ typename PZoneContT::error_t mcc_find_closest_pzone(PZoneContT* pz_cont,
|
||||
return err;
|
||||
}
|
||||
|
||||
auto mcc_compute_target_point(mcc_ccte_c auto const& ccte,
|
||||
mcc_telemetry_c auto const& tdata,
|
||||
traits::mcc_time_duration_c auto const& time_dist,
|
||||
mcc_celestial_point_c auto* point)
|
||||
{
|
||||
auto dt = std::chrono::duration<double>{tdata.HA} + time_dist * mcc_sideral_to_UT1_ratio; // hour seconds
|
||||
|
||||
// point in +time_dist future
|
||||
MccCelestialPoint pt{.pair_kind = point->pair_kind,
|
||||
.time_point = point->time_point + time_dist,
|
||||
.X = dt.count() * std::numbers::pi / 3600.0 / 15.0,
|
||||
.Y = tdata.DEC_APP};
|
||||
|
||||
point->time_point = pt.time_point;
|
||||
|
||||
return ccte.transformCoordinates(std::move(pt), point);
|
||||
}
|
||||
|
||||
} // namespace mcc
|
||||
|
||||
Reference in New Issue
Block a user