CN103186381B - Method and device for realizing fixed point flight of target - Google Patents

Method and device for realizing fixed point flight of target Download PDF

Info

Publication number
CN103186381B
CN103186381B CN201210592128.2A CN201210592128A CN103186381B CN 103186381 B CN103186381 B CN 103186381B CN 201210592128 A CN201210592128 A CN 201210592128A CN 103186381 B CN103186381 B CN 103186381B
Authority
CN
China
Prior art keywords
waypoint
target
coordinate data
fixed
file
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201210592128.2A
Other languages
Chinese (zh)
Other versions
CN103186381A (en
Inventor
侯富康
关子敬
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Netease Hangzhou Network Co Ltd
Original Assignee
Netease Hangzhou Network Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Netease Hangzhou Network Co Ltd filed Critical Netease Hangzhou Network Co Ltd
Priority to CN201210592128.2A priority Critical patent/CN103186381B/en
Publication of CN103186381A publication Critical patent/CN103186381A/en
Application granted granted Critical
Publication of CN103186381B publication Critical patent/CN103186381B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • User Interface Of Digital Computer (AREA)
  • Navigation (AREA)

Abstract

The embodiment of the invention provides a method for realizing fixed point flight of a target. The method comprises the following steps: acquiring coordinate data of way points where the target can pass through in the fixed point flying process from the outside of a program for realizing fixed point flight of the target; and writing the coordinate data into positions of coordinate parameters in a code string and generating a code file. The code string is particularly a code string for controlling the target to move in a visible interface along the way points determined by the coordinate parameters, so that the method provided by the invention enables planners to obtain the program code file for realizing fixed point flight of the target only by caring about arrangement of a route without knowing codes inside the program, reduces the coupling degree of route data and the codes, relieves work of a programmer and fulfills the aims of saving labor and improving efficiency. Moreover, the invention further provides a device for realizing fixed point flight of the target.

Description

Method and device for achieving target fixed-point flight
Technical Field
The embodiment of the invention relates to the field of game development, in particular to a method and a device for achieving target fixed-point flight.
Background
This section is intended to provide a background or context to the embodiments of the invention that are recited in the claims. The description herein may include concepts that could be pursued, but are not necessarily ones that have been previously conceived or pursued. Thus, unless otherwise indicated herein, what is described in this section is not prior art to the description and claims in this application and is not admitted to be prior art by inclusion in this section.
In the game development process, there is a fixed-point flying game application development, which is to make the target of the visual interface automatically move from a starting waypoint to a destination waypoint and automatically pass through the preset waypoint on the way.
At present, the method for realizing fixed-point flight is as follows:
controlling the target to move on the visual interface by the planning staff, manually recording the coordinates of the passing waypoints of the fixed-point flight route according to the coordinates of the passing waypoints displayed on the visual interface in the moving process, and handing the record to the program developer after the planning staff finishes recording the coordinates of the route points of the whole fixed-point flight route;
and (4) the program developer writes corresponding program codes according to the fixed-point flight route point coordinates provided by the planner to generate the application program of the fixed-point flight.
Disclosure of Invention
However, in the method for realizing fixed-point flight in the prior art, a programmer is required to rewrite the program module each time the fixed-point flight route is adjusted, which causes the problems of manpower waste and low efficiency.
In the prior art, therefore, the development of fixed-point flight applications is a very annoying process.
For this reason, an improved method for achieving target fixed-point flight is highly desirable, which saves labor and increases efficiency.
In this context, embodiments of the present invention are intended to provide a method and apparatus for achieving targeted fixed point flight.
In a first aspect of embodiments of the present invention, there is provided a method for achieving targeted fixed point flight, comprising:
acquiring coordinate data of a waypoint through which the target passes in fixed-point flight from the outside of a program for realizing the fixed-point flight of the target;
and writing the coordinate data into the position of the coordinate parameter in the code string to generate a code file, wherein the code string is specifically a code string for controlling the target to move along the path point determined by the coordinate parameter on the visual interface.
Optionally, the method may further include:
acquiring state data of a waypoint through which the target passes in the fixed-point flight from the outside of the program for realizing the fixed-point flight of the target;
and writing the state data into the position of the state parameter corresponding to the coordinate data of the waypoint in the code string.
Optionally, the status data may include any one or a combination of the following:
speed, direction, or angle of view.
Optionally, after the data is acquired and before the code string is written, the acquired data may also be written into the designated field of the first file;
the retrieved data is also extracted from the specified field of the first file prior to writing the code string.
Optionally, the writing of the acquired data into the specified field of the first file may be specifically performed when the export waypoint instruction is received.
Optionally, the obtaining, from outside of the program for implementing the target fixed-point flight, the coordinate data of the waypoint through which the target will pass during the fixed-point flight may specifically include:
and when the target starts from the previous waypoint and the moving distance is equal to the set waypoint interval, taking the position of the target on the visual interface as the waypoint, and acquiring the coordinate data of the waypoint from the visual interface outside the program for realizing the fixed-point flight of the target.
Optionally, the obtaining, from outside of the program for implementing the target fixed-point flight, the coordinate data of the waypoint through which the target will pass during the fixed-point flight may specifically include:
and if the instruction of adding the waypoint is received, taking the position of the target on the visual interface when the instruction of adding the waypoint is received as the waypoint, and acquiring the coordinate data of the waypoint from the visual interface outside a program for realizing the fixed-point flight of the target.
Optionally, after acquiring the coordinate data, before writing the coordinate data into the position of the coordinate parameter in the code string, any one or a combination of the following may be further included:
when a command for deleting the selection is received, deleting the coordinate data of the waypoint in the selected state from the acquired coordinate data of the waypoint;
or,
when the position modifying instruction is received, coordinate data of a waypoint passed by the target are obtained from the outside of a program for realizing fixed-point flight of the target again to replace the coordinate data of the waypoint obtained before;
or,
when an instruction for clearing the waypoints is received, deleting all the acquired coordinate data of the waypoints;
or,
when receiving an instruction of importing a waypoint, importing a second file, and reading coordinate data contained in a second designated domain of the second file as acquired coordinate data;
or,
when receiving a state data modification instruction, extracting coordinate data and state data of a waypoint from the state data modification instruction, and writing the state data into a position of a state parameter corresponding to the coordinate data of the waypoint in the code string;
or,
and when an instruction for displaying the route is received, displaying the connecting lines at the positions of the acquired coordinate data according to a preset sequence on a visual interface.
Alternatively, the instruction may be obtained by inputting a command input window of the visual control panel.
Optionally, the method may further include: judging whether the designated domain of the first file is associated with a unique identifier of a second application program;
if so, writing the code string of the second application program called by the target when the visual interface reaches the position of the coordinate data contained in the specified field of the first file into the code file.
In a second aspect of embodiments of the present invention, there is provided an apparatus for achieving target fixed point flight, comprising:
an acquisition unit: the method comprises the steps that coordinate data of a way point which is used for achieving target fixed-point flight and is about to pass through by a target during fixed-point flight are obtained from the outside of a program used for achieving target fixed-point flight;
a code generation unit: and configuring the position of a coordinate parameter used for writing the marked data into a code string, and generating a code file, wherein the code string is specifically a code string for controlling the target to move along a path point determined by the coordinate parameter on the visual interface.
Optionally, wherein the obtaining unit: the method can also be configured to obtain state data of a waypoint through which the target passes in the fixed-point flight from outside the program for realizing the fixed-point flight of the target;
wherein the code generation unit: the method can also be configured to write state data into the code string at the position of the state parameter corresponding to the coordinate data of the waypoint.
Optionally, the apparatus may further include:
an intermediate file generation unit: the method comprises the steps of configuring a designated field for writing acquired data into a first file after the data is acquired and before a code string is written;
an intermediate file extraction unit: configured to extract the retrieved data from the specified field of the first file prior to writing the code string.
Optionally, wherein the intermediate file generating unit: and may be specifically configured for execution upon receipt of a go to waypoint instruction.
Optionally, wherein the obtaining unit: specifically, the method may be configured to, when the target starts from the previous waypoint and moves by a distance equal to a set waypoint interval, take the position of the target on the visual interface as the waypoint, and acquire coordinate data of the waypoint from the visual interface outside a program for realizing fixed-point flight of the target.
Optionally, wherein the obtaining unit: specifically, the method may be configured to, if an instruction to add a waypoint is received, use a position of the target on the visual interface when the instruction to add the waypoint is received as the waypoint, and acquire coordinate data of the waypoint from the visual interface outside the program for implementing the target fixed-point flight.
Optionally, the apparatus may further comprise any unit or combination of:
a deletion unit: the method comprises the steps that when a command for deleting a selected state is received, coordinate data of a waypoint in a selected state are deleted from the obtained coordinate data of the waypoint;
or,
modifying the position unit: when receiving the instruction of modifying the position, the configuration is used for acquiring the coordinate data of the waypoint passed by the target from the outside of the program for realizing the fixed-point flight of the target again to replace the coordinate data of the waypoint acquired before;
or,
clearing the waypoint unit: the method comprises the steps that when an instruction for clearing the waypoints is received, coordinate data of all acquired waypoints are deleted;
or,
leading-in waypoint unit: when receiving an instruction of an import waypoint, the configuration is used for importing a second file and reading coordinate data contained in a second designated domain of the second file as acquired coordinate data;
or,
modifying the state unit: when receiving a state data modification instruction, extracting coordinate data and state data of a waypoint from the state data modification instruction, and writing the state data into a position of a state parameter corresponding to the coordinate data of the waypoint in the code string;
or,
a display route unit: and the connecting line is configured for displaying the positions of the acquired coordinate data on the visual interface according to a preset sequence when receiving an instruction for displaying the route.
Optionally, the apparatus may further include: a second application generation unit: and the code string is configured for judging whether the specified field of the first file is associated with the unique identifier of the second application program, and if so, writing the code string for calling the second application program into the code file when the target reaches the position of the coordinate data contained in the specified field of the first file on the visual interface.
Through the description of the technical scheme, the invention has the following beneficial effects:
according to the method and the device for realizing the target fixed-point flight, the coordinate data of the passing route point of the target during the fixed-point flight can be acquired from the outside of the program for realizing the target fixed-point flight, the coordinate data is further written into the position of the coordinate parameter in the code string, and the code file is generated, so that the program code file for realizing the target fixed-point flight can be obtained only by concerning the arrangement of the route without knowing the code in the program, the coupling degree of the route data and the code is reduced, the work of a programmer is liberated, the purposes of saving manpower and improving the efficiency are realized.
Drawings
The above and other objects, features and advantages of exemplary embodiments of the present invention will become readily apparent from the following detailed description read in conjunction with the accompanying drawings. Several embodiments of the invention are illustrated by way of example, and not by way of limitation, in the figures of the accompanying drawings and in which:
FIG. 1 schematically illustrates a block diagram of an exemplary computing system 100 suitable for implementing embodiments of the present invention;
FIG. 2 schematically illustrates an application scenario for targeted pointing of the present invention;
FIG. 3 schematically illustrates a flow chart of a method of the present invention for achieving targeted fixed point flight;
FIG. 4 schematically illustrates a visual control panel diagram suitable for use with an embodiment of the present invention;
FIG. 5 schematically illustrates a first file to which an embodiment of the invention is applicable;
FIG. 6 schematically illustrates a component diagram of an apparatus for achieving targeted fixed point flight in accordance with the present invention;
in the drawings, the same or corresponding reference numerals indicate the same or corresponding parts.
Detailed Description
The principles and spirit of the present invention will be described with reference to a number of exemplary embodiments. It is understood that these embodiments are given solely for the purpose of enabling those skilled in the art to better understand and to practice the invention, and are not intended to limit the scope of the invention in any way. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
FIG. 1 illustrates a block diagram of an exemplary computing system 100 suitable for implementing embodiments of the present invention. As shown in fig. 1, computing system 100 may include: a Central Processing Unit (CPU) 101, a Random Access Memory (RAM) 102, a Read Only Memory (ROM) 103, a system bus 104, a hard disk controller 105, a keyboard controller 106, a serial interface controller 107, a parallel interface controller 108, a display controller 109, a hard disk 110, a keyboard 111, a serial external device 112, a parallel external device 113, and a display 114. Among these devices, coupled to the system bus 104 are a CPU101, a RAM102, a ROM103, a hard disk controller 105, a keyboard controller 106, a serial controller 107, a parallel controller 108, and a display controller 109. The hard disk 110 is coupled to the hard disk controller 105, the keyboard 111 is coupled to the keyboard controller 106, the serial external device 112 is coupled to the serial interface controller 107, the parallel external device 113 is coupled to the parallel interface controller 108, and the display 114 is coupled to the display controller 109. It should be understood that the block diagram of the architecture depicted in FIG. 1 is for purposes of illustration only and is not intended to limit the scope of the present invention. In some cases, certain devices may be added or subtracted as the case may be.
As will be appreciated by one skilled in the art, embodiments of the present invention may be embodied as a system, method or computer program product. Accordingly, the present disclosure may be embodied in the form of: entirely hardware, entirely software (including firmware, resident software, micro-code, etc.) or a combination of hardware and software, and is referred to herein generally as a "circuit," module "or" system. Furthermore, in some embodiments, the invention may also be embodied in the form of a computer program product in one or more computer-readable media having computer-readable program code embodied in the medium.
Any combination of one or more computer-readable media may be employed. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive example) of the computer readable storage medium may include, for example: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
Embodiments of the present invention will be described below with reference to flowchart illustrations of methods and block diagrams of apparatuses (or systems) of embodiments of the invention. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable medium that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable medium produce an article of manufacture including instruction means which implement the function/act specified in the flowchart and/or block diagram block or blocks.
The computer program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other devices to cause a series of operational steps to be performed on the computer, other programmable apparatus or other devices to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide processes for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks.
According to the embodiment of the invention, a method and a device for achieving target fixed point flight are provided.
In this document, it is to be understood that any number of elements in the figures are provided by way of illustration and not limitation, and any nomenclature is used for differentiation only and not in any limiting sense.
The principles and spirit of the present invention are explained in detail below with reference to several representative embodiments of the invention.
Summary of The Invention
The inventor finds that codes for actually realizing control of target flying along a preset route are the same, except for route data, if the route data can be obtained from the outside of a program for realizing fixed-point flying, and the route data is written into the codes in combination with a code fixing rule, the program for realizing target fixed-point flying can be obtained, so that the coupling degree of the route data and the codes can be reduced, the route can be planned and arranged, any work of a programmer is not needed, and the purposes of saving manpower and improving efficiency are realized.
Having described the general principles of the invention, various non-limiting embodiments of the invention are described in detail below.
Application scene overview
Referring first to fig. 2, an application scenario of the fixed-point target flight of the present invention is shown, and an embodiment of the present invention may be used to implement the fixed-point target flight in the application scenario.
Exemplary method
In the following, a method for achieving a target fixed point flight according to an exemplary embodiment of the present invention is described with reference to fig. 3 in conjunction with the application scenario of fig. 2. It should be noted that the above application scenarios are merely illustrated for the convenience of understanding the spirit and principles of the present invention, and the embodiments of the present invention are not limited in this respect. Rather, embodiments of the present invention may be applied to any scenario where applicable.
Referring to fig. 3, which is a flow chart of a method for implementing a target fixed point flight of the present invention, as shown, the exemplary method may include, for example:
s301, acquiring coordinate data of a way point through which a target passes in fixed-point flight from the outside of a program for realizing the fixed-point flight of the target;
s302, writing the coordinate data into the position of the coordinate parameter in the code string to generate a code file, wherein the code string is specifically a code string for controlling the target to move along the path point determined by the coordinate parameter on the visual interface.
It should be noted that, the coordinate data of the waypoint through which the target will pass when flying at the fixed point is obtained from outside the program for realizing the target fixed point, and those skilled in the art can understand that the coordinate data may be captured from the coordinate display control of the target on the interface where the target outside the program for realizing the target fixed point flying is located when the controlled target moves on the interface where the controlled target is located, or may be obtained from other resource data of the interface where the target outside the program for realizing the target fixed point flying is located, which is not limited in the present invention.
By applying the method of the embodiment, the coordinate data of the waypoint through which the target passes when flying at the fixed point is acquired from the outside of the program for realizing the fixed-point flight of the target, and then the coordinate data is written into the position of the coordinate parameter in the code string to generate the code file, so that for planning personnel, the program code for realizing the fixed-point flight of the target can be acquired only by concerning the arrangement of the route without knowing the code in the program, the coupling degree of the route data and the code is reduced, the work of the programmer is liberated, and the purposes of saving manpower and improving efficiency are realized.
In consideration of the visual effect of target fixed-point flight, the invention can also comprise:
acquiring state data of a waypoint through which the target passes in the fixed-point flight from the outside of the program for realizing the fixed-point flight of the target;
and writing the state data into the position of the state parameter corresponding to the coordinate data of the waypoint in the code string.
For example, status data such as speed, direction, and angle of view may be written into the code string at the position of the status parameter corresponding to the coordinate data of the waypoint, and the target may be provided with a vivid display effect when flying at a fixed point.
In order to further reduce the coupling degree of the route data and the codes and enable the modification of the fixed-point flight route to be easier to operate, the invention provides that:
after the data is acquired and before the code string is written, the acquired data can be written into a designated field of the first file; the retrieved data may also be extracted from a specified field of the first file prior to writing the code string.
In this embodiment, after the data is acquired, before the data is written into the code string, the intermediate file of the first file is introduced, and therefore, in practical application, a planner can achieve the purpose of indirectly modifying a program by modifying the content in the first file, and further reduce the coupling degree between the route data and the program code.
The first file may be, for example, an excel file, and the acquired data may be written in a specified field of the first file, specifically, the acquired data may be written in a specified field of the excel file, for example, as shown in fig. 3, coordinate data is written in a field corresponding to coordinates, and state data, for example, speed is written in a field corresponding to flight speed.
In combination with the specific implementation needs, the coordinate data of the waypoint that the target will pass through when flying at the fixed point is acquired from the outside of the program for realizing the fixed-point flying of the target, and may be written when receiving the instruction of deriving the waypoint, for example: when the planning and control target moves through the waypoint when the interface flies along the fixed point, the coordinates of the waypoint through which the target passes in the moving process are captured from the interface where the target outside a program for realizing the target fixed point flight is located by applying the method of the invention, when the planning and control route is completely laid, a guidance waypoint instruction can be input, and the input guidance waypoint instruction can be specifically input by clicking a guidance waypoint instruction button of a tool interface developed by combining the method of the invention, and further, when the guidance waypoint instruction is received by applying the method of the invention, the acquired data is written into the designated domain of the first file.
In an embodiment of the present invention, step S301 obtains, from outside a program for implementing target fixed-point flight, coordinate data of waypoints that a target will pass through when flying at a fixed point, for example: the method specifically comprises the following steps:
and when the target starts from the previous waypoint and the moving distance is equal to the set waypoint interval, taking the position of the target on the visual interface as the waypoint, and acquiring the coordinate data of the waypoint from the visual interface outside the program for realizing the fixed-point flight of the target.
In another embodiment of the present invention, step S301 obtains coordinate data of waypoints that the target will pass through when flying at the fixed point from outside the program for realizing the fixed point flight of the target, for example: the method specifically comprises the following steps:
and if the instruction of adding the waypoint is received, taking the position of the target on the visual interface when the instruction of adding the waypoint is received as the waypoint, and acquiring the coordinate data of the waypoint from the visual interface outside a program for realizing the fixed-point flight of the target.
In still another embodiment of the present invention, step S301 obtains coordinate data of waypoints that the target will pass through when flying at the fixed point from outside the program for realizing the fixed point flight of the target, for example: the method specifically comprises the following steps:
acquiring coordinate data of a starting point of the target from the outside of a program for realizing fixed-point flight of the target;
acquiring coordinate data of an end point of a target from the outside of a program for realizing fixed-point flight of the target;
and selecting a route point between the starting point and the end point according to the map data of the visual interface where the target is located and a route selection strategy to obtain the coordinate data of the corresponding route point.
Among them, routing strategies, for example: the setting can be performed according to a shortest path algorithm or other path algorithms according to specific implementation requirements.
Considering that the situation that the route can be modified after the coordinate data of the waypoints which will pass through during fixed-point flight is acquired, the invention provides that: before writing the coordinate data into the position of the coordinate parameter in the code string, any one or a combination of the following may be further included:
when a command for deleting the selection is received, deleting the coordinate data of the waypoint in the selected state from the acquired coordinate data of the waypoint;
or,
when the position modifying instruction is received, coordinate data of a waypoint passed by the target are obtained from the outside of a program for realizing fixed-point flight of the target again to replace the coordinate data of the waypoint obtained before;
or,
when an instruction for clearing the waypoints is received, deleting all the acquired coordinate data of the waypoints;
or,
when receiving an instruction of importing a waypoint, importing a second file, and reading coordinate data contained in a second designated domain of the second file as acquired coordinate data;
or,
when receiving a state data modification instruction, extracting coordinate data and state data of a waypoint from the state data modification instruction, and writing the state data into a position of a state parameter corresponding to the coordinate data of the waypoint in the code string;
or,
and when an instruction for displaying the route is received, displaying the connecting lines at the positions of the acquired coordinate data according to a preset sequence on a visual interface.
It should be noted that, in order to facilitate the use of the planning staff, a corresponding control panel may be further developed to obtain a corresponding input command in conjunction with the method of the present invention, where the command described in the foregoing embodiments may be specifically obtained through the input of a command input window of a visual control panel, for example, the visual control panel shown in fig. 4.
In the actual application of fixed-point flight, in the process of fixed-point flight of the target, when the target reaches a certain waypoint, the corresponding application program can be triggered to increase the function of fixed-point flight, and in combination with the application, the method provided by the invention can further comprise the following steps:
judging whether the designated domain of the first file is associated with a unique identifier of a second application program;
if so, writing the code string of the second application program called by the target when the visual interface reaches the position of the coordinate data contained in the specified field of the first file into the code file.
For example: referring to fig. 5, the specified domain of the first file includes columns B and C of a first waypoint specified domain, columns D and E of a second waypoint specified domain, a third waypoint specified domain, and so on, and the unique identifier of the second application is a QTE flight number, where determining whether the first waypoint specified domain of the first file is associated with the unique identifier of the second application is specifically by determining whether the domain in which the QTE flight number is located includes "1", determining whether the second waypoint specified domain of the first file is associated with the unique identifier of the second application is specifically by determining whether the domain in which the QTE flight number is located includes "2", if so, regarding as being associated, and in the case of determining the association, calling a code string of the second application when the target reaches the position of the associated waypoint on the visual interface, and writing the code string into the code file.
By applying the embodiment, the interaction between the fixed-point flight and other applications can be deepened, and the function of the fixed-point flight is enriched.
Exemplary device
Having described the method of the exemplary embodiment of the present invention, next, a detailed description will be made of an apparatus for achieving target fixed point flight of the exemplary embodiment of the present invention with reference to fig. 6, for example, which may include:
the acquisition unit 601: the method comprises the steps that coordinate data of a way point which is used for achieving target fixed-point flight and is about to pass through by a target during fixed-point flight are obtained from the outside of a program used for achieving target fixed-point flight;
the code generation unit 602: and configuring the position of a coordinate parameter used for writing the marked data into a code string, and generating a code file, wherein the code string is specifically a code string for controlling the target to move along a path point determined by the coordinate parameter on the visual interface.
Wherein the obtaining unit 601 may be further configured to obtain, from outside the program for implementing target fixed point flight, state data of waypoints through which the target will pass in fixed point flight;
wherein the code generation unit 602: the method can also be configured to write state data into the code string at the position of the state parameter corresponding to the coordinate data of the waypoint.
Based on the above embodiment, the exemplary apparatus of the present invention may further include:
the intermediate file generation unit 603: the method comprises the steps of configuring a designated field for writing acquired data into a first file after the data is acquired and before a code string is written;
the intermediate file extracting unit 604: configured to extract the retrieved data from the specified field of the first file prior to writing the code string.
Wherein the intermediate file generating unit 603: and may be specifically configured for execution upon receipt of a go to waypoint instruction.
In an embodiment of the present invention, the obtaining unit 601: specifically, the method may be configured to, when the target starts from the previous waypoint and moves by a distance equal to a set waypoint interval, take the position of the target on the visual interface as the waypoint, and acquire coordinate data of the waypoint from the visual interface outside a program for realizing fixed-point flight of the target.
In another embodiment of the present invention, wherein the obtaining unit 601: specifically, the method may be configured to, if an instruction to add a waypoint is received, use a position of the target on the visual interface when the instruction to add the waypoint is received as the waypoint, and acquire coordinate data of the waypoint from the visual interface outside the program for implementing the target fixed-point flight.
In consideration of the fact that the route may be modified after the coordinate data of the waypoint to be passed by during the fixed-point flight is acquired, the exemplary apparatus of the present invention may further include:
the deletion unit 605: the method comprises the steps that when a command for deleting a selected state is received, coordinate data of a waypoint in a selected state are deleted from the obtained coordinate data of the waypoint;
or,
the modified location unit 606: when receiving the instruction of modifying the position, the configuration is used for acquiring the coordinate data of the waypoint passed by the target from the outside of the program for realizing the fixed-point flight of the target again to replace the coordinate data of the waypoint acquired before;
or,
clear waypoint unit 607: the method comprises the steps that when an instruction for clearing the waypoints is received, coordinate data of all acquired waypoints are deleted;
or,
ingress waypoint unit 608: when receiving an instruction of an import waypoint, the configuration is used for importing a second file and reading coordinate data contained in a second designated domain of the second file as acquired coordinate data;
or,
modified state unit 609: when receiving a state data modification instruction, extracting coordinate data and state data of a waypoint from the state data modification instruction, and writing the state data into a position of a state parameter corresponding to the coordinate data of the waypoint in the code string;
or,
the display route unit 610: and the connecting line is configured for displaying the positions of the acquired coordinate data on the visual interface according to a preset sequence when receiving an instruction for displaying the route.
In conjunction with a fixed-point flight application, an exemplary apparatus of the present invention may further comprise:
the second application generation unit 611: and the code string is configured for judging whether the specified field of the first file is associated with the unique identifier of the second application program, and if so, writing the code string for calling the second application program into the code file when the target reaches the position of the coordinate data contained in the specified field of the first file on the visual interface.
It should be noted that although in the above detailed description reference is made to devices or sub-units, such a division is not mandatory only. Indeed, the features and functions of two or more of the devices described above may be embodied in one device, according to embodiments of the invention. Conversely, the features and functions of one apparatus described above may be further divided into embodiments by a plurality of apparatuses.
Moreover, while the operations of the method of the invention are depicted in the drawings in a particular order, this does not require or imply that the operations must be performed in this particular order, or that all of the illustrated operations must be performed, to achieve desirable results. Rather, the steps depicted in the flowcharts may change the order of execution. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step execution, and/or one step broken down into multiple step executions.
Use of the verbs "comprise", "comprise" and their conjugations in this application does not exclude the presence of elements or steps other than those stated in this application. The article "a" or "an" preceding an element does not exclude the presence of a plurality of such elements.
While the spirit and principles of the invention have been described with reference to several particular embodiments, it is to be understood that the invention is not limited to the disclosed embodiments, nor is the division of aspects, which is for convenience only as the features in such aspects may not be combined to benefit. The invention is intended to cover various modifications and equivalent arrangements included within the spirit and scope of the appended claims. The scope of the following claims is to be accorded the broadest interpretation so as to encompass all such modifications and equivalent structures and functions.

