Skip to content

Commit

Permalink
Fix RAEM contest (#451)
Browse files Browse the repository at this point in the history
Fix point calculation
*  Round own lattitude and longitude to whole degree as stated by contest rules

Fix contest rules
* no RST exchanged
* needs cabrillo format without RST (see https://raem.srr.ru/logs-examples),
  otherwise log will not be accepted by UA9CQC.RU upload page
  • Loading branch information
dl1jbe authored Dec 23, 2024
1 parent 7486277 commit 8a4a409
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
5 changes: 4 additions & 1 deletion rules/raem
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,19 @@ CONTEST=raem
LOGFILE=raem.log
CONTEST_MODE

CABRILLO=UNIVERSAL
CABRILLO=RAEM
CABRILLO-CONTEST=RAEM
CABRILLO-CATEGORY-MODE=CW
#CABRILLO-CATEGORY-BAND=ALL
#CABRILLO-CATEGORY-BAND=20M

NO_RST

#
# adapt these to fit your location
#
MYQRA=JN97AA

CABRILLO-EXCHANGE=# 47N19O
F3=@ # 47N 19O
S&P_TU_MSG=TU # 47N 19O
4 changes: 2 additions & 2 deletions rules/raem.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ def score(qso):
lon = int(m.group(3))
if m.group(4) == 'O':
lon = -lon
points = points + abs(lat - int(tlf.MY_LAT))
diff_long = abs(lon - int(tlf.MY_LONG))
points = points + abs(lat - round(tlf.MY_LAT))
diff_long = abs(lon - round(tlf.MY_LONG))
if diff_long > 180:
diff_long = 360 - diff_long
points = points + diff_long
Expand Down
4 changes: 4 additions & 0 deletions share/cabrillo.fmt
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,7 @@ QSO=FREQ,5;MODE,2;DATE,10;TIME,4;MYCALL,13;EXC_S,14;HISCALL,13;EXCH,14
# North American QSO Party
[NAQP]
QSO=FREQ,5;MODE,2;DATE,10;TIME,4;MYCALL,13;EXC_S,14;HISCALL,13;EXCH,14

# RAEM
[RAEM]
QSO=FREQ,5;MODE,2;DATE,10;TIME,4;MYCALL,13;EXC_S,14;HISCALL,13;EXCH,14

0 comments on commit 8a4a409

Please sign in to comment.