Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GPS LONG missing leading zero #17

Closed
KB8RCO opened this issue Jan 15, 2025 · 1 comment
Closed

GPS LONG missing leading zero #17

KB8RCO opened this issue Jan 15, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@KB8RCO
Copy link

KB8RCO commented Jan 15, 2025

I have worked with older versions (up to about 30 I think).
I just tried 46 and now 47 and both show my position in Asia.

As decoded by Direwolf:
[0.2] KB8RCO-11>APZNFW,WIDE2-1:!4209.35N/-8346.27WO/A=000762/P51S6T21V3328C00 @RS41-NFW V47
Invalid character in longitude. Found '-' when expecting 0 or 1 for hundreds of degrees.
Position, Original Balloon (think Ham balloon), Experimental
N 42 09.3500, Invalid Longitude, alt 232 m (762 ft)
/P51S6T21V3328C00 @RS41-NFW V47

So my long should read 08346.27W instead of -8346.2W
The W indicates west (or negative East)

Around line 2465 I changed lonDegrees to abs(lonDegrees)

  // Format Longitude: dddmm.ssE or dddmm.ssW
  sprintf(lonBuffer, "%03d%02d.%02d%c", abs(lonDegrees), lonMinutes, lonHMinutes, lonHemisphere);

With that change ...
KB8RCO-11 audio level = 44(6/5) ||___
[0.2] KB8RCO-11>APZNFW,WIDE2-1:!4209.35N/08346.27WO/A=000747/P3S6T18V3333C00 @RS41-NFW V47
Position, Original Balloon (think Ham balloon), Experimental
N 42 09.3500, W 083 46.2700, alt 228 m (747 ft)
/P3S6T18V3333C00 @RS41-NFW V47

Robert Giuliano
KB8RCO

@Nevvman18
Copy link
Owner

Thanks - I missed that!

@Nevvman18 Nevvman18 added the bug Something isn't working label Jan 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants