minimosd-extra
minimosd-extra copied to clipboard
Wrong UART speed for MWII protocol
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.
can be MWII protocol on other speed than 115200?
never seen other speed, you can of course compile firmware with different speed. THis is from anciet times of MultiiWiiCopter on ATMega.
Also here is hardcoded https://github.com/ShikOfTheRa/scarab-osd/blob/131ffd412383cd1d9d747b74d5f177d628481504/MW_OSD/Def.h And in iNav there is: serialConfig->portConfigs[i].msp_baudrateIndex = BAUD_115200
For whatever reason autodetection doesn't work in case of MSP (I didn't investigated this part)
regards
2018-04-26 13:15 GMT+01:00 night-ghost [email protected]:
can be MWII protocol on other speed than 115200?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/night-ghost/minimosd-extra/issues/217#issuecomment-384619237, or mute the thread https://github.com/notifications/unsubscribe-auth/AAdfI_bLv3C-QwyhL_HG-nNNowS54-wnks5tsbpIgaJpZM4Su9vs .
but https://github.com/iNavFlight/inav/issues/3127
2018-04-26 13:25 GMT+01:00 Piotr Markiewicz [email protected]:
never seen other speed, you can of course compile firmware with different speed. THis is from anciet times of MultiiWiiCopter on ATMega.
Also here is hardcoded https://github.com/ShikOfTheRa/scarab-osd/blob/ 131ffd412383cd1d9d747b74d5f177d628481504/MW_OSD/Def.h And in iNav there is: serialConfig->portConfigs[i].msp_baudrateIndex = BAUD_115200
For whatever reason autodetection doesn't work in case of MSP (I didn't investigated this part)
regards
2018-04-26 13:15 GMT+01:00 night-ghost [email protected]:
can be MWII protocol on other speed than 115200?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/night-ghost/minimosd-extra/issues/217#issuecomment-384619237, or mute the thread https://github.com/notifications/unsubscribe-auth/AAdfI_bLv3C-QwyhL_HG-nNNowS54-wnks5tsbpIgaJpZM4Su9vs .
so it is too early to drop autobaud
could you turn on DEBUG and do a screenscast/video what is going on OSD?
probably, let's wait for answer.
2018-04-26 13:34 GMT+01:00 night-ghost [email protected]:
so it is too early to drop autobaud
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/night-ghost/minimosd-extra/issues/217#issuecomment-384624458, or mute the thread https://github.com/notifications/unsubscribe-auth/AAdfIz1rpTT0KUX_SjAFg9Mw7SCD7POEks5tsb67gaJpZM4Su9vs .
We got answer from iNav team and still have no idea why it's not 115. My problem is that baud autodetection code didn't work for me that why I disabled one and left hardcoded value. I think we can keep this hardcoded unless someone will raise an issue related to that.
2018-04-26 13:41 GMT+01:00 Piotr Markiewicz [email protected]:
probably, let's wait for answer.
2018-04-26 13:34 GMT+01:00 night-ghost [email protected]:
so it is too early to drop autobaud
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/night-ghost/minimosd-extra/issues/217#issuecomment-384624458, or mute the thread https://github.com/notifications/unsubscribe-auth/AAdfIz1rpTT0KUX_SjAFg9Mw7SCD7POEks5tsb67gaJpZM4Su9vs .
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
anothere answer clarifies a bit. I think you can reject PR and I will create new one just for roll/pitch and voltage
2018-04-27 13:33 GMT+01:00 night-ghost [email protected]:
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
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/night-ghost/minimosd-extra/issues/217#issuecomment-384956627, or mute the thread https://github.com/notifications/unsubscribe-auth/AAdfI2M7O3kLvr-WzuDmYsND2cVsRlzbks5tsxApgaJpZM4Su9vs .
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.
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.