[Marble-bugs] [marble] [Bug 348209] New: APRS Plugin: Wrong decoding of MIC-E Position
Thomas
axis207mw at gmx.de
Mon May 25 16:01:36 UTC 2015
https://bugs.kde.org/show_bug.cgi?id=348209
Bug ID: 348209
Summary: APRS Plugin: Wrong decoding of MIC-E Position
Product: marble
Version: unspecified
Platform: Compiled Sources
OS: Linux
Status: UNCONFIRMED
Severity: normal
Priority: NOR
Component: general
Assignee: marble-bugs at kde.org
Reporter: axis207mw at gmx.de
Wrong longitude calculation (latitude is correct) for some MIC-E encoded
positions, example:
MIC-E: DL9TG-7>U1TVP0,WIDE1-1,WIDE2-1,qAR,DL9TG-10:`|^al#D[/>"4J}145.662MHz
T110 -060Thomas=
The result is: lon: -96.1115
The result should be: lon: 6.1115
Perhaps the problem is in AprsGatherer.cpp in line 171:
dstCall has only 6 Bytes, so dstCall[6] is out of range.
original:
qreal longitude =
calculateLongitude( QString ( mic_e_matcher.cap( 4 ) ),
m_dstCallLongitudeOffset[dstCall[5]],
m_dstCallSouthEast[dstCall[6]] );
my offer (for my example it works correct):
qreal longitude =
calculateLongitude( QString ( mic_e_matcher.cap( 4 ) ),
m_dstCallLongitudeOffset[dstCall[4]],
m_dstCallSouthEast[dstCall[5]] );
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the Marble-bugs
mailing list