Commit 4fe02df0 authored by Jasem Mutlaq's avatar Jasem Mutlaq

Respect astrometry options when generating args in load and slew

parent e7175e4e
......@@ -2409,7 +2409,8 @@ QStringList Align::getSolverOptionsFromFITS(const QString &filename)
dec = telescopeCoord.dec0().Degrees();
}
solver_args << "-3" << QString::number(ra*15.0) << "-4" << QString::number(dec) << "-5 15";
if (Options::astrometryUsePosition())
solver_args << "-3" << QString::number(ra*15.0) << "-4" << QString::number(dec) << "-5 15";
if (fits_read_key(fptr, TINT, "FOCALLEN", &fits_focal_length, comment, &status ))
{
......@@ -2455,7 +2456,8 @@ QStringList Align::getSolverOptionsFromFITS(const QString &filename)
fov_low = QString::number(fov_lower);
fov_high = QString::number(fov_upper);
solver_args << "-L" << fov_low << "-H" << fov_high << "-u" << "aw";
if (Options::astrometryUseImageScale())
solver_args << "-L" << fov_low << "-H" << fov_high << "-u" << "aw";
return solver_args;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment