Skip to content

Commit

Permalink
use of APRS symbols (Icons) [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
Linar Yusupov committed Oct 25, 2023
1 parent d45ef1a commit feaa6e6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions software/firmware/source/SoftRF/src/protocol/radio/APRS.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -281,9 +281,9 @@ size_t aprs_encode(void *pkt, ufo_t *this_aircraft) {
"/"
"%02d%02d%02dh"
"%02d%05.2f%c"
"/"
"%c"
"%03d%05.2f%c"
"'"
"%c"
"%03d/%03d/A=%06d "
"!W%c%c! "
"id%08X "
Expand All @@ -293,7 +293,9 @@ size_t aprs_encode(void *pkt, ufo_t *this_aircraft) {
APRS_ToCall,
gnss.time.hour(), gnss.time.minute(), gnss.time.second(),
abs(lat_int), fabsf(lat_dec * 60), lat < 0 ? 'S' : 'N',
AprsIcon[acft_type][0],
abs(lon_int), fabsf(lon_dec * 60), lon < 0 ? 'W' : 'E',
AprsIcon[acft_type][1],
(course_i == 0) ? 360 : course_i,
(int) this_aircraft->speed, /* knots */
(altitude_i < 0) ? 0 : altitude_i, /* feet */
Expand Down

0 comments on commit feaa6e6

Please sign in to comment.