mirror of
https://github.com/silenty4ng/k5sat
synced 2025-01-15 06:52:08 +00:00
update
This commit is contained in:
parent
c73230deb4
commit
01a6f148ba
1 changed files with 2 additions and 2 deletions
4
app.py
4
app.py
|
@ -52,12 +52,12 @@ def doppler():
|
|||
satellite = ephem.readtle(sat, sat_line_1, sat_line_2)
|
||||
# print(str(pass_time) + " " + str(local2utc(pass_time)))
|
||||
shift_array = []
|
||||
while pass_time < departure_time + timedelta(seconds=2):
|
||||
while pass_time < departure_time + timedelta(seconds=1):
|
||||
AZ, EI, SHITF_UP, SHIFT_DOWN, DIS = head.CAL_DATA(
|
||||
satellite, sat_line_1, sat_line_2, float(lng), float(lat),
|
||||
float(alt), local2utc(pass_time),
|
||||
float(tx) * 1000000,
|
||||
float(rx) * 1000000)
|
||||
shift_array.append([SHITF_UP, SHIFT_DOWN])
|
||||
pass_time = pass_time + timedelta(seconds=2)
|
||||
pass_time = pass_time + timedelta(seconds=1)
|
||||
return jsonify({'code': 200, 'shift_array': shift_array})
|
||||
|
|
Loading…
Reference in a new issue