I have an ESP32 connected to Telem 2.
On the companion computer when the GCS connects I get HEARTBEAT messages and periodically
MAVLINK_MSG_ID_REQUEST_DATA_STREAM.
It ignores any data I request.
For example, if I periodically do this;
uint8_t buf[MAVLINK_MAX_PACKET_LEN];
mavlink_message_t msg;
uint8_t command = 512; // MAV_CMD_REQUEST_MESSAGE
uint8_t param1 = MAVLINK_MSG_ID_RC_CHANNELS_RAW;
mavlink_msg_command_long_pack(CC_SYSID, CC_COMPID, &msg, AP_SYS_ID, AP_COMP_ID, command, 0, param1,
0, 0, 0, 0, 0, 0);
uint16_t len = mavlink_msg_to_send_buffer(buf, &msg);
ardupilotPort.write(buf, len);
Nothing changes, I still get the same messages, I have also tried other messages. Is it possible that I somehow have the Telem 2 port pre-configured for a UART GPS module or some other component?