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

Simulator is inactive for a minute after start #19

Open
Vavooon opened this issue May 28, 2015 · 6 comments
Open

Simulator is inactive for a minute after start #19

Vavooon opened this issue May 28, 2015 · 6 comments

Comments

@Vavooon
Copy link

Vavooon commented May 28, 2015

Every time i start simulator i should wait almost minute, only after that time it writes
Init MAVLink
and other messages and i am able to flight.

@Vavooon
Copy link
Author

Vavooon commented May 28, 2015

It happens only on one of my PCs.

@DrTon
Copy link
Owner

DrTon commented May 28, 2015

"Init MAVLink" should happen after 1s after receiving the first heartbeat from autopilot. How autopilot connected? Via USB? Try to add System.out.println(msg) before sendMessage here: https://github.com/DrTon/jMAVSim/blob/master/src/me/drton/jmavsim/SerialMAVLinkPort.java#L124
to see all incoming messages on serial port.

@Vavooon
Copy link
Author

Vavooon commented May 28, 2015

Yes, it is connected via USB. I use latest rc10 firmware.
It doesn't depend on PC and happens on both my machines.
Proposed debug command writes message only at the same time when "init mavlink" message appears.

@DrTon
Copy link
Owner

DrTon commented Jun 3, 2015

Is it Windows? Maybe something bad with USB buffer (the data staying too long before flushing), I think I read something about this. Can you try on Linux or on another version of Windows?

@Vavooon
Copy link
Author

Vavooon commented Jun 3, 2015

Ok, i'll try it on Linux later. It happens to me with January version (b98862c).
I can avoid this problem if i connect from QGC at first. After that jMAVSim connects in most cases.

@Vavooon
Copy link
Author

Vavooon commented Jun 4, 2015

I tried it on Linux and all works fine.

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