A ramp assembly includes a ramp movable between a deployed position, a stowed position, and an intermediate position and a drive mechanism comprising a motor configured to move the ramp between the deployed position and the stowed position. The motor has a shunted mode and a non-shunted mode. The assembly further includes a first detecting arrangement configured to detect a position of the ramp and a second detecting arrangement configured to detect a direction of movement of the ramp, with the motor being placed in one of the shunted mode and the non-shunted mode based on the position and the direction of movement of the ramp.