Sending MAVLink messages via Command_Int is returning COMMAND_ACK:[COMMAND_NAME]:UNSUPPORTED. I am using MAVROS built using ROS2 Foxy to pack and send these commands, using the Command_Long MAVROS service to send a Set_Mode message works but returns COMMAND_ACK:DO_SET_MODE:DENIED when trying to use COMMAND_INT. I have sent the message with frames, MAV_FRAME_GLOBAL, MAV_FRAME_LOCAL_NED, MAV_FRAME_MISSION, MAV_FRAME_GLOBAL_RELATIVE_ALT, MAV_FRAME_GLOBAL_RELATIVE_ALT_INT to no avail.
Current usage:
auto request = std::make_shared<mavros_msgs::srv::CommandInt::Request>();
request->frame = mavros_msgs::msg::Waypoint::FRAME_GLOBAL_REL_ALT;
request->command = 113;
request->current = 0;
request->autocontinue = 0;
request->param1 = 0;
request->param2 = 0;
request->param3 = 0;
request->param4 = 0;
request->x = 0;
request->y = 0;
request->z = alt; (altitude in meters)
auto result = comm_client_->async_send_request(request);