A method of controlling a mobile warning triangle, the mobile warning triangle comprising a first sensor, a second sensor, and a third sensor, the second sensor being located between the first sensor and the third sensor, the method comprising: controlling the mobile warning triangle to move forward and acquiring first color information detected by the first sensor, second color information detected by the second sensor, and third color information detected by the third sensor when the mobile warning triangle is placed on a lane and the first sensor, the second sensor, and the third sensor all detect a lane marking; determining whether the first color information detected by the first sensor, the second color information detected by the second sensor, and the third color information detected by the third sensor are a color of the lane marking; controlling the mobile warning triangle to continue moving forward when the first color information detected by the first sensor, the second color information detected by the second sensor, and the third color information detected by the third sensor are all the color of the lane marking; correcting a moving direction of the mobile warning triangle to a first direction by a first predetermined angle when the first color information detected by the first sensor is not the color of the lane marking, and the second color information detected by the second sensor and the third color information detected by the third sensor are both the color of the lane marking; controlling the mobile warning triangle to continue moving forward when the mobile warning triangle is corrected to the first direction and the first color information detected by the first sensor, the second color information detected by the second sensor, and the third color information detected by the third sensor are all the color of the lane marking; correcting the moving direction of the mobile warning triangle to a second direction by a second predetermined angle when the third color information detected by the third sensor is not the color of the lane marking, and the first color information detected by the first sensor and the second color information detected by the second sensor are both the color of the lane marking; and controlling the mobile warning triangle to continue moving forward when the mobile warning triangle is corrected to the second direction and the first color information detected by the first sensor, the second color information detected by the second sensor, and the third color information detected by the third sensor are all the color of the lane marking. controlling the mobile warning triangle to move forward and acquiring first color information detected by the first sensor, second color information detected by the second sensor, and third color information detected by the third sensor when the mobile warning triangle is placed on a lane and the first sensor, the second sensor, and the third sensor all detect a lane marking; determining whether the first color information detected by the first sensor, the second color information detected by the second sensor, and the third color information detected by the third sensor are a color of the lane marking; controlling the mobile warning triangle to continue moving forward when the first color information detected by the first sensor, the second color information detected by the second sensor, and the third color information detected by the third sensor are all the color of the lane marking; correcting a moving direction of the mobile warning triangle to a first direction by a first predetermined angle when the first color information detected by the first sensor is not the color of the lane marking, and the second color information detected by the second sensor and the third color information detected by the third sensor are both the color of the lane marking; controlling the mobile warning triangle to continue moving forward when the mobile warning triangle is corrected to the first direction and the first color information detected by the first sensor, the second color information detected by the second sensor, and the third color information detected by the third sensor are all the color of the lane marking; correcting the moving direction of the mobile warning triangle to a second direction by a second predetermined angle when the third color information detected by the third sensor is not the color of the lane marking, and the first color information detected by the first sensor and the second color information detected by the second sensor are both the color of the lane marking; and controlling the mobile warning triangle to continue moving forward when the mobile warning triangle is corrected to the second direction and the first color information detected by the first sensor, the second color information detected by the second sensor, and the third color information detected by the third sensor are all the color of the lane marking.