Claims (14)

1. A method for achieving targeted fixed point flight, comprising:
acquiring coordinate data of a waypoint through which the target passes in fixed-point flight from the outside of a program for realizing the fixed-point flight of the target;
writing the obtained coordinate data into a designated field of a first file;
extracting the acquired coordinate data from the designated field of the first file;
writing the coordinate data into the position of the coordinate parameter in the code string to generate a code file, wherein the code string is specifically a code string for controlling the target to move along a route point determined by the coordinate parameter on the visual interface;
after acquiring the coordinate data and before writing the coordinate data into the position of the coordinate parameter in the code string, any one or a combination of the following is also included:
when a command for deleting the selection is received, deleting the coordinate data of the waypoint in the selected state from the acquired coordinate data of the waypoint;
or,
when the position modifying instruction is received, coordinate data of a waypoint passed by the target are obtained from the outside of a program for realizing fixed-point flight of the target again to replace the coordinate data of the waypoint obtained before;
or,
when an instruction for clearing the waypoints is received, deleting all the acquired coordinate data of the waypoints;
or,
when receiving an instruction of importing a waypoint, importing a second file, and reading coordinate data contained in a second designated domain of the second file as acquired coordinate data;
or,
when receiving a state data modification instruction, extracting coordinate data and state data of a waypoint from the state data modification instruction, and writing the state data into a position of a state parameter corresponding to the coordinate data of the waypoint in the code string;
or,
and when an instruction for displaying the route is received, displaying the connecting lines at the positions of the acquired coordinate data according to a preset sequence on a visual interface.
2. The method of claim 1, further comprising:
acquiring state data of a waypoint through which the target passes in the fixed-point flight from the outside of the program for realizing the fixed-point flight of the target;
and writing the state data into the position of the state parameter corresponding to the coordinate data of the waypoint in the code string.
3. The method of claim 2, wherein the status data comprises any one or a combination of:
speed, direction, or angle of view.
4. The method of claim 1, wherein writing the acquired coordinate data to the designated field of the first file is performed upon receipt of an export waypoint instruction.
5. The method according to claim 1, wherein the obtaining, from outside a program for achieving target fixed point flight, coordinate data of waypoints that the target will pass through while flying at the fixed point specifically comprises:
and when the target starts from the previous waypoint and the moving distance is equal to the set waypoint interval, taking the position of the target on the visual interface as the waypoint, and acquiring the coordinate data of the waypoint from the visual interface outside the program for realizing the fixed-point flight of the target.
6. The method according to claim 1, wherein the obtaining, from outside a program for achieving target fixed point flight, coordinate data of waypoints that the target will pass through while flying at the fixed point specifically comprises:
and if the instruction of adding the waypoint is received, taking the position of the target on the visual interface when the instruction of adding the waypoint is received as the waypoint, and acquiring the coordinate data of the waypoint from the visual interface outside a program for realizing the fixed-point flight of the target.
7. The method according to claim 1 or 6, wherein the instruction is obtained in particular by input of a command input window of a visual control panel.
8. The method of claim 1, further comprising: judging whether the designated domain of the first file is associated with a unique identifier of a second application program;
if so, writing the code string of the second application program called by the target when the visual interface reaches the position of the coordinate data contained in the specified field of the first file into the code file.
9. An apparatus for achieving targeted fixed point flight, comprising:
an acquisition unit: the method comprises the steps that coordinate data of a way point which is used for achieving target fixed-point flight and is about to pass through by a target during fixed-point flight are obtained from the outside of a program used for achieving target fixed-point flight;
an intermediate file generation unit: the method comprises the steps of configuring a designated domain for writing acquired coordinate data into a first file after acquiring the coordinate data and before writing a code string;
an intermediate file extraction unit: configured to extract the acquired coordinate data from a specified field of the first file before writing the code string;
a code generation unit: configuring a position of a coordinate parameter for writing coordinate data into a code string, and generating a code file, wherein the code string is specifically a code string for controlling a target to move along a route point determined by the coordinate parameter on a visual interface;
the apparatus further comprises any unit or combination of:
a deletion unit: the method comprises the steps that when a command for deleting a selected state is received, coordinate data of a waypoint in a selected state are deleted from the obtained coordinate data of the waypoint;
or,
modifying the position unit: when receiving the instruction of modifying the position, the configuration is used for acquiring the coordinate data of the waypoint passed by the target from the outside of the program for realizing the fixed-point flight of the target again to replace the coordinate data of the waypoint acquired before;
or,
clearing the waypoint unit: the method comprises the steps that when an instruction for clearing the waypoints is received, coordinate data of all acquired waypoints are deleted;
or,
leading-in waypoint unit: when receiving an instruction of an import waypoint, the configuration is used for importing a second file and reading coordinate data contained in a second designated domain of the second file as acquired coordinate data;
or,
modifying the state unit: when receiving a state data modification instruction, extracting coordinate data and state data of a waypoint from the state data modification instruction, and writing the state data into a position of a state parameter corresponding to the coordinate data of the waypoint in the code string;
or,
a display route unit: and the connecting line is configured for displaying the positions of the acquired coordinate data on the visual interface according to a preset sequence when receiving an instruction for displaying the route.
10. The apparatus of claim 9, wherein the obtaining unit: the system is also configured to obtain state data of a waypoint through which the target passes in the fixed-point flight from outside the program for realizing the fixed-point flight of the target;
wherein the code generation unit: and the position of the state parameter corresponding to the coordinate data of the waypoint used for writing the state data into the code string is also configured.
11. The apparatus of claim 9, wherein the intermediate file generating unit: specifically configured for execution upon receipt of an egress waypoint instruction.
12. The apparatus of claim 9, wherein the obtaining unit: the method is specifically configured to, when the target starts from the previous waypoint and the moving distance is equal to the set waypoint interval, take the position of the target on the visual interface as the waypoint, and acquire the coordinate data of the waypoint from the visual interface outside a program for realizing the fixed-point flight of the target.
13. The apparatus of claim 9, wherein the obtaining unit: the specific configuration is used for taking the position of the target on the visual interface when the instruction for increasing the waypoint is received as the waypoint if the instruction for increasing the waypoint is received, and acquiring the coordinate data of the waypoint from the visual interface outside a program for realizing the fixed-point flight of the target.
14. The apparatus of claim 9, further comprising: a second application generation unit: and the code string is configured for judging whether the specified field of the first file is associated with the unique identifier of the second application program, and if so, writing the code string for calling the second application program into the code file when the target reaches the position of the coordinate data contained in the specified field of the first file on the visual interface.
CN201210592128.2A 2012-12-30 2012-12-30 Method and device for realizing fixed point flight of target Active CN103186381B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210592128.2A CN103186381B (en) 2012-12-30 2012-12-30 Method and device for realizing fixed point flight of target

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210592128.2A CN103186381B (en) 2012-12-30 2012-12-30 Method and device for realizing fixed point flight of target

