Passing the Ardupilot after px4 Motors are not spinning

Hello everyone
We were trying to pass to Ardupilot from PX4 firmware. Everything was fine in PX4. But Ardupilot does not spin our motors in motor test. We did not understand why is it so. Is there any parameter so we can make enable our motor to spin

MAV_CMD_DO_MOTOR_TEST was denied, I got this error.

Did you set the FRAME_TYPE and FRAME_CLASS parameters ?

You need to do the setup from the beginning, and do not skip any steps.