This commit is contained in:
Silent YANG 2024-02-04 22:37:23 +08:00
parent c9299cdba4
commit 759540338d

2
app.py
View file

@ -50,7 +50,7 @@ def doppler():
departure_time = datetime.strptime(request.json.get('departure_time', ''), departure_time = datetime.strptime(request.json.get('departure_time', ''),
format) format)
satellite = ephem.readtle(sat, sat_line_1, sat_line_2) satellite = ephem.readtle(sat, sat_line_1, sat_line_2)
print(pass_time + " " + local2utc(pass_time)) print(pass_time + " " + str(local2utc(pass_time)))
shift_array = [] shift_array = []
while pass_time < departure_time: while pass_time < departure_time:
AZ, EI, SHITF_UP, SHIFT_DOWN, DIS = head.CAL_DATA( AZ, EI, SHITF_UP, SHIFT_DOWN, DIS = head.CAL_DATA(