Publications (2)

Publication Number Publication Date
CN103186381A CN103186381A (en) 2013-07-03
CN103186381B true CN103186381B (en) 2017-04-26

Family

ID=48677560

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210592128.2A Active CN103186381B (en) 2012-12-30 2012-12-30 Method and device for realizing fixed point flight of target

Country Status (1)

Country Link
CN (1) CN103186381B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106775623A (en) * 2016-11-17 2017-05-31 网易(杭州)网络有限公司 Plan the processing method and processing device of allocation list

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1932829A (en) * 2006-10-19 2007-03-21 北京金山数字娱乐科技有限公司 System and method for obtaining inter-two-point path in network game
CN101615301A (en) * 2009-07-29 2009-12-30 腾讯科技(深圳)有限公司 The controlling of path thereof of target and system in the computer virtual environment

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030135842A1 (en) * 2002-01-16 2003-07-17 Jan-Erik Frey Software development tool for embedded computer systems
CN1864132A (en) * 2003-08-20 2006-11-15 日本烟草产业株式会社 Program generation system, program generation program, and program generation module
JP4568262B2 (en) * 2006-09-29 2010-10-27 日本たばこ産業株式会社 Data collection system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1932829A (en) * 2006-10-19 2007-03-21 北京金山数字娱乐科技有限公司 System and method for obtaining inter-two-point path in network game
CN101615301A (en) * 2009-07-29 2009-12-30 腾讯科技(深圳)有限公司 The controlling of path thereof of target and system in the computer virtual environment

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
室外场景编辑器的实现;宋晓宇 等;《 中国图学新进展2007——第一届中国图学大会暨第十届华东六省一市工程图学学术年会论文集》;20070807;第227-230页 *
空间运动目标RCS仿真计算软件设计;何健雄;《中国优秀硕士学位论文全文数据库 信息科技辑》;20051115(第7期);第I138-729页 *

