The present application discloses a foldable frame and a UAV. The frame includes: a
fuselage; a connecting arm, which is connected to the
fuselage and can rotate between an unfolded position and a folded position; and a rotating member and a fixed member, the rotating member is mounted on the connecting arm, and the fixed member is mounted on the
fuselage; one of the rotating member and the fixed member is a
magnet that can generate a
magnetic field, and the other is a
magnet or a ferromagnetic material that can be attracted by a
magnet. When the connecting arm rotates, under the interaction between the rotating member and the fixed member, the connecting arm can rotate to an unfolded or folded position and maintain in this position. The present application can be applied to the field of UAV technology. The connecting arm can rotate and drive the rotor or the
gimbal to unfold or fold. After the rotor is folded, it is convenient for the transportation of the UAV, and at the same time, it can avoid collision and damage of the rotor. After the
gimbal is unfolded, the camera device can avoid the interference of the
landing gear, and realize interference-free
panoramic photography; under the action of the
magnetic field force of the rotating member and the fixed member, the connecting arm can keep the rotor or the
gimbal in the unfolded or folded position.