Method for monitoring unmanned aerial vehicle, and terminal and readable storage medium
The present disclosure relates to the field of unmanned aerial vehicle technologies, and provides a method for monitoring an unmanned aerial vehicle, a terminal and a non-volatile computer-readable storage medium. The method for monitoring an unmanned aerial vehicle includes: obtaining first location information, the first location information including a location parameter of a home point of an unmanned aerial vehicle; obtaining second location information, the second location information including a location parameter of a current location of the unmanned aerial vehicle; and displaying a relative location of the unmanned aerial vehicle in a first terminal according to the first location information and the second location information by using the home point as a reference point. Through the foregoing method, the embodiments of the present disclosure can improve a sense of spatial orientation of the user when controlling the unmanned aerial vehicle.
1 . A method for monitoring an unmanned aerial vehicle, comprising:
obtaining first location information, the first location information comprising a location parameter of a home point of an unmanned aerial vehicle;
obtaining second location information, the second location information comprising a location parameter of a current location of the unmanned aerial vehicle;
calculating a first distance between the unmanned aerial vehicle and the home point according to the first location information and the second location information;
displaying a relative location of the unmanned aerial vehicle in an attitude sphere displayed by a first terminal according to the first distance by using the home point as a reference point, the attitude sphere being generated by using the home point as a center, and an unmanned aerial vehicle mark indicating the unmanned aerial vehicle being always located in the attitude sphere;
obtaining flight information of the unmanned aerial vehicle, the flight information comprising a gimbal orientation, a horizontal flight speed, a vertical flight speed and an altitude of the unmanned aerial vehicle; and
displaying at least one of the first distance, the gimbal orientation, the horizontal flight speed, the vertical flight speed and the altitude in the attitude sphere displayed by the first terminal.
2 . The method according to claim 1 , wherein the displaying the relative location of the unmanned aerial vehicle in the attitude sphere displayed by the first terminal according to the first distance by using the home point as the reference point comprises:
determining a relative location corresponding to a preset threshold in the first terminal as the relative location of the unmanned aerial vehicle, when the relative location of the unmanned aerial vehicle is greater than or equal to the preset threshold;
when the relative location of the unmanned aerial vehicle is greater than the preset threshold, the first distance information in the attitude sphere continues to change with the flight of the unmanned aerial vehicle, and the unmanned aerial vehicle mark stays on an edge of the attitude sphere.
3 . The method according to claim 1 ,
wherein the flight information further comprises a flight orientation of the unmanned aerial vehicle relative to the home point, the first orientation being calculated according to the first location information and the second location information;
the displaying the relative location of the unmanned aerial vehicle in the attitude sphere displayed by the first terminal comprises:
displaying the relative location of the unmanned aerial vehicle in the attitude sphere displayed by the first terminal according to the first distance and the first orientation by using the home point as the reference point.
4 . The method according to claim 3 , further comprising:
updating the location parameter of the home point of the unmanned aerial vehicle according to a user input.
5 . The method according to claim 1 , further comprising:
obtaining third location information, the third location information being a location parameter of a current location of a second terminal, the second terminal being configured to control the unmanned aerial vehicle;
calculating a second distance between the second terminal and the home point and a second orientation of the second terminal relative to the home point according to the first location information and the third location information; and
displaying a relative location of the second terminal in the attitude sphere displayed by the first terminal according to the second distance and the second orientation by using the home point as the reference point;
wherein when the second terminal is connected to the first terminal, the attitude sphere is also displayed by the second terminal.
6 . The method according to claim 5 , wherein the flight information further comprises a flight attitude of the unmanned aerial vehicle; and
the method further comprises:
displaying a level instrument in the attitude sphere displayed by the first terminal and adjusting the level instrument in real time according to the flight attitude.
7 . The method according to claim 6 , further comprising:
displaying a north pointing mark in the attitude sphere displayed by the first terminal;
reducing the attitude sphere according to a reduction instruction; and
displaying the level instrument and the north pointing mark in the reduced attitude sphere.
8 . A apparatus for monitoring an unmanned aerial vehicle, comprising:
a display;
at least one processor; and
a memory communicatively connected to the at least one processor; wherein
the memory stores instructions executable by the at least one processor, the instructions being performed by the at least one processor to implement a method for monitoring the unmanned aerial vehicle;
wherein the method for monitoring the unmanned aerial vehicle comprises:
obtaining first location information, the first location information comprising a location parameter of a home point of an unmanned aerial vehicle;
obtaining second location information, the second location information comprising a location parameter of a current location of the unmanned aerial vehicle;
calculating a first distance between the unmanned aerial vehicle and the home point according to the first location information and the second location information;
displaying a relative location of the unmanned aerial vehicle in an attitude sphere displayed by a first terminal according to the first distance by using the home point as a reference point, the attitude sphere being generated by using the home point as a center, and an unmanned aerial vehicle mark indicating the unmanned aerial vehicle being always located in the attitude sphere;
obtaining flight information of the unmanned aerial vehicle, the flight information comprising a gimbal orientation, a horizontal flight speed, a vertical flight speed and an altitude of the unmanned aerial vehicle; and
displaying at least one of the first distance, the gimbal orientation, the horizontal flight speed, the vertical flight speed and the altitude in the attitude sphere displayed by the first terminal.
9 . The apparatus for monitoring the unmanned aerial vehicle according to claim 8 , wherein the displaying the relative location of the unmanned aerial vehicle in the attitude sphere displayed by the first terminal according to the first distance by using the home point as the reference point comprises:
determining a relative location corresponding to a preset threshold in the first terminal as the relative location of the unmanned aerial vehicle, when the relative location of the unmanned aerial vehicle is greater than or equal to the preset threshold;
when the relative location of the unmanned aerial vehicle is greater than the preset threshold, the first distance information in the attitude sphere continues to change with the flight of the unmanned aerial vehicle, and the unmanned aerial vehicle mark stays on an edge of the attitude sphere.
10 . The apparatus for monitoring the unmanned aerial vehicle according to claim 8 , wherein
the flight information further comprises a flight orientation of the unmanned aerial vehicle relative to the home point, the first orientation being calculated according to the first location information and the second location information;
the displaying the relative location of the unmanned aerial vehicle in the attitude sphere displayed by the first terminal comprises:
displaying the relative location of the unmanned aerial vehicle in the attitude sphere displayed by the first terminal according to the first distance and the first orientation by using the home point as the reference point.
11 . The apparatus for monitoring the unmanned aerial vehicle according to claim 10 , wherein the method further comprises:
updating the location parameter of the home point of the unmanned aerial vehicle according to a user input.
12 . The apparatus for monitoring the unmanned aerial vehicle according to claim 8 , wherein the method further comprises:
obtaining third location information, the third location information being a location parameter of a current location of a second terminal, the second terminal being configured to control the unmanned aerial vehicle;
calculating a second distance between the second terminal and the home point and a second orientation of the second terminal relative to the home point according to the first location information and the third location information; and
displaying a relative location of the second terminal in the attitude sphere displayed by the first terminal according to the second distance and the second orientation by using the home point as the reference point;
wherein when the second terminal is connected to the first terminal, the attitude sphere is also displayed by the second terminal.
13 . The apparatus for monitoring the unmanned aerial vehicle according to claim 12 , wherein the flight information further comprises a flight attitude of the unmanned aerial vehicle; and
the method further comprises:
displaying a level instrument in the attitude sphere displayed by the first terminal and adjusting the level instrument in real time according to the flight attitude.
14 . The apparatus for monitoring the unmanned aerial vehicle according to claim 13 , wherein the method further comprises:
displaying a north pointing mark in the attitude sphere displayed by the first terminal;
reducing the attitude sphere according to a reduction instruction; and
displaying the level instrument and the north pointing mark in the reduced attitude sphere.
15 . A non-transitory computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, causes the processor to perform steps comprising:
obtaining first location information, the first location information comprising a location parameter of a home point of an unmanned aerial vehicle;
obtaining second location information, the second location information comprising a location parameter of a current location of the unmanned aerial vehicle;
calculating a first distance between the unmanned aerial vehicle and the home point according to the first location information and the second location information;
displaying a relative location of the unmanned aerial vehicle in an attitude sphere displayed by a first terminal according to the first distance by using the home point as a reference point, the attitude sphere being generated by using the home point as a center, and an unmanned aerial vehicle mark indicating the unmanned aerial vehicle being always located in the attitude sphere;
obtaining flight information of the unmanned aerial vehicle, the flight information comprising a gimbal orientation, a horizontal flight speed, a vertical flight speed and an altitude of the unmanned aerial vehicle; and
displaying at least one of the first distance, the gimbal orientation, the horizontal flight speed, the vertical flight speed and the altitude in the attitude sphere displayed by the first terminal.
16 . The non-transitory computer-readable storage medium according to claim 15 , wherein the displaying the relative location of the unmanned aerial vehicle in the attitude sphere displayed by the first terminal according to the first distance by using the home point as the reference point comprises:
determining a relative location corresponding to a preset threshold in the first terminal as the relative location of the unmanned aerial vehicle, when the relative location of the unmanned aerial vehicle is greater than or equal to the preset threshold;
when the relative location of the unmanned aerial vehicle is greater than the preset threshold, the first distance information in the attitude sphere continues to change with the flight of the unmanned aerial vehicle, and the unmanned aerial vehicle mark stays on an edge of the attitude sphere.
17 . The non-transitory computer-readable storage medium according to claim 15 , wherein the flight information further comprises a flight orientation of the unmanned aerial vehicle relative to the home point, the first orientation being calculated according to the first location information and the second location information;
the displaying the relative location of the unmanned aerial vehicle in the attitude sphere displayed by the first terminal comprises:
displaying the relative location of the unmanned aerial vehicle in the attitude sphere displayed by the first terminal according to the first distance and the first orientation by using the home point as the reference point.
18 . The non-transitory computer-readable storage medium according to claim 15 , further comprising:
obtaining third location information, the third location information being a location parameter of a current location of a second terminal, the second terminal being configured to control the unmanned aerial vehicle;
calculating a second distance between the second terminal and the home point and a second orientation of the second terminal relative to the home point according to the first location information and the third location information; and
displaying a relative location of the second terminal in the attitude sphere displayed by the first terminal according to the second distance and the second orientation by using the home point as the reference point;
wherein when the second terminal is connected to the first terminal, the attitude sphere is also displayed by the second terminal.
19 . The non-transitory computer-readable storage medium according to claim 18 , wherein the flight information further comprises a flight attitude of the unmanned aerial vehicle; and
the method further comprises:
displaying a level instrument in the attitude sphere displayed by the first terminal and adjusting the level instrument in real time according to the flight attitude.
20 . The non-transitory computer-readable storage medium according to claim 19 , further comprising:
displaying a north pointing mark in the attitude sphere displayed by the first terminal;
reducing the attitude sphere according to a reduction instruction; and
displaying the level instrument and the north pointing mark in the reduced attitude sphere.