Skip to content

Commit

Permalink
tle update, geo and satellite view bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
tomvdb committed Feb 21, 2022
1 parent 44a8e43 commit 5de9b6b
Show file tree
Hide file tree
Showing 3 changed files with 336 additions and 331 deletions.
4 changes: 2 additions & 2 deletions app/routes_satellites.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from datetime import datetime
from skyfield.api import load, wgs84, EarthSatellite, Distance
from app.forms import CreateSatelliteForm

from app import config
from app.satellite_functions import calc_future_passes, get_satellite_record


Expand Down Expand Up @@ -128,7 +128,7 @@ def view_satellite(satellite_id):
return redirect(url_for('view_satellites'))

# get default observer
future_passes = calc_future_passes(satellite.satellite_tle0, satellite.satellite_tle1, satellite.satellite_tle2, float(config['qty_latitude']), float(config['qty_longitude']), 10, 5)
future_passes = calc_future_passes(satellite.satellite_tle0, satellite.satellite_tle1, satellite.satellite_tle2, float(config.config_data['qth_latitude']), float(config.config_data['qth_longitude']), 10, 5)

print(future_passes)

Expand Down
Loading

0 comments on commit 5de9b6b

Please sign in to comment.