Closed BrunoBMoura closed 2 months ago
COSMOS 5 is designed to scale up to constellations of 100s of satellites, so we don't keep the entire database in a local System instance variable anymore.
You should be able to get whatever you need using the various APIs.
If there is something specific, leave a comment. Otherwise closing.
My use case is to simulate data on the cFS software bus as both commands and telemetries
It would be nice to have a similar approach for generating runtime data as the build_cmd
API call, but also for telemetries, something like a build_tlm
function.
Can this behavior be achieved using other API calls already provided?
inject_tlm is similar for telemetry (except it sends the telemetry packet through the system)
On previous Cosmos versions, such as 4.5.X the access to the
System
singleton was granted to the whole code base, including scripts defined on thetargets
folder, on blocks such as:However, on new OpenC3, when trying to perform the same call when executing scripts on script runner, i get the following error:
RuntimeError : System.instance parameters are required on first call
, which can be found on theSystem
class implementation:https://github.com/OpenC3/cosmos/blob/a2c4e49c1fc140233c5124d20112d51f226c027c/openc3/lib/openc3/system/system.rb#L131Is there a way to correctly make the
System
singleton accessible for scripts stored inside thetargets
folder on OpenC3?