mavlink / mavros

MAVLink to ROS gateway with proxy for Ground Control Station
Other
853 stars 990 forks source link

Question : Targeting specific Component ID for sending Mavlink messages #1576

Open aman-patel opened 3 years ago

aman-patel commented 3 years ago

Hi all, I have been working with mavros on my pi4 with arducopter and have a camera gimbal on the telem connection with the pixhawk. I am not able to control the attitude of the gimbal using command long from mavros. I'm using the following command for the movement of the gimbal : rosrun mavros mavcmd long 205 param1 param2 param3 param4 param5 param6 param7 Is there anyway in mavros in which I can specify my target system ID and target component ID for sending mavcmd long commands.

Thank you.

vooon commented 3 years ago

That's almost not possible with command plugin, it only can send broadcasts or fcu command. Perhaps APM can route broadcast message, if not then you should write custom plugin.