-
Notifications
You must be signed in to change notification settings - Fork 17.7k
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
Add MAVLink receiver support, RADIO_RC_CHANNELS, no III #26356
Conversation
ups, seems I have screwed up the spelling of the file names ... strange it compiles fine for me. Will correct this evening. |
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.
Looking good.
I think the filenames need to be AP_RCProtocol_MAVLinkRadio.h
etc, too.
8687887
to
9f0b662
Compare
@peterbarker I think I incorporated all suggestions. I added also few more #if protections which were needed to compile on 1024 size boards,
still one check failing |
3167de1
to
1241c7f
Compare
That Sub test is flapping, not your fault :-) |
great, many thx for the response, I hear it with some relieve (given the other earlier check fails did had been my fault :)) any other thing required from my side for merging? |
@peterbarker @tridge as is, the RC_PROTOCOLS bit mask is not respected for neither DroneCAN nor MAVLinkRadio protocol. That is, if in that bit mask one would set to allow only CRSF, the MAVLinkRadio would be choosen nevertheless. For DroneCAN this appears to have been the intention, at least it is how it was before, and in the bit mask documentation in RC_Channels_VarInfo.h there indeed is no bit for DroneCAN. My original intention however was that MAVLinkRadio can be masked out from detection. I do see 3 courses of action now:
What is your choice? |
That would be a bug, then :-(
That was not my intention. There does seem to be a DroneCAN bit in the documentation for RC_PROTOCOLS`:
Definitely this one. Do you think #26411 would be sufficient to fix the problem? We need something easily back-portable. I'll be testing that later today. |
THX. So option 3. 👍
yes. Essentially exactly what I tried. I however would (and am going to) move that part into I will do this as part of this PR here, i.e., #26411 should be changed accordingly. |
1899955
to
b439b65
Compare
@peterbarker next round to have a look at it :) |
That's
I've fixed that PR up and marked you as co-author on it. #26411 is a good one to merge because it will be an easy backport. |
b439b65
to
4bf1400
Compare
ok, so I removed that part from |
Tested that PR. Turns out we were also missing a call to populate the I've marked that other PR for MergeOnCIPass - you might want to rebase on top of it? Please let me know once you've retested and I can merge this (tridge is happy). |
ups ... in the older PRs (#25838) I had that ...
sounds like a plan :) THX!! |
4bf1400
to
2d6eb63
Compare
@peterbarker given that I have not spotted in my testing routine effects of the missing
On the copter and plane I just flashed ArduPilot and checked if the channels still work. |
2d6eb63
to
bdd54e8
Compare
@peterbarker
tested and IMHO you can merge :) also just did another rebase |
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.
LGTM
Merged, thanks! |
Yiiiippppeeeehhhhhhh |
@olliw42 , @peterbarker was looking at what wiki is needed(if any) for this and saw that there is no extract_features.py update to accompany this...can one of you do this so some user can know if the feature is included or not in the firmware for a board type? |
birefly looked at it |
any entry in build_options.py should have a corresponding entry in extract_features.py....if you find any that dont, create an issue...thanks |
ah, ok, not all rc protocol options are in build_options.py. thx. |
This PR substitutes #25838, and also #24577
It does three things
The "original" code is in my betapilot fork, which I have test flown on two vehicles (a copter and a plane). The exact code in this PR here I have tested on a bench test setup.