fix axis switch limit pzone calculations
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user