-
-
Notifications
You must be signed in to change notification settings - Fork 510
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
Detecting button pressing in real radio command with MAVSDK #2445
Comments
Ok, can you give some more context? So, where is MAVSDK used: on the ground or on a companion? In other words, do you want to detect the button pressed on the drone based on what a ground station (or RC) sends? Or do you want a button command to be sent from the ground using MAVSDK? |
MAVSDK is used in a companion computer (Jetson). And yes, I want to detect the button pressed on the drone based on what a ground station (or RC) sends. |
Ok, and what message is used to send that button? Presumably it's MANUAL_CONTROL? In that case, I wonder if PX4 emits something to signal that a button has been pressed, presumably not, and you have to "intercept" this message in MAVSDK. Are you using MAVSDK in C++? In that case you can intercept messages manually: |
I think there has been a misunderstanding. I'm not sending myself the buttons states, but I want to receive them. |
So what you're saying is that you're not sending MAVLink RC to PX4, so there is no way for MAVSDK to intercept that message. In that case you have to make sure PX4 sends out RC_CHANNELS and than subscribe to this one in MavlinkPassthrough. |
Okay, I see. Thanks for your support. |
You're welcome. I'll close this then. |
I'm a new user of MAVLINK and I'm looking for a particular functionality that I'm not sure if it's implemented in MAVSDK (i.e, I haven't seen it in the source code).
I'm trying to detect the actual pressing of a button in the real radio command of my drone.
Is this possible with MAVSDK?
The text was updated successfully, but these errors were encountered: