You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there a way to quickly determine which targets make use of a particular interface? I defined a custom interface for my target that I am writing a tool to handle subscribing and unsubscribing from messages over that interface. As this tool is specific to a specific type of interface I only want to show targets that use that interface. I tried System.targets[0].interface.name but interface is nil for all of my targets when i call it from my tool. I assume it is populated in the cmd_tlm_server when it loads its configuration data.
Is there a way to get that information either from the cmd_tlm_server or through another function call or sequence of function calls to populate the System.targets.interface fields in another tool. Since the cmd_tlm_server would have to be running for this to be meaningful I would be fine with requiring it be up and running to use my new tool.
Thanks.
The text was updated successfully, but these errors were encountered:
The CmdTlmServer is the only part of the system that knows which targets are mapped to which interface. Unfortunately the COSMOS API doesn't currently provide a way to look that up. http://cosmosrb.com/docs/scripting/#interfaces
I'll use this ticket to capture that feature request.
For now, you should be able to get the information by parsing the CmdTlmServer configuration files from another tool. Something like (not tested):
Is there a way to quickly determine which targets make use of a particular interface? I defined a custom interface for my target that I am writing a tool to handle subscribing and unsubscribing from messages over that interface. As this tool is specific to a specific type of interface I only want to show targets that use that interface. I tried System.targets[0].interface.name but interface is nil for all of my targets when i call it from my tool. I assume it is populated in the cmd_tlm_server when it loads its configuration data.
Is there a way to get that information either from the cmd_tlm_server or through another function call or sequence of function calls to populate the System.targets.interface fields in another tool. Since the cmd_tlm_server would have to be running for this to be meaningful I would be fine with requiring it be up and running to use my new tool.
Thanks.
The text was updated successfully, but these errors were encountered: