muccc / iridium-toolkit

A set of tools to parse Iridium frames
477 stars 111 forks source link

Add cleaner message interface to bitsparser #84

Open jsmailes opened 2 years ago

jsmailes commented 2 years ago

The MessageInterface class implements the same basic functionality as Message, but its __init__ has sane arguments so it can be used as an interface for other scripts.

Sec42 commented 2 years ago

That is an interesting idea. Can you share what use cases you have in mind for it?

jsmailes commented 2 years ago

I'm currently using it in one of my projects to decode some raw iridium messages which have not been produced using the basic gr-iridium scripts, so the input string is not formatted in the way Message's __init__ expects. It's useful to be able to pass in the parameters manually instead of relying on the string manipulation in the basic class.