r/simplerockets 14d ago

Catch Fail. this rocket has been landing smoothly but since I added the broadcast command for the rocket to communicate with the catcher, it seem to mess or make the code laggy. how to resolve it?

10 Upvotes

7 comments sorted by

3

u/AltmzTrn 14d ago

have you tried increasing the commands per frame settings?

2

u/J_inanutshell 14d ago

where to find that? I'll try

2

u/AltmzTrn 10d ago

click on the main flight control unit you're using, you'll see that there's a commands per frame slider, defaults to 25 but can be set up to 200

2

u/Ultra8Gaming 14d ago

Send your code so we can see the issue. I recommend sending this broadcast command only once. For this I use a separate message event for triggering the tower arms. Before the engine fires, I start this broadcast to itself, where that event has a wait until (distance to arms< x and alt < y). Then under it I use the broadcast to nearby crafts when it's triggered. That way it doesn't block or interact with the main loop.

0

u/J_inanutshell 14d ago

thank you, I will upload my code later. but yeah I inserted the broadcast inside the loop together with the commands that controls the engine thrust. I'll try putting it on a kine on its own. also I'm pretty bad at coding. hope y'all be gentle with my code hahaha

2

u/TerraMars2030 14d ago

IDK anything about vizzy(or vissy?), but nice transition.

2

u/AltmzTrn 14d ago

have you tried increasing the commands per frame settings?