How to use mavros_controller with ArduCopter?

how did you convert it to ardupilot from pixhawk?

Pixhawk is an hardware. Ardupilot is a collection of vehicle firmwares.

What exactly is your question?

well, how did u change the mavros controller to be used in ardupilot sitl instead of pixhawk?

Just connect mavros to the SITL communication port, instead of connecting it to the pixhawk hardware communication port

i am using ubuntu 20.04 and ros noetic for sitl, how to connect it to the iris drone in ardupilot sitl?

  1. start arducopter iris SITL.
  2. change the ROS launch file to use fcu_connection=127.0.0.1:14550

This is explained on the docs already.