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

Wrong UART speed for MWII protocol #217

Open
pmarkiewicz opened this issue Mar 17, 2018 · 10 comments
Open

Wrong UART speed for MWII protocol #217

pmarkiewicz opened this issue Mar 17, 2018 · 10 comments

Comments

@pmarkiewicz
Copy link
Contributor

pmarkiewicz commented Mar 17, 2018

Wrong UART speed for MWII protocol, it's 57600 instead of 115200.
In case of MWII AUTOBAUD shouldn't be used.

Looks like case is not related to current hardware (OZE32 board, Naze32 + minimOSD integrated).

Latest version, 944, build locally.
Bug is replicable in all versions.

I have ready pull request with fix.

@night-ghost
Copy link
Owner

can be MWII protocol on other speed than 115200?

@pmarkiewicz
Copy link
Contributor Author

pmarkiewicz commented Apr 26, 2018 via email

@pmarkiewicz
Copy link
Contributor Author

pmarkiewicz commented Apr 26, 2018 via email

@night-ghost
Copy link
Owner

night-ghost commented Apr 26, 2018

so it is too early to drop autobaud

could you turn on DEBUG and do a screenscast/video what is going on OSD?

@pmarkiewicz
Copy link
Contributor Author

pmarkiewicz commented Apr 26, 2018 via email

@pmarkiewicz
Copy link
Contributor Author

pmarkiewicz commented Apr 27, 2018 via email

@night-ghost
Copy link
Owner

the answer was a really cool :)

autobaud was highly tested and works just fine for MAVlink, so it seems very strange to me. But as you wish, it will be turned off for MWII in next version, so please remove this part from PR

@pmarkiewicz
Copy link
Contributor Author

pmarkiewicz commented Apr 27, 2018 via email

@BondarenkoA
Copy link

i tested last commit. MWII uart speed still 57600. Because #define AUTOBAUD 0 in the func.h:getData(). When it commented, MWII stay worked, but uart speed does not dysplayed on the diagnostic screen.

@night-ghost
Copy link
Owner

Thanks, that "define" was a bug, fixed. UARD speed shown only if autobaud is turned on. If you can build binaries please uncomment "define DEBUG", turn on autobaud and see to measured pulse time.

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

3 participants