Show source sending message from arduino to QGroundControl using MAVLINK\_MSG\_ID\_ESC\_STATUS of mavlink2
Here is an example of how to send an `ESC_STATUS` message from an Arduino board to QGroundControl using the MAVLink 2 protocol:

**Hardware Requirements:**

* Arduino board (e.g. Arduino Uno, Arduino Mega, etc.)
* Serial communication interface (e.g. UART, USB, etc.)
* QGroundControl software running on a computer or mobile device

**Software Requirements:**

* Arduino IDE (version 1.8.x or later)
* MAVLink library for Arduino (version 2.x or later)

**Code Example:**
```cpp
#include <FastSerial.h>
#include <MAVLink.h>

// Define the serial communication interface
#define SERIAL_PORT Serial

// Define the system ID and component ID
#define MAV_SYS_ID 1
#define MAV_COMP_ID 1

// Create a MAVLink object
MAVLink mavlink(SERIAL_PORT, MAV_SYS_ID, MAV_COMP_ID);

void setup() {
  // Initialize the serial communication interface
  SERIAL_PORT.begin(115200);
}

void loop() {
  // Create an ESC_STATUS message
  mavlink_message_t msg;
  mavlink_msg_esc_status_t esc_status;

  // Set the ESC status fields
  esc_status.header.msgid = MAVLINK_MSG_ID_ESC_STATUS;
  esc_status.header.sysid = MAV_SYS_ID;
  esc_status.header.compid = MAV_COMP_ID;
  esc_status.esc_index = 0; // ESC index (0
  Sure! Here is an example of how to send an esc status message from an Arduino board to QGroundControl using MAVLink:

First, you will need to include the MAVLink library in your Arduino sketch:
```
#include <MAVLink.h>
```
Next, you will need to define the MAVLink message you want to send. In this case, we will be sending an `ESC_STATUS` message:
```
#define MAV_MSG_ESC_STATUS 10

// Define the esc status message
struct esc_status {
    uint8_t esc_id; // ESC ID (0-7)
    uint16_t speed; // ESC speed (in percent)
    uint16_t throttle; // ESC throttle (in percent)
};

// Define the message structure
struct mavlink_msg_esc_status {
    uint8_t msgid; // Message ID (should be 10 for ESC_STATUS)
    uint8_t crc; // CRC checksum
    esc_status esc; // ESC status
};
```
Then, you can send the message using the `mavlinkSendMessage()` function:
```
#include <Wire.h>

// Define the MAVLink