Motors Not Recognized

I’m using a pixhawk with ardupilot installed. I am trying to do a 2 motor setup in an arduplane mode (no reverse thrust needed for now) using this motor and this esc. I connected them to servo 5 and servo 6 and have powered them correctly. I have changed SERVO5_FUNCTION to motor1 and SERVO6_FUNCTION to motor 2. My pixhawk doesnt even recognize the motors and when I go into QGroundControl motors section says “unable to determine motor count”.