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

Commands being executed multiple times #59

Open
teknolik opened this issue Jan 27, 2020 · 3 comments
Open

Commands being executed multiple times #59

teknolik opened this issue Jan 27, 2020 · 3 comments
Labels

Comments

@teknolik
Copy link

If many commands are sent at the same time, it appears that under certain conditions ExtPlane ends up executing them multiple times.

This is especially true if the simulator is under load - especially using VR, in my experience.

For example, in the Zibo, sending 5 MCP Speed up commands can result in up to 25-30 commands being executed in the sim.

A workaround to this is to add a delay for each command of, approximately, 100ms. This means that actions happen slower but are more reliable.

I have tested this by using my own work utilising ExtPlaneNet as well as dropping the commands into a direct telnet connection.

@vranki vranki added the bug label Feb 3, 2020
@jfjoubert
Copy link

Hi, I have noticed the same thing. I'm calling a command "begin" and quite frequently there seem to be multiple "begin" commands that were executed in XPlane. If I manually "end" the command a couple of times then eventually XPlane will show that the command is not active anymore. I tried to trace it with Wireshark but had no luck in determining why this is happening. My current workaround was to write a separate plugin that will handle commands via UDP.

@vranki
Copy link
Owner

vranki commented May 18, 2021

Do you see any output in X-Plane log.txt, console if you run x-plane or the TCP stream?

The related code is at

} else if (command == "cmd") {

and
void XPlanePlugin::command(QString &name, extplaneCommandType type)

but I can't see any obvious issues in it.

@jfjoubert
Copy link

Hi, I did go through the code and I also couldn't see any obvious issues. I'm just using a telnet session on my Windows pc to connect to ExtPlane. I can see no entries in the log or console indicating any issue either. Maybe it's just something weird happening on my side.

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

No branches or pull requests

3 participants