This commit is contained in:
Silent YANG 2024-02-05 00:19:34 +08:00
parent aa6cba40ea
commit e271c93351

2
app.py
View file

@ -52,7 +52,7 @@ def doppler():
satellite = ephem.readtle(sat, sat_line_1, sat_line_2) satellite = ephem.readtle(sat, sat_line_1, sat_line_2)
print(str(pass_time) + " " + str(local2utc(pass_time))) print(str(pass_time) + " " + str(local2utc(pass_time)))
shift_array = [] shift_array = []
while pass_time < departure_time: while pass_time < departure_time + timedelta(seconds=2):
AZ, EI, SHITF_UP, SHIFT_DOWN, DIS = head.CAL_DATA( AZ, EI, SHITF_UP, SHIFT_DOWN, DIS = head.CAL_DATA(
satellite, sat_line_1, sat_line_2, float(lng), float(lat), satellite, sat_line_1, sat_line_2, float(lng), float(lat),
float(alt), local2utc(pass_time), float(alt), local2utc(pass_time),