Skip to content

Latest commit

 

History

History
96 lines (70 loc) · 6.2 KB

README.md

File metadata and controls

96 lines (70 loc) · 6.2 KB

Jackalope's TLE Simulation Program

Seth Miers

Jackalope is a capstone team I'm working with for my senior design project. We are developing and building a base station for the polar cube satellites. Most orbits can be described in the form of a Two-Line Element (TLE) using this TLE and the location that we want to sample data from it is possible to calculate the azimuth and elevation that the satellite dish needs to be pointing.

The program also features an acurate sun in both windows. The sun has the same azimuth and elevation to the user as it would in real life.

How to run

make && ./jackalope

If you just want to see the program (and let me show off) then follow these steps:

  • Click 'set time to current' after starting the program
  • Click 'start simulation'
  • Click in the multiplier box then set the multiplier to 100
  • Profit

I only used external libraries that were packaged with my operating system (Arch Linux). So it should work for any linux distro given that you have g++ installed.

Notes

The time is in UTC+0. The current location is in Boulder, Colorado which is UTC-7. Just be careful when thinking about time.

I was going to finish up my other obj file reader from a month ago, but after working on it and seeing my deadline approach fast, I decided just to use the library provided in class.

Glui is an old (2006) library that I had to modify to make work with 'normal' opengl coding.

If you can't get the program to run then here are 2 youtube videos showing the program in operation: Arch Ubuntu

Neat stuff

  • The sun is in the correct spot associated with the time! Meaning if it's 19:00 utc (12:00 colorado time) then the sun will be directly overhead!
  • The colors change based on where the sun is. In the night time the color that the light emits is more bluish, in the daytime it's more reddish. The fog also changes color so it doens't just look like a flat color all the time
  • Since the sun is in the correct spot you can see the correct day/night cycles on both screens for the given time
  • The view on the right represents if you attached a camera to the satellite
  • The view on the left can be rotated by clicking and dragging with the mouse
  • The dish is currently set to track the international space station (it's fun to compare this with an online site to see that the valus are correct)
  • Does anyone actually read this stuff?
  • Each GUI element is done in just opengl libraries (none others are needed)
  • The GUI was converted from an old set of code called GLUI. It no longer works or is supported because Qt has become popular. However I thought it would be fun to convert it to work with the current OpenGL to see how it functions and to see if I could integrate it with 'standard' opengl/c++ code. (the original GLUI was not 'standard')
  • The GUI elements have infinite customability. (Tabing to the next box is on my list of todos as well as being able to type in a negative number into the integer boxes)
  • The image used for each GUI element is in a simple conifg file (which can be easily modified)
  • The ground plane in the right window is the actual location of where my dish is. (very low quality... but it works)
  • The application can run with less than 500Mb of ram! (yes this was tested in the future I'll need this application to not be very resource intensive but still look good)
  • The dish was extracted from an old game called mechwarrior. I took this into blender and made all the modifications so that it would be an apropriate OBJ.
  • Modular interface that can be used for other systems (various of the cpp files are going to be used in my capstone project)
  • All the materials are set to be fairly acurate (the dish is metal the ground is rock)
  • I thought it was cool that I have 3 separate windows to render stuff in!
  • A opengl colision detection algorithm was used but was later commented out because it used a sphere to estimate the object. (wasn't good enough)

Current controlls

The program features 3 windows that can be manipulated.

up/down arrows will change the field of view of the satellite in the left-hand pane.

Dragging the mouse across one of the top two screens will pan the camera around the satellite dish.

Pressing 'esc' in one of the top windows will exit the program.

Screenshots!

Initial program startup (dark side of the earth) Startup

Program tracking the newest (2014) TLE of the ISS ISS tracking

Elevation of the dish finally increasing as the ISS passes over Colorado Elevation increasing

A more exciting elevation of the dish as the ISS passes over Colorado Elevation increasing

Decided to make sure manual control still works Manual control

To-do

  • Fix comments and A more exciting elevation of the dish as the ISS passes over Colorado
  • Clean up unused variables
  • Cleanly separate each header file and make sure it's properly associated with it's cpp/c file
  • Implement a function to automatically pull values from a TLE insetad of having to manually put them in
  • More beautiful graphics (hey, I like it to look nice)
  • Add a skybox with dynamic textures and lighting
  • 'Tell me which satellite I'm pointing at' function
  • Sweep to location given 2 points (don't jerk and hop)
  • Reimplement plan13 to better support milli/nanoseconds
  • HUD to show the line of horizon for the satellite
  • Tail for the satellite to show where it's been
  • Create a standard for all variable and function names (I know I'm sorry)
  • Tab to next GUI element
  • Be able to type in negative numbers
  • etc.