-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
MSP2 over crsf done like betaflight #9528
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please review there is a Bug But i cant find it to reciver the Information on the transmitter
@DzikuVx, is there a way to get a Compiler online version? |
You mean download hex files build online? In Checks file there is an option to download all the built artifacts with all the files |
f06ecf5
to
c6924ef
Compare
@druckgott tests are failing, I want to merge it to |
@DzikuVx, i know i dont know whata wrong the msp 2 Do Not realy work thats why i implent testing, But it also Do Not work and i cant find why its Not working |
ad1997b
to
db6b8f0
Compare
Do I understand correctly that this would make the BF Lua script also work for INAV? |
Yes i have generate a version which should work some body from betaflight supportrd the Main point that the Script works with msp2 But i cant get it working up to now and i did Not know how to fix it |
@druckgott I suggest to keep that open. Hit me up on Discord or Facebook please I need to get you in touch with someone :D |
test Update crsf.c Update telemetry_crsf_msp_unittest.cc Update telemetry_crsf_msp_unittest.cc MSP2 over crsf Update telemetry_crsf_msp_unittest.cc MSP2 over crsf MSP2 over crsf done like here: betaflight/betaflight#11112 betaflight/betaflight#11131
Hey @druckgott, Did some tests lastly on iNav MSP over CRSF and there are few problems with current implementation |
When Master (radio) sends MSP packet with version 1, Slave (FC) should respond with same version number (ie 1) and properly structured MSP frame. iNav sends back status byte with version always set to zero. Bit packing structure for status byte is: |
Just after payload size (ie 3rd byte in response) there should be MSP command ID before actual payload. |
CRSF frame is protected by it's own CRC, so no need to add MSP checksum. |
Basically iNav MSP even in ver 1 is missing changes that was done to BF two years ago :) To test v2 from your branch with radio running LUA app I'd need hex for KAKUTEF4V2 |
I have sent you a build with this PR in it. |
The wrong version number and missing command ID sound like they need to be fixed, to me. An issue with fixing any problems present in msp_shared, outside of the CRSF context, is compatibility with legacy third party systems. Where it's broken / wrong, that's an obvious reason to fix it. But are there third party systems that will break if we set the version and command ID correctly? |
I have implemented MSP2 over CRSF for the lua Script (so we get a lua script for Inav also.
betaflight/betaflight-tx-lua-scripts#491
MSP2 over crsf done like here:
betaflight/betaflight#11112
betaflight/betaflight#11131
I now get WAIT API in the Lua script which I have already don and https://github.com/klutvott123 have already updated with MSP2 over CRSF.
Maybe somebody can help me to fix the thing we get it working.
Compiling is working without error.
Currently I do not know how to debug it.