QT QGC编译出现错误:“mavlink_msg_battery_status_pack_chan”: 函数不接受 16 个参数

mavlink_msg_battery_status_pack_chan(
_vehicleSystemId,
_vehicleComponentId,
static_cast(_mavlinkChannel),
&msg,
1, // battery id
MAV_BATTERY_FUNCTION_ALL,图片说明

            MAV_BATTERY_TYPE_LIPO,
            2100,                       // temp cdegC
            rgVoltages,
            600,                        // battery cA
            100,                        // current consumed mAh
            -1,                         // energy consumed not supported
            _battery1PctRemaining,
            _battery1TimeRemaining,
            _battery1ChargeState,
            rgVoltagesExtNone);
respondWithMavlinkMessage(msg);

mavlink_msg_battery_status_pack_chan(
            _vehicleSystemId,
            _vehicleComponentId,
            static_cast<uint8_t>(_mavlinkChannel),
            &msg,
            2,                          // battery id
            MAV_BATTERY_FUNCTION_ALL,
            MAV_BATTERY_TYPE_LIPO,
            INT16_MAX,                  // temp cdegC
            rgVoltagesNone,
            600,                        // battery cA
            100,                        // current consumed mAh
            -1,                         // energy consumed not supported
            _battery2PctRemaining,
            _battery2TimeRemaining,
            _battery2ChargeState,
            rgVoltagesExtNone);
respondWithMavlinkMessage(msg);

}