Also Published As

Publication number Publication date
CN103186381A (en) 2013-07-03

Similar Documents

Publication Publication Date Title
US9424006B2 (en) Execution optimization of mobile applications
CN105453031B (en) For optimizing the method and system of instruction
KR101399472B1 (en) Method and apparatus for rendering processing by using multiple processings
EP3144810A1 (en) System for data aggregation and analysis of data from a plurality of data sources
US20170160887A1 (en) Displaying nodes on a view screen
US10148524B2 (en) Visually modeling screen-flows in component-oriented web-based system
CN103186381B (en) Method and device for realizing fixed point flight of target
US10732936B2 (en) Modularizing steps within a UML user model interaction pattern
US10754524B2 (en) Resizing of images with respect to a single point of convergence or divergence during zooming operations in a user interface
JP5708715B2 (en) Workflow management server, workflow management server control method, program, and recording medium
Pacey Starterator guide
US20160259716A1 (en) Rebuilding an execution flow from an execution grid
US9836444B2 (en) Spread cell value visualization
US10068356B2 (en) Synchronized maps in eBooks using virtual GPS channels
US9858248B2 (en) Hotspot navigation within documents
US10394421B2 (en) Screen reader improvements
US20190243583A1 (en) Conducting forward reasoning in production system
US10041806B2 (en) Providing road guidance based on road attributes and directions
US10235410B2 (en) Query input apparatus and method
US9372669B2 (en) Multiple architecture viewpoints in single unified modeling language (UML) model
JP2014038577A (en) Rendering processing device and method using multiprocessing
KR102607906B1 (en) Optimization methods for single facility location with time-constrained clients
KR102015586B1 (en) Apparatus for automatic mapping of monitoring and control point for energy management of the large complex building in a graphic widget
US9547411B2 (en) Navigation of a graphical representation
KR20160054687A (en) Bookmark Management Method and System Using Messenger

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant