Skip to content

ucsbdeepspace/Solar_Tracker

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Source code of a solar tracker developed in Visual Studio 2012, using a Mightex CCD USB camera, openCV library and JPL ephemeris.

#Purpose and Tools

The purpose of this piece of software is to provide information to a telescope's motors about which way to aim the telescope. Ephemeris file used has the precise coordinates of the sun in the astronomical coordinates. If the camera and a telescope is aligned so they're both on the same beam axis, the centroid location of the sun in a captured frame corresponds to the real location of the sun in the space, hence we can adjust the telescope to look at a specific point in the space. A mightex USB camera is used alongside a cctv lens. openCV image processing library is used to centroid the sun. SofaJPL library is used to extraxt information from the binary ephemeris file provided by JPL. Developed in Microsoft Visual Studio.

#Libraries and Dependencies:

#Source Files:

Solar_Tracker.cpp:

+ main function is located in this file.

+ Settings are loaded from the Settings.txt

+ FrameCallBack is where the frame capture and image processing takes place.

+ outputs a CSV file of the timestamp, apparent RA/DEC position of the sun at the 
time of the frame capture, and the centroid location of the sun in the image frame in pixel numbers.

eph_calc.cpp:

+ has the sun_equatorial function that calculates the RA/DEC position of the sun.

+ loads the binary JPL ephemeris ( "binp2000.406" in this case )

utility.cpp:

+ get_date function for the timestamp, get_cpu_time for performance checks.

ini_reader.cpp:

+ search functions to load the settings file.

Releases

No releases published

Packages

No packages published

Languages

  • C++ 73.1%
  • C 26.3%
  • Objective-C 0.6%