mirror of
				https://github.com/saitohirga/WSJT-X.git
				synced 2025-10-31 13:10:19 -04:00 
			
		
		
		
	Fixed calc of rxnoise for recorded data.
Don't display "No Rx data" when transmitting. Add dB to Messages window. Make option labels more informative. git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/map65@483 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
		
							parent
							
								
									6d3b542f4a
								
							
						
					
					
						commit
						f260cc9589
					
				
							
								
								
									
										10
									
								
								display.F90
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								display.F90
									
									
									
									
									
								
							| @ -7,7 +7,7 @@ subroutine display(nkeep) | |||||||
|   parameter (MAXLINES=500,MX=500) |   parameter (MAXLINES=500,MX=500) | ||||||
|   integer indx(MAXLINES),indx2(MX) |   integer indx(MAXLINES),indx2(MX) | ||||||
|   character*81 line(MAXLINES),line2(MX),line3(MAXLINES) |   character*81 line(MAXLINES),line2(MX),line3(MAXLINES) | ||||||
|   character out*46,cfreq0*3 |   character out*50,cfreq0*3 | ||||||
|   character*6 callsign,callsign0 |   character*6 callsign,callsign0 | ||||||
|   character*12 freqcall(100) |   character*12 freqcall(100) | ||||||
|   character*40 bm2 |   character*40 bm2 | ||||||
| @ -118,7 +118,7 @@ subroutine display(nkeep) | |||||||
|   nc=0 |   nc=0 | ||||||
|   callsign0='          ' |   callsign0='          ' | ||||||
|   do k=1,k3 |   do k=1,k3 | ||||||
|      out=line3(k)(5:12)//line3(k)(28:31)//line3(k)(39:67)//line3(k)(77:81) |      out=line3(k)(5:12)//line3(k)(28:31)//line3(k)(35:67)//line3(k)(77:81) | ||||||
|      if(out(1:3).ne.'   ') then |      if(out(1:3).ne.'   ') then | ||||||
|         if(out(1:3).eq.cfreq0) then |         if(out(1:3).eq.cfreq0) then | ||||||
|            out(1:3)='   ' |            out(1:3)='   ' | ||||||
| @ -126,9 +126,9 @@ subroutine display(nkeep) | |||||||
|            cfreq0=out(1:3) |            cfreq0=out(1:3) | ||||||
|         endif |         endif | ||||||
|         write(19,1030) out |         write(19,1030) out | ||||||
| 1030    format(a46) | 1030    format(a50) | ||||||
|         i1=index(out(20:),' ') |         i1=index(out(24:),' ') | ||||||
|         callsign=out(i1+20:) |         callsign=out(i1+24:) | ||||||
|         i2=index(callsign,' ') |         i2=index(callsign,' ') | ||||||
|         if(i2.gt.1) callsign(i2:)='      ' |         if(i2.gt.1) callsign(i2:)='      ' | ||||||
|         if(callsign.ne.'      ' .and. callsign.ne.callsign0) then |         if(callsign.ne.'      ' .and. callsign.ne.callsign0) then | ||||||
|  | |||||||
							
								
								
									
										11
									
								
								getfile2.F90
									
									
									
									
									
								
							
							
						
						
									
										11
									
								
								getfile2.F90
									
									
									
									
									
								
							| @ -6,6 +6,7 @@ subroutine getfile2(fname,len) | |||||||
| 
 | 
 | ||||||
|   character*(*) fname |   character*(*) fname | ||||||
|   character infile*15 |   character infile*15 | ||||||
|  |   real*8 sq | ||||||
| 
 | 
 | ||||||
|   include 'datcom.f90' |   include 'datcom.f90' | ||||||
|   include 'gcom1.f90' |   include 'gcom1.f90' | ||||||
| @ -49,10 +50,18 @@ subroutine getfile2(fname,len) | |||||||
| 
 | 
 | ||||||
| #endif | #endif | ||||||
| 
 | 
 | ||||||
|  |   sq=0. | ||||||
|  |   ka=0.1*NSMAX | ||||||
|  |   kb=0.8*NSMAX | ||||||
|  |   do k=ka,kb | ||||||
|  |      sq=sq + float(int(id(1,k,1)))**2 + float(int(id(1,k,1)))**2 +    & | ||||||
|  |           float(int(id(1,k,1)))**2 + float(int(id(1,k,1)))**2 | ||||||
|  |   enddo | ||||||
|  |   sqave=174*sq/(kb-ka+1) | ||||||
|  |   rxnoise=10.0*log10(sqave) - 48.0 | ||||||
|   read(filename(8:11),*) nutc |   read(filename(8:11),*) nutc | ||||||
|   ndiskdat=1 |   ndiskdat=1 | ||||||
|   mousebutton=0 |   mousebutton=0 | ||||||
|   rxnoise=8.0 |  | ||||||
|   go to 999 |   go to 999 | ||||||
| 
 | 
 | ||||||
