various fixing
This commit is contained in:
parent
715d0a3c66
commit
44b277f0ad
@ -246,11 +246,11 @@ def nic_v2(msg, nic_a, nic_b, nic_c):
|
|||||||
nic_df = pd.read_csv('/home/josmilrom/Libraries/pyModeS/pyModeS/decoder/adsb_ua_parameters/NIC_v2.csv', sep=',')
|
nic_df = pd.read_csv('/home/josmilrom/Libraries/pyModeS/pyModeS/decoder/adsb_ua_parameters/NIC_v2.csv', sep=',')
|
||||||
|
|
||||||
if tc in range(5,9):
|
if tc in range(5,9):
|
||||||
nic_df_extract = [(nic_df.TC == tc) & (nic_df.NICa == nic_a) & (nic_df.NICc == nic_c)]
|
nic_df_extract = nic_df[(nic_df.TC == tc) & (nic_df.NICa == nic_a) & (nic_df.NICc == nic_c)]
|
||||||
elif tc in range(9,19):
|
elif tc in range(9,19):
|
||||||
nic_df_extract = [(nic_df.TC == tc) & (nic_df.NICa == nic_a) & (nic_df.NICb == nic_b)]
|
nic_df_extract = nic_df[(nic_df.TC == tc) & (nic_df.NICa == nic_a) & (nic_df.NICb == nic_b)]
|
||||||
elif tc in range(20,23):
|
elif tc in range(20,23):
|
||||||
nic_df_extract = [nic_df.TC == tc]
|
nic_df_extract = nic_df[nic_df.TC == tc]
|
||||||
|
|
||||||
Rc = nic_df_extract['Rc'][0]
|
Rc = nic_df_extract['Rc'][0]
|
||||||
|
|
||||||
@ -341,10 +341,10 @@ def nac_p(msg):
|
|||||||
|
|
||||||
if tc == 29:
|
if tc == 29:
|
||||||
nac_p = common.bin2int(msgbin[71:75])
|
nac_p = common.bin2int(msgbin[71:75])
|
||||||
nacp_df_extract = nac_p[nacp_df.NACp == nac_p]
|
nacp_df_extract = nacp_df[nacp_df.NACp == nac_p]
|
||||||
elif tc == 31:
|
elif tc == 31:
|
||||||
nac_p = common.bin2int(msgbin[76:80])
|
nac_p = common.bin2int(msgbin[76:80])
|
||||||
nacp_df_extract = nac_p[nacp_df.NACp == nac_p]
|
nacp_df_extract = nacp_df[nacp_df.NACp == nac_p]
|
||||||
|
|
||||||
HFU = nacp_df_extract['HFU'][0]
|
HFU = nacp_df_extract['HFU'][0]
|
||||||
VEPU = nacp_df_extract['VEPU'][0]
|
VEPU = nacp_df_extract['VEPU'][0]
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
NAVc,HFOMr,VFOMr
|
NAVc,HFOMr,VFOMr
|
||||||
0,'unknown’,'unknown’
|
0,'unknown’,'unknown’
|
||||||
1,10,"15,2"
|
1,10,15.2
|
||||||
2,3,"4,5"
|
2,3,4.5
|
||||||
3,1,"1,5"
|
3,1,1.5
|
||||||
4,"0,3","0,46"
|
4,0.3,0.46
|
||||||
|
|
@ -1,11 +1,11 @@
|
|||||||
TC,NICs,NIC,Rc,VPL
|
TC,NICs,NIC,Rc,VPL
|
||||||
5,0,12,"7,5",'undefined’
|
5,0,11,7.5,'undefined’
|
||||||
6,0,11,25,'undefined’
|
6,0,10,25,'undefined’
|
||||||
7,1,10,75,'undefined’
|
7,1,9,75,'undefined’
|
||||||
7,0,9,185,'undefined’
|
7,0,8,185,'undefined’
|
||||||
8,0,1,'unknown’,'undefined’
|
8,0,1,'unknown’,'undefined’
|
||||||
9,0,11,"7,5",11
|
9,0,11,7.5,11
|
||||||
10,0,10,25,"37,5"
|
10,0,10,25,37.5
|
||||||
11,1,9,75,112
|
11,1,9,75,112
|
||||||
11,0,8,185,'undefined’
|
11,0,8,185,'undefined’
|
||||||
12,0,7,370,'undefined’
|
12,0,7,370,'undefined’
|
||||||
@ -17,6 +17,6 @@ TC,NICs,NIC,Rc,VPL
|
|||||||
16,0,2,14008,'undefined’
|
16,0,2,14008,'undefined’
|
||||||
17,0,1,37000,'undefined’
|
17,0,1,37000,'undefined’
|
||||||
18,0,0,'unknown’,'undefined’
|
18,0,0,'unknown’,'undefined’
|
||||||
20,0,11,"7,5",11
|
20,0,11,7.5,11
|
||||||
21,0,10,25,"37,5"
|
21,0,10,25,37.5
|
||||||
22,0,0,'unknown’,112
|
22,0,0,'unknown’,112
|
||||||
|
|
@ -1,5 +1,5 @@
|
|||||||
TC,NICa,NICb,NICc,NIC,Rc
|
TC,NICa,NICb,NICc,NIC,Rc
|
||||||
5,0,0,0,11,"7,5"
|
5,0,0,0,11,7.5
|
||||||
6,0,0,0,10,25
|
6,0,0,0,10,25
|
||||||
7,1,0,0,9,75
|
7,1,0,0,9,75
|
||||||
7,0,0,0,8,185
|
7,0,0,0,8,185
|
||||||
@ -7,7 +7,7 @@ TC,NICa,NICb,NICc,NIC,Rc
|
|||||||
8,1,0,0,6,556
|
8,1,0,0,6,556
|
||||||
8,0,0,1,6,1111
|
8,0,0,1,6,1111
|
||||||
8,0,0,0,0,'unknown’
|
8,0,0,0,0,'unknown’
|
||||||
9,0,0,0,11,"7,5"
|
9,0,0,0,11,7.5
|
||||||
10,0,0,0,10,25
|
10,0,0,0,10,25
|
||||||
11,1,1,0,9,75
|
11,1,1,0,9,75
|
||||||
11,0,0,0,8,185
|
11,0,0,0,8,185
|
||||||
@ -21,6 +21,6 @@ TC,NICa,NICb,NICc,NIC,Rc
|
|||||||
16,0,0,0,2,14800
|
16,0,0,0,2,14800
|
||||||
17,0,0,0,1,37000
|
17,0,0,0,1,37000
|
||||||
18,0,0,0,0,'unknown’
|
18,0,0,0,0,'unknown’
|
||||||
20,0,0,0,11,"7,5"
|
20,0,0,0,11,7.5
|
||||||
21,0,0,0,10,25
|
21,0,0,0,10,25
|
||||||
22,0,0,0,0,'unknown’
|
22,0,0,0,0,'unknown’
|
||||||
|
|
@ -1,9 +1,9 @@
|
|||||||
TC,NUCp,HPL,Rcu,Rcv
|
TC,NUCp,HPL,Rcu,Rcv
|
||||||
5,9,"7,5",3,'undefined’
|
5,9,7.5,3,'undefined’
|
||||||
6,8,25,10,'undefined’
|
6,8,25,10,'undefined’
|
||||||
7,7,185,93,'undefined’
|
7,7,185,93,'undefined’
|
||||||
8,6,'unknown’,'unknown’,'undefined’
|
8,6,'unknown’,'unknown’,'undefined’
|
||||||
9,9,"7,5",3,'undefined’
|
9,9,7.5,3,'undefined’
|
||||||
10,8,25,10,'undefined’
|
10,8,25,10,'undefined’
|
||||||
11,7,185,93,'undefined’
|
11,7,185,93,'undefined’
|
||||||
12,6,370,185,'undefined’
|
12,6,370,185,'undefined’
|
||||||
@ -13,6 +13,6 @@ TC,NUCp,HPL,Rcu,Rcv
|
|||||||
16,2,18520,9260,'undefined’
|
16,2,18520,9260,'undefined’
|
||||||
17,1,37040,18520,'undefined’
|
17,1,37040,18520,'undefined’
|
||||||
18,0,'unknown’,'unknown’,'undefined’
|
18,0,'unknown’,'unknown’,'undefined’
|
||||||
20,9,"7,5",3,4
|
20,9,7.5,3,4
|
||||||
21,8,25,10,15
|
21,8,25,10,15
|
||||||
22,0,'unknown’,'unknown’,'unknown’
|
22,0,'unknown’,'unknown’,'unknown’
|
||||||
|
|
@ -1,6 +1,6 @@
|
|||||||
NUCp,HVE,VVE
|
NUCp,HVE,VVE
|
||||||
0,'unknown’,'unknown’
|
0,'unknown’,'unknown’
|
||||||
1,10,"15,2"
|
1,10,15.2
|
||||||
2,3,"4,5"
|
2,3,4.5
|
||||||
3,1,"1,5"
|
3,1,1.5
|
||||||
4,"0,3","1,46"
|
4,0.3,1.46
|
||||||
|
|
Loading…
Reference in New Issue
Block a user