Aircraft control method and apparatus, aircraft, and storage medium
A UAV control method, a device, a UAV, and a storage medium are provided. The method includes: obtaining a UAV's take-off position; obtaining a height map of an area around the take-off position; determining height information of a highest target in the area around the take-off position based on the height map; determining a relative height between the highest target and the take-off position based on the height information of the highest target; determining a restricted flight altitude of the UAV relative to the take-off position based on the relative height, and controlling the UAV based on the restricted flight altitude; where the restricted flight altitude is greater than or equal to the relative height. It thus can ensure flight safety while offering more reasonable and user-friendly flight flexibility and freedom.
1 . A method for controlling an aircraft, comprising:
obtaining a restricted flight altitude with respect to a take-off position of the aircraft; wherein the restricted flight altitude is related to height information, with respect to sea level, of a highest target in an area around the take-off position; and
controlling, based at least in part on the restricted flight altitude, the aircraft, such that a maximum altitude reachable by the aircraft is higher than a height of the highest target.
2 . The method according to claim 1 , further comprising:
obtaining the height information of the highest target in the area around the take-off position from a height map of the area around the take-off position.
3 . The method according to claim 1 , wherein the restricted flight altitude is greater than a relative height between the highest target and the take-off position.
4 . The method according to claim 1 , further comprising:
outputting the restricted flight altitude; or
sending the restricted flight altitude to a control terminal of the aircraft.
5 . The method according to claim 1 , wherein the height map of the area around the take-off position includes at least one of: a building height map of the area around the take-off position, or a terrain map of the area around the take-off position.
6 . The method according to claim 5 , wherein in response to the aircraft is located in an urban area, the height map of the area around the take-off position includes the building height map of the area around the take-off position.
7 . The method according to claim 5 , wherein in response to the aircraft is located in a non-urban area, the height map of the area around the take-off position includes the terrain map of the area around the take-off position.
8 . The method according to claim 2 , wherein the height map of the area around the take-off position is obtained from a server.
9 . The method according to claim 1 , wherein the height map includes a first height map generated based at least in part on sensor data collected by an aircraft flying in the area around the take-off position.
10 . The method according to claim 1 , further comprising:
determining whether the aircraft has a permission to set the restricted flight altitude;
in response to determining that the aircraft has the permission to set the restricted flight altitude, determining, based at least in part on the height information of the highest target, the restricted flight altitude of the aircraft relative to the take-off position, and the controlling, based at least in part on the restricted flight altitude, the aircraft including: controlling, based at least in part on the restricted flight altitude determined, the aircraft.
11 . The method according to claim 10 , further comprising:
in response to determining that the aircraft has no permission to set the restricted flight altitude, obtaining a fixed restricted flight altitude relative to the take-off position, and the controlling, based at least in part on the restricted flight altitude, the aircraft including: controlling, based at least in part on the fixed restricted flight altitude, the aircraft.
12 . The method according to claim 10 , wherein the determining whether the aircraft has the permission to set the restricted flight altitude includes:
determining, based at least in part on the take-off position, whether the aircraft has the permission to set the restricted flight altitude.
13 . The method according to claim 10 , wherein the determining whether the aircraft has the permission to set the restricted flight altitude includes:
determining, based at least in part on identity information associated with the aircraft, whether the aircraft has the permission to set the restricted flight altitude.
14 . The method according to claim 10 , wherein the determining whether the aircraft has the permission to set the restricted flight altitude includes:
determining whether an electronic certificate for setting the restricted flight altitude issued by a flight regulatory authority is obtained; and
in response to that the electronic certificate for setting the restricted flight altitude is obtained, determining that the aircraft has the permission to set the restricted flight altitude.
15 . The method according to claim 10 , wherein the determining whether the aircraft has the permission to set the restricted flight altitude includes:
In response to receiving an operation from a user to set the restricted flight altitude, determining whether the aircraft has the permission to set the restricted flight altitude.
16 . The method according to claim 1 , further comprising:
obtaining third-party map data; and
planning a return route for the aircraft based at least in part on the third-party map data to avoid obstacles.
17 . The method according to claim 16 , wherein the planning of the return route based at least in part on the third-party map data includes:
planning the return route of the aircraft based at least in part on the third-party map data to avoid obstacles under a condition including at least one of night, white walls, or glass.
18 . The method according to claim 1 , further comprising:
in a process of performing an automated task toward a target, planning the automated task based at least in part on the third-party map data to avoid obstacles.
19 . A control device for controlling an aircraft, comprising:
at least one storage medium storing at least one set of instructions; and
at least one processor in communication with the at least one storage medium, wherein during operation, the at least one processor executes the at least one set of instructions to cause the control device to at least:
obtain a restricted flight altitude with respect to a take-off position of the aircraft; wherein the restricted flight altitude is related to height information, with respect to sea level, of a highest target in an area around the take-off position, and
control, based at least in part on the restricted flight altitude, the aircraft, such that a maximum altitude reachable by the aircraft is higher than a height of the highest target.
20 . A non-transitory computer-readable storage medium, comprising a set of instructions for controlling an aircraft, wherein when executed by at least one processor, the set of instruction directs the at least one processor to perform:
obtaining a restricted flight altitude with respect to a take-off position of the aircraft; wherein the restricted flight altitude is related to height information, with respect to sea level, of a highest target in an area around the take-off position; and
controlling, based at least in part on the restricted flight altitude, the aircraft, such that a maximum altitude reachable by the aircraft is higher than a height of the highest target.