| 998 ierr=1001 | 998 ierr=1001 | ||||||
|  | |||||||
							
								
								
									
										19
									
								
								map65.py
									
									
									
									
									
								
							
							
						
						
									
										19
									
								
								map65.py
									
									
									
									
									
								
							| @ -1,4 +1,4 @@ | |||||||
| #-------------------------------------------------------------------- MAP65 | #--------------------------------------------------------------------- MAP65 | ||||||
| # $Date$ $Revision$ | # $Date$ $Revision$ | ||||||
| # | # | ||||||
| from Tkinter import * | from Tkinter import * | ||||||
| @ -188,9 +188,9 @@ def messages(event=NONE): | |||||||
|     bm.geometry(bm_geom) |     bm.geometry(bm_geom) | ||||||
|     if g.Win32: bm.iconbitmap("wsjt.ico") |     if g.Win32: bm.iconbitmap("wsjt.ico") | ||||||
|     iframe_bm1 = Frame(bm, bd=1, relief=SUNKEN) |     iframe_bm1 = Frame(bm, bd=1, relief=SUNKEN) | ||||||
|     Label(iframe_bm1,text='Freq      DF     Pol     UTC').pack(anchor=W, \ |     Label(iframe_bm1,text='Freq      DF     Pol     dB    UTC').pack(anchor=W, \ | ||||||
|         pady=0,side='top') |         pady=0,side='top') | ||||||
|     msgtext=Text(iframe_bm1, height=35, width=41, bg="Navy", fg="yellow") |     msgtext=Text(iframe_bm1, height=35, width=45, bg="Navy", fg="yellow") | ||||||
|     msgtext.bind('<Double-Button-1>',dbl_click_msgtext) |     msgtext.bind('<Double-Button-1>',dbl_click_msgtext) | ||||||
|     msgtext.pack(side=LEFT, fill=X, padx=1, pady=3) |     msgtext.pack(side=LEFT, fill=X, padx=1, pady=3) | ||||||
|     bmsb = Scrollbar(iframe_bm1, orient=VERTICAL, command=msgtext.yview) |     bmsb = Scrollbar(iframe_bm1, orient=VERTICAL, command=msgtext.yview) | ||||||
| @ -931,6 +931,8 @@ def update(): | |||||||
|      |      | ||||||
|     utc=time.gmtime(time.time()+0.1*idsec) |     utc=time.gmtime(time.time()+0.1*idsec) | ||||||
|     isec=utc[5] |     isec=utc[5] | ||||||
|  |     txminute=0 | ||||||
|  |     if Audio.gcom2.lauto and utc[4]%2 == Audio.gcom1.txfirst: txminute=1 | ||||||
| 
 | 
 | ||||||
|     if isec != isec0:                           #Do once per second |     if isec != isec0:                           #Do once per second | ||||||
|         isec0=isec |         isec0=isec | ||||||
| @ -953,8 +955,9 @@ def update(): | |||||||
|         azdist() |         azdist() | ||||||
|         g.nfreq=nfreq.get() |         g.nfreq=nfreq.get() | ||||||
|         kxp=int(Audio.datcom.kxp) |         kxp=int(Audio.datcom.kxp) | ||||||
|         if kxp-kxp0 < 50000: |         if kxp-kxp0 < 50000 and \ | ||||||
|             msg5.configure(text='No data',bg='red') |            ((not Audio.gcom2.lauto) or (not Audio.gcom1.transmitting)): | ||||||
|  |             msg5.configure(text='No Rx data',bg='red') | ||||||
|         else: |         else: | ||||||
|             msg5.configure(bg='gray85')             |             msg5.configure(bg='gray85')             | ||||||
|         kxp0=kxp |         kxp0=kxp | ||||||
| @ -1018,8 +1021,6 @@ def update(): | |||||||
|     t="QSO DF:%4d" % (int(Audio.gcom2.mousedf),) |     t="QSO DF:%4d" % (int(Audio.gcom2.mousedf),) | ||||||
|     msg3.configure(text=t) |     msg3.configure(text=t) | ||||||
| 
 | 
 | ||||||
