...
This commit is contained in:
@@ -589,11 +589,7 @@ public:
|
||||
return MccAltLimitPZErrorCode::ERROR_OK;
|
||||
}
|
||||
|
||||
if (std::same_as<decltype(err), error_t>) {
|
||||
return err;
|
||||
} else {
|
||||
return MccAltLimitPZErrorCode::ERROR_COORD_TRANSFROM;
|
||||
}
|
||||
return mcc_deduce_error_code(err, MccAltLimitPZErrorCode::ERROR_COORD_TRANSFROM);
|
||||
};
|
||||
|
||||
_transformCoordinatesEqtHrzCoords = [controls](MccCelestialPoint from_pt, MccEqtHrzCoords* to_pt) -> error_t {
|
||||
@@ -617,7 +613,7 @@ public:
|
||||
MccPCMResult inv_res;
|
||||
auto err = controls->computeInversePCM(std::move(from_pt), &inv_res, to_pt);
|
||||
if (err) {
|
||||
return mcc_deduce_error<error_t>(err, MccAltLimitPZErrorCode::ERROR_PCM_COMP);
|
||||
return mcc_deduce_error_code(err, MccAltLimitPZErrorCode::ERROR_PCM_COMP);
|
||||
}
|
||||
|
||||
return MccAltLimitPZErrorCode::ERROR_OK;
|
||||
|
||||
Reference in New Issue
Block a user