-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfind_cycleslip.py
30 lines (24 loc) · 909 Bytes
/
find_cycleslip.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!usr/bin/env pyhton
# coding:utf-8
def GPS_cycleslip():
for i in range(1, 100):
for j in range(1, 100):
for k in range(1, 100):
condition_1 = abs(-6 * i + 1 * j + 7 * k) <= 1
condition_2 = abs(3 * i + 0 * j - 4 * k) <= 1
condition_3 = abs(4 * i + -8 * j + 3 * k) <= 1
if condition_1 and condition_2 and condition_3:
print(i, j, k)
def BDS_cycleslip():
for i in range(1, 100):
for j in range(1, 100):
for k in range(1, 100):
condition_1 = abs(-4 * i + 1 * j + 4 * k) <= 1
condition_2 = abs(-3 * i + 6 * j - 2 * k) <= 1
condition_3 = abs(4 * i - 2 * j - 3 * k) <= 1
if condition_1 and condition_2 and condition_3:
print(i, j, k)
print('BDS:')
BDS_cycleslip()
print('GPS')
GPS_cycleslip()