MAVSDK-Python icon indicating copy to clipboard operation
MAVSDK-Python copied to clipboard

display the RC channel input value on the screen.

Open junhyuk9976 opened this issue 5 years ago • 12 comments

I want to display the RC channel input value on the screen. I couldn't find it in the API reference. Any help would be greatly appreciated.

junhyuk9976 avatar Jun 10 '20 08:06 junhyuk9976

Yes, it's currently not implemented looking at http://mavsdk-python-docs.s3-website.eu-central-1.amazonaws.com/plugins/telemetry.html.

Which MAVLink message information would the information be in that you need?

julianoes avatar Jun 10 '20 08:06 julianoes

HIL_RC_INPUTS_RAW(#92).

junhyuk9976 avatar Jun 10 '20 08:06 junhyuk9976

But this message is not implemented or used for PX4. It is specfically for HIL (hardware in the loop) simulation. Are you sure?

julianoes avatar Jun 10 '20 09:06 julianoes

But this message is not implemented or used for PX4. It is specfically for HIL (hardware in the loop) simulation. Are you sure?

I couldn't explain it properly. I am wondering if there is a function similar to HIL_RC_INPUTS_RAW(#92) in MAVSDK-API.

junhyuk9976 avatar Jun 11 '20 00:06 junhyuk9976

Do you want to send RC channels using MAVSDK or do you want to have telemetry about what is being sent by some other RC?

julianoes avatar Jun 11 '20 10:06 julianoes

I want to know the Hz value of the RC channel remotely.

like PyMAVLink

`import time from pymavlink import mavutil

Drone = mavutil.mavlink_connection('udpin:192.168.1.1:14550')

while True: try: print(Drone.recv_match(type='RC_CHANNELS', blocking=True)) except: pass time.sleep(0.1)`

Do you want to send RC channels using MAVSDK or do you want to have telemetry about what is being sent by some other RC?

junhyuk9976 avatar Jun 12 '20 01:06 junhyuk9976

I used the Insert code function, but it doesn't work..

junhyuk9976 avatar Jun 12 '20 01:06 junhyuk9976

Ok, you need telemetry for RC_CHANNELS, now I understand it.

julianoes avatar Jun 12 '20 06:06 julianoes

Hi @julianoes,

How is going this feature? I am developing a safe landing system with computer vision and I need to detect the RC switches values to be able to abort the landing if the pilot wants.

Do you know any available method to do this with mavsdk or do I have to wait for this improvement?

Thank you in advance,

Sergi.

slucasm avatar Nov 26 '20 17:11 slucasm

Hey @julianoes,

I would also like to know the status of this feature request. I am trying to get the status of the RC switches as well. Thanks!

Nbelles avatar Apr 01 '22 16:04 Nbelles

Hi, same question/request. I have a Cube connected to a linux companion computer via the Telemetry uart and I would like to read the RC channel values that are sent from the transmitter on the ground on the companion computer. What is the status of this feature, is it possible? If not, what is the least painfull work-around?

eduardkieser avatar May 24 '22 12:05 eduardkieser

I guess we need somebody to contribute RC_CHANNELS to the telemetry plugin. Happy to help if someone is willing to do that :+1:

JonasVautherin avatar May 24 '22 12:05 JonasVautherin