summaryrefslogtreecommitdiff
path: root/lib/ft8/ft8apset.f90
diff options
context:
space:
mode:
authorChristoph Berg <myon@debian.org>2018-12-19 22:58:32 +0100
committerChristoph Berg <myon@debian.org>2018-12-19 22:58:32 +0100
commite0737c56c1e384e05064a0c6e1ac46979371041b (patch)
treea0123d694a2d36c43dabdf0a3907392fce11d457 /lib/ft8/ft8apset.f90
parentb4aebf2d137b892f53503b13785ecae900062ff7 (diff)
New upstream version 2.0.0+repackupstream/2.0.0+repack
Diffstat (limited to 'lib/ft8/ft8apset.f90')
-rw-r--r--lib/ft8/ft8apset.f9068
1 files changed, 40 insertions, 28 deletions
diff --git a/lib/ft8/ft8apset.f90 b/lib/ft8/ft8apset.f90
index ca5e5a6d..15eddd05 100644
--- a/lib/ft8/ft8apset.f90
+++ b/lib/ft8/ft8apset.f90
@@ -1,31 +1,43 @@
-subroutine ft8apset(mycall12,mygrid6,hiscall12,hisgrid6,bcontest,apsym,iaptype)
- parameter(NAPM=4,KK=87)
- character*12 mycall12,hiscall12
- character*22 msg,msgsent
- character*6 mycall,hiscall
- character*6 mygrid6,hisgrid6
- character*4 hisgrid
- logical bcontest
- integer apsym(KK)
- integer*1 msgbits(KK)
- integer itone(KK)
-
- mycall=mycall12(1:6)
- hiscall=hiscall12(1:6)
- hisgrid=hisgrid6(1:4)
- if(len_trim(hiscall).eq.0) then
- iaptype=1
- hiscall="K9AN"
- else
- iaptype=2
+subroutine ft8apset(mycall12,hiscall12,apsym)
+ use packjt77
+ character*77 c77
+ character*37 msg
+ character*12 mycall12,hiscall12,hiscall
+ integer apsym(58)
+ logical nohiscall
+
+ if(len(trim(mycall12)).eq.0) then
+ apsym=0
+ apsym(1)=99
+ apsym(30)=99
+ return
endif
- hisgrid=hisgrid6(1:4)
-! if(len_trim(hisgrid).eq.0) hisgrid="EN50"
- if(index(hisgrid," ").eq.0) hisgrid="EN50"
- msg=mycall//' '//hiscall//' '//hisgrid
- i3bit=0 ! ### TEMPORARY ??? ###
- call genft8(msg,mygrid6,bcontest,i3bit,msgsent,msgbits,itone)
- apsym=2*msgbits-1
-
+
+ nohiscall=.false.
+ hiscall=hiscall12
+ if(len(trim(hiscall)).eq.0) then
+ hiscall="K9ABC"
+ nohiscall=.true.
+ endif
+
+! Encode a dummy standard message: i3=1, 28 1 28 1 1 15
+!
+ msg=trim(mycall12)//' '//trim(hiscall)//' RRR'
+ call pack77(msg,i3,n3,c77)
+ if(i3.ne.1) then
+ apsym=0
+ apsym(1)=99
+ apsym(30)=99
+ return
+ endif
+
+ read(c77,'(58i1)',err=1) apsym(1:58)
+ apsym=2*apsym-1
+ if(nohiscall) apsym(30)=99
+ return
+
+1 apsym=0
+ apsym(1)=99
+ apsym(30)=99
return
end subroutine ft8apset