|     txminute=0 |  | ||||||
|     if Audio.gcom2.lauto and utc[4]%2 == Audio.gcom1.txfirst: txminute=1 |  | ||||||
|     if mode.get()[:4]=='JT65' and (Audio.gcom2.ndecoding>0 or \ |     if mode.get()[:4]=='JT65' and (Audio.gcom2.ndecoding>0 or \ | ||||||
|          (isec>45 and  txminute==0 and Audio.gcom2.monitoring==1 and \ |          (isec>45 and  txminute==0 and Audio.gcom2.monitoring==1 and \ | ||||||
|           Audio.datcom.kkdone!=-99 and Audio.gcom2.ndiskdat!=1)): |           Audio.datcom.kkdone!=-99 and Audio.gcom2.ndiskdat!=1)): | ||||||
| @ -1116,10 +1117,10 @@ def update(): | |||||||
|             msgtext.delete('1.0',END) |             msgtext.delete('1.0',END) | ||||||
|             for i in range(len(lines)): |             for i in range(len(lines)): | ||||||
|                 try: |                 try: | ||||||
|                     nage=int(lines[i][41:]) |                     nage=int(lines[i][45:]) | ||||||
|                 except: |                 except: | ||||||
|                     nage=0 |                     nage=0 | ||||||
|                 lines[i]=lines[i][:41]+'\n' |                 lines[i]=lines[i][:45]+'\n' | ||||||
|                 if nage==0: attr='age0' |                 if nage==0: attr='age0' | ||||||
|                 if nage==1: attr='age1' |                 if nage==1: attr='age1' | ||||||
|                 if nage==2: attr='age2' |                 if nage==2: attr='age2' | ||||||
|  | |||||||
							
								
								
									
										12
									
								
								options.py
									
									
									
									
									
								
							
							
						
						
									
										12
									
								
								options.py
									
									
									
									
									
								
							| @ -91,22 +91,22 @@ aux_ra=Pmw.EntryField(g3.interior(),labelpos=W,label_text='Source RA:', | |||||||
|     entry_width=9,entry_textvariable=auxra) |     entry_width=9,entry_textvariable=auxra) | ||||||
| aux_dec=Pmw.EntryField(g3.interior(),labelpos=W,label_text='Source DEC:', | aux_dec=Pmw.EntryField(g3.interior(),labelpos=W,label_text='Source DEC:', | ||||||
|     entry_width=9,entry_textvariable=auxdec) |     entry_width=9,entry_textvariable=auxdec) | ||||||
| nkeep_entry=Pmw.EntryField(g3.interior(),labelpos=W,label_text='nkeep (min):', | nkeep_entry=Pmw.EntryField(g3.interior(),labelpos=W,label_text='Timeout (min):', | ||||||
|     entry_width=9,value=20,entry_textvariable=nkeep) |     entry_width=9,value=20,entry_textvariable=nkeep) | ||||||
| dphi_entry=Pmw.EntryField(g3.interior(),labelpos=W,label_text='Dphi (deg):', | dphi_entry=Pmw.EntryField(g3.interior(),labelpos=W,label_text='Dphi (deg):', | ||||||
|     entry_width=9,entry_textvariable=dphi) |     entry_width=9,entry_textvariable=dphi) | ||||||
| fa_entry=Pmw.EntryField(g3.interior(),labelpos=W,label_text='fa (kHz):', | fa_entry=Pmw.EntryField(g3.interior(),labelpos=W,label_text='Fmin (kHz):', | ||||||
|     entry_width=9,value=100,entry_textvariable=fa) |     entry_width=9,value=100,entry_textvariable=fa) | ||||||
| fb_entry=Pmw.EntryField(g3.interior(),labelpos=W,label_text='fb (kHz):', | fb_entry=Pmw.EntryField(g3.interior(),labelpos=W,label_text='Fmax (kHz):', | ||||||
|     entry_width=9,value=160,entry_textvariable=fb) |     entry_width=9,value=160,entry_textvariable=fb) | ||||||
| fcal_entry=Pmw.EntryField(g3.interior(),labelpos=W,label_text='fcal (Hz):', | fcal_entry=Pmw.EntryField(g3.interior(),labelpos=W,label_text='Fcal (Hz):', | ||||||
|     entry_width=9,entry_textvariable=fcal) |     entry_width=9,entry_textvariable=fcal) | ||||||
| savedir_entry=Pmw.EntryField(g3.interior(),labelpos=W,label_text='SaveDir:', | savedir_entry=Pmw.EntryField(g3.interior(),labelpos=W,label_text='SaveDir:', | ||||||
|     entry_width=20,value=g.appdir+'/save',entry_textvariable=savedir) |     entry_width=23,value=g.appdir+'\save',entry_textvariable=savedir) | ||||||
| widgets = (temp_prefix,aux_ra,aux_dec,nkeep_entry,dphi_entry, \ | widgets = (temp_prefix,aux_ra,aux_dec,nkeep_entry,dphi_entry, \ | ||||||
|            fa_entry,fb_entry,fcal_entry,savedir_entry,) |            fa_entry,fb_entry,fcal_entry,savedir_entry,) | ||||||
| for widget in widgets: | for widget in widgets: | ||||||
|     widget.pack(padx=10,pady=2) |     widget.pack(padx=2,pady=2) | ||||||
| Pmw.alignlabels(widgets) | Pmw.alignlabels(widgets) | ||||||
| 
 | 
 | ||||||
| g1.pack(side=LEFT,fill=BOTH,expand=1,padx=6,pady=6) | g1.pack(side=LEFT,fill=BOTH,expand=1,padx=6,pady=6) | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user