I would like to connect 3G communication board to Pixhawk via UART and send some sensor values to a cloud server.
My understanding is that I should implement MAVLINK protocoll on my 3G board and communicate with pixhawk.
To get sensor value from pixhawk,
(1) send MESSAGE_INTERNAL to select which message the 3G board receive
(2) receive some messages, decode it and extract the values I want and send them to the cloud server
My question is, to communicate with Pixhawk, I have to specify system id and component id (byte index 3 and 4 in MAVLINK packet). How can I decide
I found the discussion "Can we have multiple system ids in different components in the same vehicle?" . According to this, system_id equates to a vehicle (usually, '1'), how about component_id? May I set it to MAV_COMP_IDUART_BRIDGE?
I am a newbie and I might have sent this message to a wrong place.If this is the wrong place, please let me know and I would send this to the right place.
Thanks in advance.