...
This commit is contained in:
@@ -210,20 +210,20 @@ public:
|
||||
// in some intermediate buffer
|
||||
error_t setPointingTarget(mcc_celestial_point_c auto pt)
|
||||
{
|
||||
mcc_copy_celestial_point(std::move(pt), &_inputTargetCoordiniates);
|
||||
mcc_copy_celestial_point(std::move(pt), &_enteredTargetCoordiniates);
|
||||
|
||||
std::string xstr;
|
||||
if (_inputTargetCoordiniates.pair_kind == MccCoordPairKind::COORDS_KIND_RADEC_ICRS ||
|
||||
_inputTargetCoordiniates.pair_kind == MccCoordPairKind::COORDS_KIND_RADEC_APP ||
|
||||
_inputTargetCoordiniates.pair_kind == MccCoordPairKind::COORDS_KIND_HADEC_APP) {
|
||||
xstr = MccAngle(_inputTargetCoordiniates.X).sexagesimal(true);
|
||||
if (_enteredTargetCoordiniates.pair_kind == MccCoordPairKind::COORDS_KIND_RADEC_ICRS ||
|
||||
_enteredTargetCoordiniates.pair_kind == MccCoordPairKind::COORDS_KIND_RADEC_APP ||
|
||||
_enteredTargetCoordiniates.pair_kind == MccCoordPairKind::COORDS_KIND_HADEC_APP) {
|
||||
xstr = MccAngle(_enteredTargetCoordiniates.X).sexagesimal(true);
|
||||
} else {
|
||||
MccAngle(_inputTargetCoordiniates.X).sexagesimal();
|
||||
MccAngle(_enteredTargetCoordiniates.X).sexagesimal();
|
||||
}
|
||||
|
||||
logInfo(std::format("Set input target coordinates to: {} {} {}", xstr,
|
||||
MccAngle(_inputTargetCoordiniates.Y).sexagesimal(),
|
||||
MccCoordPairKindStr<_inputTargetCoordiniates.pair_kind>));
|
||||
logInfo(std::format("Set entered target coordinates to: {} {} {}", xstr,
|
||||
MccAngle(_enteredTargetCoordiniates.Y).sexagesimal(),
|
||||
MccCoordPairKindStr<_enteredTargetCoordiniates.pair_kind>));
|
||||
|
||||
return MccGenericMountErrorCode::ERROR_OK;
|
||||
}
|
||||
@@ -231,7 +231,7 @@ public:
|
||||
// re-implements SlewModelT::slewToTarget to fetch input target coordinates from intermediate buffer
|
||||
error_t slewToTarget(bool slew_and_stop = false)
|
||||
{
|
||||
auto err = TelemetryT::setPointingTarget(_inputTargetCoordiniates);
|
||||
auto err = TelemetryT::setPointingTarget(_enteredTargetCoordiniates);
|
||||
if (err) {
|
||||
return mcc_deduce_error_code(err, MccGenericMountErrorCode::ERROR_SET_TARGET);
|
||||
}
|
||||
@@ -241,7 +241,7 @@ public:
|
||||
}
|
||||
|
||||
protected:
|
||||
MccCelestialPoint _inputTargetCoordiniates;
|
||||
MccCelestialPoint _enteredTargetCoordiniates;
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -61,6 +61,9 @@ struct MccSimpleMovingModelParams {
|
||||
|
||||
// time shift into future to compute target position in future (UT1-scale time duration)
|
||||
std::chrono::milliseconds timeShiftToTargetPoint{10000};
|
||||
// maximal target-to-mount difference for tracking process (in arcsecs)
|
||||
// it it is greater then the current mount coordinates are used as target one
|
||||
double trackingMaxCoordDiff{20.0};
|
||||
|
||||
// ******* guiding mode *******
|
||||
|
||||
|
||||
Reference in New Issue
Block a user