You are right, we need to get the vcId from somewhere.
I suggest we add a "int vcId = -1" field to the standard TmPacket which we set by default to -1 meaning it is not set.
Then in the VcTmPacketHandler we can set it to the VC Id which that class has access to.
If you want, you can make a pull request for this. You will need to sign the CLA though.
Then you can prepend it to the packet in your own packet post-processor.
In the future:
- we make the vcId and ert (earth reception time) as part of some sort of packet metadata. The post-processors will be able to add more stuff to that metadata. I want the packet name also to be part of it.
- we allow the metadata to be propagated/associated with the parameters in the parameter archive.
Have fun!
nicolae