You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
print ("Image could not be solved after 5 attempts. Exiting program.")
86
86
exit()
87
87
solveTimeFinish=time.time()
88
-
print (f"Image solved in {(solveTimeFinish-solveTimeStart):.2f} seconds. Coordinates are RA {resultRA}, DEC {resultDEC}")
88
+
print (f"Image solved in {(solveTimeFinish-solveTimeStart):.2f} seconds. Coordinates are RA {Angle(resultRA, unit=u.deg).to_string(unit=u.hour)}, DEC {Angle(resultDEC, unit=u.deg).to_string(unit=u.degree)}")
print("Image could not be solved. Attempting another capture with increased exposure time (Max is 10 second exposure)")
34
+
ifexposure<10:
35
+
exposure+=1
36
+
elifexposure-original_exposure>=5:
37
+
print ("Image could not be solved. Exiting.")
38
+
solveTimeFinish=time.time()
39
+
print (f"Image solved in {(solveTimeFinish-solveTimeStart):.2f} seconds.")
40
+
#print (f"Image solved. Coordinates are RA {Angle(resultRA, unit=u.deg).to_string(unit=u.hour)}, DEC {Angle(resultDEC, unit=u.deg).to_string(unit=u.degree)}")
#Re-connect telescope mount to INDI before disconnecting from the INDI server
57
+
indi.connectScope(indiclient, telescope)
58
+
return
59
+
60
+
parser=argparse.ArgumentParser(usage='%(prog)s [mylat] [mylong] [myelev] [options]', description='OpenAstroTracker AutoPA: This tool is used to automatically rotate the mount, capture images,\
61
+
plate solve, and calculate the polar alignment error of the OAT. Serial commands are automatically issued to the OAT to adjust the motorized altitude/azimuth axis to correct this error.')
62
+
parser.add_argument("mylat", help="your latitude in degrees", type=float)
63
+
parser.add_argument("mylong", help="your longitude in degrees", type=float)
64
+
parser.add_argument("myelev", help="your elevation in metres", type=float)
65
+
parser.add_argument("--serialport", help="serial port address for the OAT (default is /dev/ttyACM0)", type=str)
66
+
parser.add_argument("--targetRA", help="initial starting RA in degrees (default is 0)", type=float)
67
+
parser.add_argument("--targetDEC", help="initial starting DEC in degrees (default is 85)", type=float)
68
+
parser.add_argument("--exposure", help="exposure time in seconds (default is 8 seconds)", type=float)
69
+
parser.add_argument("--telescope", help="name of INDI telescope to control movement (default is Ekos \"Telescope Simulator\")", type=str)
70
+
parser.add_argument("--ccd", help="name of INDI CCD for capturing exposures (default is Ekos \"CCD Simulator\")", type=str)
71
+
parser.add_argument("--radius", help="field radius of plate solving", type=float)
72
+
parser.add_argument("--pixelSize", help="CCD pixel size in micrometres. Used to decrease plate solving time.", type=float)
73
+
parser.add_argument("--pixelX", help="Quantity of pixels in the X direction.", type=float)
74
+
parser.add_argument("--pixelY", help="Quantity of pixels in the Y direction.", type=float)
75
+
parser.add_argument("--focalLength", help="Lens focal length in millimetres. Used to decrease plate solving time.", type=float)
76
+
parser.add_argument("--nomove", help="Run AutoPA sequence but do not move the steppers.", action="store_true")
0 commit comments