I have written custom functions in MAVSDK-Python that control a rover for a specific task. I want to trigger these functions using changes in PWM values that are changed by the flipping of switches on the transmitter. Is it possible to extract the current PWM values of all the channels to trigger functions using control statements?
@Jaeyoung-Lim Any ideas?
Is it possible to extract the current PWM values of all the channels to trigger functions using control statements?
@PriyanshuM I think you are maybe mixing PWM outputs with your signals coming out of the receiver, which is not the same. You can look up the mixer documentation of PX4 in this document: Mixing and Actuators | PX4 User Guide
Of course, you can read the RC inputs that is being received by the flight controller.
@Jaeyoung-Lim Thanks for the link to the documentation, I’ll look into it. Can you explain or leave a link to part of the documentation in MAVSDK to read RC inputs in a python script?