Hello all:
I use pymavlink to connect to a drone that downloaded px4 firmware.
My drone is equipped with a camera that uses the mavlink protocol.We define camera target_component in the mavlink protocol as 100.
I follow this : https://www.ardusub.com/developers/pymavlink.html
I sent the arm command, but sometimes the drone did not receive it.I debugged it and found that the drone could not accept this command when self.mav.master.target_componentwas 100.The drone receives this command when self.mav.master.target_component is 1.
So my question is how do I send commands to the drone instead of the camera. I know I can manually set it like this:
Is this correct? Or what better way do we have?
How can I control it to connect to the specified target_component?Rather than a random connection
Thank you :smiley:
Hello all: I use pymavlink to connect to a drone that downloaded px4 firmware. My drone is equipped with a camera that uses the mavlink protocol.We define camera target_component in the mavlink protocol as 100. I follow this : https://www.ardusub.com/developers/pymavlink.html
self.mav = mavutil.mavlink_connection('udpin:0.0.0.0:14550')
I sent the arm command, but sometimes the drone did not receive it.I debugged it and found that the drone could not accept this command when
self.mav.master.target_component
was 100.The drone receives this command whenself.mav.master.target_component
is 1.So my question is how do I send commands to the drone instead of the camera. I know I can manually set it like this:
Is this correct? Or what better way do we have? How can I control it to connect to the specified target_component?Rather than a random connection Thank you :smiley: