#2064 Moto talker GPS event TO/FROM identifiers. (#2065)

Co-authored-by: Dennis Sheirer <dsheirer@github.com>
This commit is contained in:
Denny Sheirer
2024-10-31 05:07:42 -04:00
committed by GitHub
parent 40840dbd5c
commit 4b1d294211

View File

@@ -2055,7 +2055,10 @@ public class P25P1DecoderState extends DecoderState implements IChannelEventList
if(lcw instanceof LCMotorolaUnitGPS gps)
{
mTrafficChannelManager.processP1TrafficCurrentUser(getCurrentFrequency(), gps.getLocation(), timestamp, lcw.toString());
MutableIdentifierCollection mic = getMutableIdentifierCollection(gps.getIdentifiers(), timestamp);
//We want to preserve the current TO/FROM and any other identifiers for the GPS event and add the GPS location
MutableIdentifierCollection mic = new MutableIdentifierCollection(getIdentifierCollection().getIdentifiers());
mic.update(gps.getIdentifiers());
PlottableDecodeEvent event = PlottableDecodeEvent.plottableBuilder(DecodeEventType.GPS, timestamp)
.location(gps.getGeoPosition())