serialize

Encode a TakPacketV2Data to TAKPacketV2 protobuf wire bytes.

Maps the SDK's camelCase data model onto the Wire-generated proto types, applying the unit conversions baked into the data model (lat/lon ×1e7, speed cm/s, course degrees×100, altitude meters HAE, shape radii cm). Exactly one TakPacketV2Data.Payload arm is emitted into the oneof; TakPacketV2Data.Payload.None (an implicit PLI) emits no payload variant.

Return

the serialized protobuf bytes (these are the bytes fed to zstd — see TakCompressor).