Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: Pub/Sub state in the SpaceFOMRefFrameSimObject with trick variables #127

Open
simtheverse opened this issue Oct 21, 2023 · 2 comments

Comments

@simtheverse
Copy link
Contributor

Hello,
I am trying to use trick variables to both drive the state data in a SpaceFOMRefFrameSimObject as well as have other trick variables be driven by state data in a SpaceFOMRefFrameSimObject.

It looks like SpaceFOMRefFrameObject has 3 attributes, and one of them is 'state'. The trick_name in the state attribute is ref_frame_Chaser.frame_packing.stc_encoder.buffer. How do I tie trick variables to this buffer to both publish and subscribe? Is there a simple example by chance?

Thanks for the help!

@ezcrues
Copy link
Contributor

ezcrues commented Oct 23, 2023

Yeah, that stuff is broken right now. I am working with Dan to create a version that will work for lag compensation and ownership transfer. Unfortunately, we are probably going to have to change some core TrickHLA to fix this right. We've actually be working on this for a while.

We'll up date this thread as we make progress. I'm hoping to have something that works soon.

@ezcrues
Copy link
Contributor

ezcrues commented Nov 2, 2023

I am still working on this but I think I have an example that works. You can check out the jeod_examples branch and look at sims/SpaceFOM/SIM_Entity_Test. I've refactored the SpaceFOM base classes to support a method that may give you what you are looking for. I've only done a little testing but it seems to work for all cases of lag compensation: None, Sending, and Receive. Once I clean this up, I will work up a JEOD example using this new approach.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants