Specific embodiment
With reference to the accompanying drawing and specific embodiment the present invention is further described in more detail.
Fig. 1 is the control method flow chart of movable equipment provided by the embodiments of the present application, and specific step is as follows:
Step 101:Terminal detects that user's finger pins the screen of this terminal, then record user's finger on the screen just
Beginning position.
Step 102:Terminal detects the position of user's finger on the screen, according to the current location of user's finger on the screen
And the initial position of user's finger on the screen, determine the move mode and moving distance of user's finger.
Step 103:Terminal determines the control mode to movable equipment according to the move mode of user's finger;According to
The moving distance of family finger determines the control amount to movable equipment.
Step 104:Terminal sends control command according to determining control mode and control amount, to movable equipment.
In one preferred embodiment, when movable equipment is unmanned plane, user's finger is user's two fingers;
When movable equipment is the holder of unmanned plane, user's finger is that user singly refers to.
In one preferred embodiment, when movable equipment is unmanned plane, in step 102, determine the movement of user's finger away from
From including:
Terminal according to each finger of user current location on the screen and initial position, calculates each finger of user respectively
Moving distance, then using lesser moving distance in two fingers as the moving distance of user's two fingers.
In one preferred embodiment, when movable equipment is unmanned plane, in step 103, according to the mobile side of user's finger
Formula, determination include to the control mode of unmanned plane:
When user's two fingers move up, determination is to the control mode of unmanned plane:Unmanned plane is controlled to rise;
Or/and when user's two fingers move down, determination is to the control mode of unmanned plane:Control unmanned plane decline;
Or/and when user's two fingers are moved to the left, determination is to the control mode of unmanned plane:Control unmanned plane flies to the left
Row;
Or/and when user's two fingers move right, determination is to the control mode of unmanned plane:Control unmanned plane flies to the right
Row;
Or/and when user's two fingers are closed up, determination is to the control mode of unmanned plane:Unmanned plane is controlled to retreat;
Or/and when the separation of user's two fingers, determination is to the control mode of unmanned plane:Unmanned plane is controlled to advance.
In one preferred embodiment, when movable equipment is unmanned plane, the move mode of user's two fingers is divided into advance
Three set:First set is to move up and down;Second set is:Move to the left and to the right, third collection be combined into close up and
Separation;
In step 102, determine that the move mode of user's finger includes:
This movement of terminal check is after user's two fingers pin the screen of this terminal, user's two fingers are lifted on this terminal screen
Second between before rising and effective movement later, then comparing this move mode and the last effective move mode is
It is no to belong to identity set, if so, determining this movement effectively, this move mode is recorded, and continue to execute step 103;Otherwise,
It determines that this movement is invalid, ignores this movement.
In one preferred embodiment, when movable equipment is the holder of unmanned plane, the shifting of user's finger is determined in step 102
Dynamic distance includes:
According to the movement in the leftward or rightward direction of user's finger on the screen, determine user's finger in leftward or rightward side
Upward moving distance, while according to the movement on the direction upward or downward of user's finger on the screen, determine user's finger
Moving distance in an upward or a downward direction.
In one preferred embodiment, when movable equipment is the holder of unmanned plane, in step 101, terminal records user hand
Refer to that initial position on the screen further comprises:
Terminal draws one using pre-set radius value as radius using user's finger initial position on the screen as the center of circle on the screen
A circle;
In step 102, determine that the moving distance of user's finger includes:
When the moving distance of user's finger in one direction is greater than the radius of circle, then in this direction by user's finger
Moving distance is forced to round radius.
In one preferred embodiment, in step 103, according to the moving distance of user's finger, the control to movable equipment is determined
Amount processed includes:
The moving distance of user's finger is obtained into a ratio value divided by preset proportion threshold value, then by the ratio value multiplied by
Preset maximum control amount, obtains the control amount to movable equipment.
In one preferred embodiment, in step 102, determine that the moving distance of user's finger includes:
If terminal finds that the moving distance of user's finger is less than default Minimum sliding distance, then it is assumed that user's finger this
It is mobile invalid.
In one preferred embodiment, when movable equipment is unmanned plane, terminal detects that user's two fingers are lifted, then to nobody
Machine sends hovering order.
In one preferred embodiment, when movable equipment is the holder of unmanned plane, lifted when terminal detects that user singly refers to
When, still command is sent to holder.
Fig. 2 is the method flow diagram of terminal control unmanned plane provided by the embodiments of the present application, and specific step is as follows:
Step 201:Terminal detects that user's two fingers pin the screen of this terminal, then record user's two fingers on the screen just
Beginning position.
Step 202:The position of user's two fingers on the screen is detected to terminal periodic, on the screen according to user's two fingers
The initial position of current location and user's two fingers on the screen determines the move mode and moving distance of user's two fingers.
Specifically, terminal has the pixel coordinate system of default, and the origin of the coordinate system is the pixel in the upper left corner of screen,
The horizontal direction of the coordinate system is the width direction of terminal, and direction to the right is horizontal square to the Vertical Square of the coordinate system
To the short transverse for terminal, and downwardly direction is vertical positive direction.
User can be arranged at the terminal one move up, move down, being moved to the left, moving right, two fingers are closed up, double
Refer to isolated angular range, to determine the move mode of user's two fingers.Such as it is arranged:
1) when the angle of the moving direction of user's two fingers negative direction vertical with pixel coordinate system is all when [- a °, a °] are interior,
Then determine that user's two fingers move up;
Wherein, a can be empirically determined, and for example, 30;In addition, the moving direction of each finger of user, it can be according to user
The changing coordinates of finger on the screen are calculated with the initial coordinate of user's finger on the screen.
2) when the angle of the moving direction of user's two fingers positive direction vertical with pixel coordinate system is all when [- a °, a °] are interior,
Then determine that user's two fingers move down;
3) when the moving direction of user's two fingers and pixel coordinate system horizontal negative direction angle all when [- b °, b °] are interior,
Then determine that user's two fingers are moved to the left;
Wherein, b can be empirically determined, and for example, 30.
4) when the horizontal square of the moving direction of user's two fingers and pixel coordinate system to angle all when [- b °, b °] are interior,
Then determine that user's two fingers move right;
5) when the horizontal square of the moving direction of the left finger of user and pixel coordinate system to angle in [- c °, c °], and use
The angle of the horizontal negative direction of the moving direction and pixel coordinate system of the right finger in family is when [- c °, c °] are interior, it is determined that user's two fingers are closed
Hold together;
Wherein, c can be empirically determined, and for example, 30.
6) interior at [- c °, c °] when the angle of the horizontal negative direction of the moving direction and pixel coordinate system of the left finger of user, and use
The horizontal square of the moving direction of the right finger in family and pixel coordinate system to angle when [- c °, c °] are interior, it is determined that user's two fingers point
From.
The calculating process of the moving distance of user's two fingers is as follows:
Respectively according to each finger of user changing coordinates on the screen and initial coordinate, the shifting of each finger of user is calculated
Dynamic distance, then using lesser moving distance in two fingers as the moving distance of user's two fingers.
Preferably, if the moving distance of terminal discovery user's two fingers is less than default Minimum sliding distance, then it is assumed that Yong Hushuan
Refer to that this movement is invalid.
Step 203:Terminal determines the control mode to unmanned plane according to the move mode of user's two fingers;It is double according to user
The moving distance of finger determines the control amount to unmanned plane.
Specifically:
1) when user's two fingers move up, determination is to the control mode of unmanned plane:Unmanned plane is controlled to rise;
2) when user's two fingers move down, determination is to the control mode of unmanned plane:Control unmanned plane decline;
3) when user's two fingers are moved to the left, determination is to the control mode of unmanned plane:Control unmanned plane flies to the left;
4) when user's two fingers move right, determination is to the control mode of unmanned plane:Control unmanned plane flies to the right;
5) when user's two fingers are closed up, determination is to the control mode of unmanned plane:Unmanned plane is controlled to retreat;
6) when user's two fingers separate, determination is to the control mode of unmanned plane:Unmanned plane is controlled to advance.
According to the moving distance of user's two fingers, detailed process is as follows for the determining control amount to unmanned plane:
The moving distance of user's two fingers is obtained into a ratio value divided by preset proportion threshold value, then by the ratio value multiplied by
Preset maximum control amount, obtains the control amount to unmanned plane, which is usually speed.
Wherein, when user's two fingers upwards, move down when, corresponding proportion threshold value is identical, can be terminal screen
Height or other values of setting;When user's two fingers to the left, move right and close up, separate when, corresponding proportion threshold value
It is identical, it can be the screen width of terminal or other values of setting.
Step 204:Terminal sends control command according to determining control mode and control amount, to unmanned plane.
Preferably, when terminal detects that user's two fingers are lifted, hovering order is sent to unmanned plane.
Preferably, the move mode of user's two fingers is divided into three set in advance:First set is to move up and down
It is dynamic;Second set is:It moves to the left and to the right, third collection, which is combined into, to be closed up and separate, and in step 202, terminal determines user's two fingers
Move mode when, if confirm this movement be user's two fingers pin lifted on the screen to user's two fingers after screen before between
Whether second and effective movement later, the then the last effective move mode for comparing this move mode and record belong to
In identity set, if so, determining this movement effectively, this move mode is recorded, and continue to execute follow-up process;Otherwise, really
This fixed movement is invalid, ignores this movement.And when user's two fingers are lifted on the screen, the user's finger recorded is deleted
All effective move modes.
That is, after user's two fingers are pressed on the screen to before lifting, if first time move mode be upwards or to
Hereafter lower movement then only moves up or down effectively to move, other movements are all invalid movement;
After user's two fingers are pressed on the screen to before lifting, if first time move mode is to be moved to the left or right,
Hereafter it is only moved to the left or right effectively to move, other movements are all invalid movement;
After user's two fingers are pressed on the screen to before lifting, if first time move mode is to close up or separate, hereafter
Only close up or be separated into effective movement, other movements are all invalid movement;
It is around here a wheel when being lifted on the screen after terminal detects that user's two fingers are pressed on the screen to user's two fingers
Control process;After user's two fingers are pressed on the screen again, the control of a new round starts.
Fig. 3 is the method flow diagram of the holder of terminal control unmanned plane provided by the embodiments of the present application, and specific steps are such as
Under:
Step 301:Terminal detects that user singly refers to the screen for pinning this terminal, then record user's finger on the screen just
Beginning position.
Step 302:Terminal is being shielded using user's finger initial position on the screen as the center of circle by radius of pre-set radius value
One circle of picture on curtain.
Step 303:The position of user's finger on the screen is detected to terminal periodic, on the screen according to user's finger
Current location and initial position calculate user's finger moving direction on the screen and moving distance.
It should be noted that from control unmanned plane can only one direction control it is different, control holder when, not only can control cloud
Platform one direction is mobile, can also control holder simultaneously to both direction movement, such as:It is mobile to upper left, lower-left, upper right, bottom right.
It, can be according to user's finger on the screen when calculating user's finger moving direction on the screen and moving distance
The movement of horizontal direction (leftward or rightward) determines the moving distance of user's finger in the horizontal direction, while according to user hand
The movement for referring to vertical direction (upward or downward) on the screen, determines the moving distance of user's finger in vertical direction.
Preferably, when the moving distance of user's finger in the horizontal direction and the vertical direction is greater than the radius of circle, then will
The moving distance of user's finger in the horizontal direction and the vertical direction is forced to round radius.
Step 304:Moving direction of the terminal according to user's finger on the screen determines the controlling party to the holder of unmanned plane
To;According to the moving distance of user's finger on the screen, the control amount to the holder of unmanned plane is determined.
Specifically, in the moving distance according to user's finger on the screen, when determining the control amount to the holder of unmanned plane,
If user's finger is moved in two directions, respectively for moving distance in each direction, each direction is calculated
On to the control amount of unmanned plane.
Specifically, user's finger moving distance in a certain direction is obtained into a ratio divided by preset proportion threshold value
Example value obtains the control amount in this direction to holder by the ratio value multiplied by default maximum control amount.Wherein, preset ratio
Threshold value can be the radius of circle.
Control amount is usually speed.
Preferably, when the moving distance of user's finger is less than default Minimum sliding distance, it is believed that user's finger this
It is mobile invalid.
Step 305:Terminal, to the control direction of holder and control amount, sends control command to holder according to determining.
Specifically, it when user's finger has carried out mobile in two directions, then needs in control command while carrying
For the control amount of the both direction.
Preferably, when user's finger is lifted, still command is sent to holder, current location is parked in order holder.
Fig. 4 is the method flow diagram of the camera of terminal control unmanned plane provided by the embodiments of the present application, and specific steps are such as
Under:
Step 401:Terminal detects that user's finger clicks the camera applications of this terminal, then opens camera interface.
Step 402:Terminal detects that user's finger clicks the button of taking pictures on camera interface, then to the camera of unmanned plane
Send photographing command.
Step 403:Terminal detects that user's finger clicks the switching working mode button on camera interface, and confirms and use
Family will be switched to video mode, then be transmitted into video mode order to the camera of unmanned plane;When detect user's finger click
Start to record button, then sent to the camera of unmanned plane and start recorded video order, while will start to record button and becoming to stop
Only record button;Stop recording button when detecting that user's finger clicks, then sends stopping recording to the camera of unmanned plane and regard
Frequency is ordered.
Switching working mode button is defaulted as photographing mode, can switch between photographing mode and video mode.
Preferably, terminal to the camera of unmanned plane send photographing command after, receive camera return response when, can to
Family shows " in taking pictures ", receive that camera sends take pictures end notification when, " end of taking pictures " can be shown to user;Similarly,
After sending beginning recorded video order to camera, when receiving the response of camera return, " recorded video can be shown to user
In ", after sending stopping recorded video order to camera, when receiving the response of camera return, it can be shown to user and " record knot
Beam ".
Preferably, when using the camera of remote control control unmanned plane, camera receives the control command that remote controler is sent
When, which can be synchronized to terminal and shown.Such as:Camera receives the beginning recorded video order that remote controler is sent
When, it can be sent to terminal and start recorded video notice, when terminal receives the notice, show " recorded video to user on the screen
In ", when camera receives the stopping recorded video order that remote controler is sent, recorded video end notification can be sent to terminal, eventually
When end receives the notice, " recording terminates " is shown to user on the screen.
Preferably, when terminal detects user setting camera parameter, which is carried and is sent out in setting command
Camera is given, and after receiving the setting success or failure instruction of camera return, shows " setting success or failure " to user.
Terminal in the embodiment of the present application is any terminal for having touch screen, includes:PC, handheld terminal etc. are held eventually
End such as mobile phone.
Fig. 5 is the composition schematic diagram of the control device of movable equipment provided by the embodiments of the present application, which is located at eventually
On end, the device mainly includes:Touch detection and computing module and control module, wherein:
Touch detection and computing module:It detects that user's finger pins the screen of this terminal, then records user's finger and shielding
Initial position on curtain, detection user's finger position on the screen, according to user's finger current location on the screen and
The initial position of user's finger on the screen determines the move mode and moving distance of user's finger.
Control module:According to the move mode for the user's finger that touch detection and computing module determine, determine to removable
The control mode of equipment;According to the moving distance for the user's finger that touch detection and computing module determine, determines and set to removable
Standby control amount;According to determining control mode and control amount, control command is sent to movable equipment.
In one preferred embodiment, when movable equipment is unmanned plane, user that touch detection and computing module detect
Finger is user's two fingers;
When movable equipment is the holder of unmanned plane, the user's finger that touch detection and computing module detect is user
Singly refer to.
In one preferred embodiment, when movable equipment is unmanned plane,
Touch detection and computing module determine that the moving distance of user's finger includes:
Respectively according to each finger of user current location on the screen and initial position, the shifting of each finger of user is calculated
Dynamic distance, then using lesser moving distance in two fingers as the moving distance of user's two fingers.
In one preferred embodiment, when movable equipment is unmanned plane,
The move mode for the user's finger that control module is determined according to touch detection and computing module, determines to unmanned plane
Control mode includes:
When user's two fingers move up, determination is to the control mode of unmanned plane:Unmanned plane is controlled to rise;
Or/and when user's two fingers move down, determination is to the control mode of unmanned plane:Control unmanned plane decline;
Or/and when user's two fingers are moved to the left, determination is to the control mode of unmanned plane:Control unmanned plane flies to the left
Row;
Or/and when user's two fingers move right, determination is to the control mode of unmanned plane:Control unmanned plane flies to the right
Row;
Or/and when user's two fingers are closed up, determination is to the control mode of unmanned plane:Unmanned plane is controlled to retreat;
Or/and when the separation of user's two fingers, determination is to the control mode of unmanned plane:Unmanned plane is controlled to advance.
In one preferred embodiment, when movable equipment is unmanned plane,
Touch detection and computing module pre-save three set that the move mode that user is user's two fingers divides:First
Collection is combined into be moved up and down;Second set is:It moves to the left and to the right, third collection, which is combined into, to be closed up and separate;
Touch detection and computing module determine that the move mode of user's finger includes:
Before confirming that this movement is after user's two fingers pin the screen of this terminal, user's two fingers are lifted on this terminal screen
Between second and effective movement later, then compare this move mode and whether effective move mode of the last time belong to
In identity set, if so, determining this movement effectively, this move mode is recorded;Otherwise, it determines this movement is invalid.
In one preferred embodiment, when movable equipment is the holder of unmanned plane, touch detection and computing module are determined and are used
The moving distance of family finger includes:
According to the movement in the leftward or rightward direction of user's finger on the screen, determine user's finger in leftward or rightward side
Upward moving distance, while according to the movement on the direction upward or downward of user's finger on the screen, determine user's finger
Moving distance in an upward or a downward direction.
In one preferred embodiment, the initial position of touch detection and computing module record user's finger on the screen is further
Including:
Using the initial position of user's finger on the screen as the center of circle, one is drawn on the screen as radius using pre-set radius value
Circle;
Touch detection and computing module determine that the moving distance of user's finger includes:
When the moving distance of user's finger in one direction is greater than the radius of circle, then in this direction by user's finger
Moving distance is forced to round radius.
In one preferred embodiment, the movement of the user's finger that control module is determined according to touch detection and computing module away from
From determination includes to the control amount of movable equipment:
The moving distance of user's finger is obtained into a ratio value divided by preset proportion threshold value, then by the ratio value multiplied by
Preset maximum control amount, obtains the control amount to movable equipment.
In one preferred embodiment, control module is further used for,
It detects that user's finger clicks the camera applications of this terminal, then opens camera interface;
It detects that user's finger clicks the button of taking pictures on camera interface, then sends life of taking pictures to the camera of unmanned plane
It enables;
It detects that user's finger clicks the switching working mode button on camera interface, and confirms that user will be switched to view
Frequency mode is then transmitted into video mode order to the camera of unmanned plane;When detect user's finger click start record by
Button then sends to the camera of unmanned plane and starts recorded video order, while will start recording button and becoming to stop recording button;When
It detects that user's finger clicks stopping and records button, is then sent to the camera of unmanned plane and stop recorded video order.
In one preferred embodiment, control module is further used for, and receives remote controler that the camera of unmanned plane is sent to the phase
The control command is shown to user by the control command of machine.
The foregoing is merely the preferred embodiments of the application, not to limit the application, all essences in the application
Within mind and principle, any modification, equivalent substitution, improvement and etc. done be should be included within the scope of the application protection.