fix axis switch limit pzone calculations

This commit is contained in:
2025-11-10 16:06:44 +03:00
parent 15cf04f164
commit 90acf1ee8c
2 changed files with 10 additions and 6 deletions

View File

@@ -639,7 +639,8 @@ public:
if constexpr (mcc_eqt_hrz_coord_c<InputT>) {
// assume here .X and are hardware encoder coordinate of corresponding axis
*result = (coords.X < _maxLimit) && (coords.X > _minLimit);
*result = (coords.X > _maxLimit) || (coords.X < _minLimit);
// *result = (coords.X < _maxLimit) && (coords.X > _minLimit);
} else { // mcc_celestial_point_c
if (coords.pair_kind == MccCoordPairKind::COORDS_KIND_XY) { // hardware
*result = (coords.X < _maxLimit) && (coords.X > _minLimit);
@@ -651,7 +652,8 @@ public:
return ret;
}
*result = (pt.X < _maxLimit) && (pt.X > _minLimit);
*result = (pt.X > _maxLimit) || (pt.X < _minLimit);
// *result = (pt.X < _maxLimit) && (pt.X > _minLimit);
}
}