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
RX MSP overwrite: Using MSP_SET_RAW_RC together with another serial RX #12790
Comments
Any info on the SBC and software used?
|
the best software! 😀 The NPU to quickly run neural network and many thousands of code |
Any repo available on that and specific NPU used? |
For the part that communicates with the flight controller via MSP, will definitely be published, I have already started working on it. sending RC commands via MSP works, i want to add other ʼmsp commandsʼ to get telemetry and stuff... |
I know about this issue. I read everything, but the RX architecture in Betaflight is made so that only one receiver can work. About which NPU, there are already many of them built into CPUs from different manufacturers. I'm currently working with Rockchip, they have different performances NPU, from 1 tops to 6 tops. https://www.rock-chips.com/a/en/products/RV11_Series/index.html Right now I have a small prototype the size of a flight controller. |
Thanks. Interesting. Looking good 😍 Would this PR not allow what you are asking for: #9915 ? |
No. This PR does`t resolve this feature, always RC commands will be rewritten form receiver. To be able to overwrite commands with MSP_RC, need to rewrite this code something like this if (msp_ovveride_activate && channel < NON_AUX_CHANNEL_COUNT)
sample = rxMspReadRawRC(&rxRuntimeState, rawChannel);
else
sample = rxRuntimeState.rcReadRawFn(&rxRuntimeState, rawChannel); where the flag In this way, we will be able to flexibly configure this feature |
@haslinghuis |
Yes like to assist in client implementation. Are you able to provide a sample for testing? |
Yes, I can provide sample for testing |
You can contact me at my name at firmware name dot com |
@haslinghuis Thus we have the opportunity to use MSP_SET_RAW_RC command together with another(any) RX, without breaking Failsafe mode and without overwriting other AUX channels |
@cvetaevvitaliy so, you've added a possibility to control a drone with betaflight firmware via mavlink protocol? Am I right? If yes, could you please give more info or a link how to configure it? |
No, via MSP protocol, BetaFlight supports mavlink but only sending telemetry data, without listening RC commands |
Got it, thanks for the answer anyway. So you use MSP protocol to control the Betaflight drone from the single board computer? |
That's right! |
@cvetaevvitaliy with pleasure |
@cvetaevvitaliy : Using RC override is good for initial testing, but eventually, it would be better to control PID setpoints directly. There was some PR with quaternion as angle mode setpoint |
@ledvinap Thanks for reply. Tell us in detail about PID setpoints, how it can be controlled by MSP |
I was able to verify that with betaflight master:
was enough for me to be able to issue MSP_SET_RAW_RC over either USB or non-usb UART port in MSP_OVERRIDE mode, no other changes were necessary. |
Fixed in #12857 |
@cvetaevvitaliy Thanks for adding this mode! |
Hi! Thanks for your interest in my idea, but my code was not merged ) |
@cvetaevvitaliy Thanks a lot for your fast reply. |
I don't have it anymore, I work immediately with angles in PID controller |
@cvetaevvitaliy Hi, I have exactly the same use-case you described in the first post. How do you control the angles from the single board computer using MSP/SERIAL? Could you please point me to any resources that would help me achieve this? Thanks! |
@cvetaevvitaliy, Vitaliy, how do I contact you? |
@devnim |
@devnim |
Hi @Automate5462 , did you find a solution to the problem you encountered below?
|
No, I have not found the solution.
... |
Is your feature request related to a problem? Please describe
I can only enable RX_MSP or RX_SERIAL, not both. I want to have a single board computer running on the drone (and I like Betaflight 1st_place_medal, so I don't want to use other firmware such as Ardupilot where through Mavlink I can control the drone) for autonomous flight
Describe the solution you'd like
Add a feature to the
Modes
orAdjustments
tabs that will allow us to flexibly adjust the mode: RX MSP OVERRIDEIn detail:
This will allow us to activate this mode 'RX MSP OVERRIDE' at the command of the remote control, as well as to turn it off at any time if the "autonomous flight" is out of control
Describe alternatives you've considered
I tried an autonomous flight on Ardupilot, there it is possible to send RC commands using the Mavlink protocol, but I don't like how it flies, Betaflight is best. Betaflight has the Mavlink protocol but only sends telemetry data.
Other information
I can help with testing and implementation of this feature
The text was updated successfully, but these errors were encountered: