mirror of
https://github.com/armel/uv-k1-k5v3-firmware-custom.git
synced 2026-10-02 03:15:37 +00:00
Set APRS TX default comment to 'UV-K5 & UV-K1 APRS TX'
This commit is contained in:
1 parent
9d751bdc11
commit
27248795cb
3 files changed
+6
-6
No files matched your search
@@ -19,10 +19,10 @@ which is also the test receiver.
|
||||
| `PATH` | `WIDE1-1` (0 to 2 entries) |
|
||||
| `LAT`, `LON` | `4850.90N`, `00216.25E`: the **default** position, until one is edited on the radio (key 5) |
|
||||
| `SYMBOL` | `/[` (person) |
|
||||
| `COMMENT` | `UV-K5 APRS TX` (43 characters at most) |
|
||||
| `COMMENT` | `UV-K5 & UV-K1 APRS TX` (43 characters at most) |
|
||||
|
||||
Frame sent: `F4HWN-7>APZK5,WIDE1-1:!4850.90N/00216.25E[UV-K5 APRS TX` (58 bytes,
|
||||
~0.73 s on the air: 50 ms of tone settle, 40 flags = 267 ms, the frame, 3 flags).
|
||||
Frame sent: `F4HWN-7>APZK5,WIDE1-1:!4850.90N/00216.25E[UV-K5 & UV-K1 APRS TX` (66 bytes,
|
||||
~0.78 s on the air: 50 ms of tone settle, 40 flags = 267 ms, the frame, 3 flags).
|
||||
If the boot message is not a plain callsign (empty, more than 6 characters once
|
||||
spaces are dropped, or with a `/`), the app shows `No boot callsign` and does not
|
||||
transmit.
|
||||
|
||||
@@ -23,7 +23,7 @@ DEST = "APZK5" # APZ = experimental software
|
||||
PATH = ["WIDE1-1"] # [] for none
|
||||
LAT, LON = "4850.90N", "00216.25E" # default position: DDMM.hhN, DDDMM.hhE
|
||||
SYMBOL = "/[" # table, code: '[' = person
|
||||
COMMENT = "UV-K5 APRS TX"
|
||||
COMMENT = "UV-K5 & UV-K1 APRS TX"
|
||||
# info field: "!" + LAT + SYMBOL[0] + LON + SYMBOL[1] + COMMENT
|
||||
|
||||
TITLE = "APRS TX"
|
||||
|
||||
@@ -143,7 +143,7 @@ def main():
|
||||
ok = True
|
||||
f = build_c(blob, D)
|
||||
ssid = D["CFG_SSID"]
|
||||
info = "!4850.90N/00216.25E[UV-K5 APRS TX" # gen_assets.py defaults
|
||||
info = "!4850.90N/00216.25E[UV-K5 & UV-K1 APRS TX" # gen_assets.py defaults
|
||||
ref = build("%s-%d" % (CALL, ssid) if ssid else CALL, dst="APZK5", path=["WIDE1-1"], info=info)
|
||||
print("frame ", decode(f), "(%d bytes)" % len(f))
|
||||
ok &= f == ref
|
||||
@@ -160,7 +160,7 @@ def main():
|
||||
pos = [3, 3, 5, 2, 1, 3, 1, 5, 1, 1, 2, 5, 6] # 33 52.13S 151 12.56W
|
||||
f2 = build_c(blob, D, pos=pos, hemi=3)
|
||||
want = build("F4HWN-7", dst="APZK5", path=["WIDE1-1"],
|
||||
info="!3352.13S/15112.56W[UV-K5 APRS TX")
|
||||
info="!3352.13S/15112.56W[UV-K5 & UV-K1 APRS TX")
|
||||
ok &= f2 == want
|
||||
print("edited position frame:", f2 == want, decode(f2))
|
||||
c = cfg_pack(70, -2, pos, 3)
|
||||
|
||||
Reference in new issue
Block a user