How to modify a field in a parsed RTCM message? #64
-
I'm parsing an RTCM message which results in a payload like the following:
I want to modify fields DF025, DF026 and DF027, then re-serialize the message, but Python says the object is non-writable. Is there a way to achieve this in pyrtcm? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Unfortunately there is no simple way to achieve this with pyrtcm. As the message says, RTCMMessage objects - once parsed - are immutable, as they are intended to represent point-in-time data received from an RTCM source. To create a new message, you'd have to construct a message payload from its constituent data bits. Purely out of interest, why would you be looking to modify the ECEF ARP coordinates in a 1005 message? Normally this would be generated by your calibrated NTRIP base station. |
Beta Was this translation helpful? Give feedback.
Hi @lucca-rsilva
Unfortunately there is no simple way to achieve this with pyrtcm. As the message says, RTCMMessage objects - once parsed - are immutable, as they are intended to represent point-in-time data received from an RTCM source. To create a new message, you'd have to construct a message payload from its constituent data bits.
Purely out of interest, why would you be looking to modify the ECEF ARP coordinates in a 1005 message? Normally this would be generated by your calibrated NTRIP base station.