diff options
| author | Christoph Berg <myon@debian.org> | 2018-12-19 22:58:32 +0100 |
|---|---|---|
| committer | Christoph Berg <myon@debian.org> | 2018-12-19 22:58:32 +0100 |
| commit | e0737c56c1e384e05064a0c6e1ac46979371041b (patch) | |
| tree | a0123d694a2d36c43dabdf0a3907392fce11d457 /lib/stdmsg.f90 | |
| parent | b4aebf2d137b892f53503b13785ecae900062ff7 (diff) | |
New upstream version 2.0.0+repackupstream/2.0.0+repack
Diffstat (limited to 'lib/stdmsg.f90')
| -rw-r--r-- | lib/stdmsg.f90 | 44 |
1 files changed, 33 insertions, 11 deletions
diff --git a/lib/stdmsg.f90 b/lib/stdmsg.f90 index 599287bb..cc50f580 100644 --- a/lib/stdmsg.f90 +++ b/lib/stdmsg.f90 @@ -1,21 +1,43 @@ -function stdmsg(msg0,bcontest,mygrid)
+function stdmsg(msg0)
- ! Is msg0 a standard "JT-style" message?
+ ! Returns .true. if msg0 a standard "JT-style" message
+
+ ! i3.n3
+ ! 0.0 Free text
+ ! 0.1 DXpeditiion mode
+ ! 0.2 EU VHF Contest
+ ! 0.3 ARRL Field Day <=16 transmitters
+ ! 0.4 ARRL Field Day >16 transmitters
+ ! 0.5 telemetry
+ ! 0.6
+ ! 0.7
+ ! 1 Standard 77-bit structured message (optional /R)
+ ! 2 EU VHF Contest (optional /P)
+ ! 3 ARRL RTTY Contest
+ ! 4 Nonstandard calls
use iso_c_binding, only: c_bool
use packjt
- character*22 msg0,msg1,msg
- character*6 mygrid
- integer dat(12)
- logical(c_bool), value :: bcontest
+ use packjt77
+
+ character*37 msg0,msg1
+ character*77 c77
logical(c_bool) :: stdmsg
msg1=msg0
- i0=index(msg1,' OOO ')
- if(i0.gt.10) msg1=msg0(1:i0)
- call packmsg(msg0,dat,itype,logical(bcontest))
- call unpackmsg(dat,msg,logical(bcontest),mygrid)
- stdmsg=(msg.eq.msg1) .and. (itype.ge.0) .and. itype.ne.6
+ i3=-1
+ n3=-1
+ call pack77(msg1,i3,n3,c77)
+ stdmsg=(i3.gt.0 .or. n3.gt.0)
+!###
+! rewind 82
+! do i=1,nzhash
+! write(82,3082) i,nzhash,callsign(i),ihash10(i),ihash12(i),ihash22(i)
+!3082 format(2i5,2x,a13,3i10)
+! enddo
+! flush(82)
+!###
+
return
end function stdmsg
|
