WO2019061022A1 - Simulation method, terminal device, and flight controller for unmanned aerial vehicle - Google Patents

Simulation method, terminal device, and flight controller for unmanned aerial vehicle Download PDF

Info

Publication number
WO2019061022A1
WO2019061022A1 PCT/CN2017/103424 CN2017103424W WO2019061022A1 WO 2019061022 A1 WO2019061022 A1 WO 2019061022A1 CN 2017103424 W CN2017103424 W CN 2017103424W WO 2019061022 A1 WO2019061022 A1 WO 2019061022A1
Authority
WO
WIPO (PCT)
Prior art keywords
physical model
terminal device
control data
flight controller
flight
Prior art date
Application number
PCT/CN2017/103424
Other languages
French (fr)
Chinese (zh)
Inventor
陈超彬
Original Assignee
深圳市大疆创新科技有限公司
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 深圳市大疆创新科技有限公司 filed Critical 深圳市大疆创新科技有限公司
Priority to CN201780015211.4A priority Critical patent/CN109074091A/en
Priority to PCT/CN2017/103424 priority patent/WO2019061022A1/en
Publication of WO2019061022A1 publication Critical patent/WO2019061022A1/en

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05DSYSTEMS FOR CONTROLLING OR REGULATING NON-ELECTRIC VARIABLES
    • G05D1/00Control of position, course, altitude or attitude of land, water, air or space vehicles, e.g. using automatic pilots
    • G05D1/10Simultaneous control of position or course in three dimensions
    • G05D1/101Simultaneous control of position or course in three dimensions specially adapted for aircraft

Definitions

  • the invention relates to the technical field of flight simulation of a drone, in particular to a simulation method, a terminal device and a flight controller of the drone.
  • the flight controller of the general drone will support the flight simulation function.
  • the flight simulation function of the drone is realized by the physical model of the drone built in the flight controller. Specifically, the flight controller enters the simulation mode through the terminal device, and after the flight controller enters the simulation mode, the flight controller runs its The built-in physical model responds to the external input, and simultaneously transmits the flight state data of the drone to the terminal device, and the terminal device displays the flight state data of the drone through the interaction device, for example, the interaction device displays the unmanned character representing the flight state data.
  • Machine animation since the physical model used for flight simulation is built into the flight controller, the user or developer cannot modify the physical model according to the actual situation (such as a specific application area or a specific model) or design a customized physical model according to their own needs. This results in a large difference between the simulated effect and the actual flight effect of the drone.
  • the embodiment of the invention provides a simulation method, a terminal device and a flight controller of the drone to improve the flexibility of physical model selection in the UAV simulation process.
  • the technical solution is as follows:
  • an embodiment of the present invention provides a simulation method, which is applied to a terminal device, and includes:
  • the flight status data is displayed.
  • an embodiment of the present invention provides a simulation method applied to a flight controller of a drone, including:
  • the embodiment of the present invention further provides a simulation method, which is applied to a terminal device, and includes:
  • the physical model selection information is used to indicate a target physical model for simulating a drone, and the target physical model is one of a physical model built in the flight controller and a physical model built in the terminal device.
  • an embodiment of the present invention provides a simulation method, which is applied to a flight controller of a drone, and includes:
  • the target physical model is one of a physical model built in the flight controller and a physical model built in the terminal device.
  • an embodiment of the present invention further provides a terminal device, including: a memory and a processor;
  • the memory is configured to store program code
  • the processor the program code is invoked, and when the program code is executed, is used to perform the following operations:
  • the flight status data is displayed.
  • an embodiment of the present invention further provides a flight controller of a drone, including: a memory and a processor;
  • the memory is configured to store program code
  • the processor the program code is invoked, and when the program code is executed, is used to perform the following operations:
  • the embodiment of the present invention further provides a terminal device, including: a memory and a processor;
  • the memory is configured to store program code
  • the processor the program code is invoked, and when the program code is executed, is used to perform the following operations:
  • the physical model selection information is used to indicate a target physical model for simulating a drone, and the target physical model is one of a physical model built in the flight controller and a physical model built in the terminal device.
  • an embodiment of the present invention further provides a flight controller of a drone, including: a memory and a processor;
  • the memory is configured to store program code
  • the processor the program code is invoked, and when the program code is executed, is used to perform the following operations:
  • the target physical model is one of a physical model built in the flight controller and a physical model built in the terminal device.
  • the simulation method, the terminal device and the flight controller of the drone provided by the embodiment of the invention can implement the flight simulation of the drone by using the physical model built in the terminal device, and overcome the simulation of the UAV in the prior art.
  • the defect of the physical model built into the flight controller in this way, can support the user or the developer to customize or develop a specific physical model to realize the flight simulation of the drone, so that the simulation effect can be more closely matched with the actual effect.
  • the user can select a physical model for performing flight simulation from the physical model built in the terminal device and the physical model built in the flight controller through the terminal device, which enables the user to flexibly select the physical model for simulation according to the actual application situation, enriching
  • the choice of physical model during the UAV simulation process improves the flexibility of flight simulation.
  • FIG. 1 is a schematic flowchart of a simulation method according to an embodiment of the present invention.
  • FIG. 2 is a schematic diagram of an implementation method for performing simulation by using a physical model built in a terminal device according to an embodiment of the present invention
  • FIG. 3 is another schematic flowchart of a simulation method according to an embodiment of the present invention.
  • FIG. 4 is a schematic flowchart of a method for implementing simulation by using a physical model built in a terminal device according to an embodiment of the present invention
  • FIG. 5 is another schematic flowchart of a method for implementing simulation by using a physical model built in a terminal device according to an embodiment of the present disclosure
  • FIG. 6 is another schematic flowchart of a simulation method according to an embodiment of the present disclosure.
  • FIG. 7 is another schematic flowchart of a simulation method according to an embodiment of the present disclosure.
  • FIG. 8 is a schematic flowchart of an implementation process of implementing flight simulation of a drone based on a physical model selected by a user according to an embodiment of the present invention
  • FIG. 9 is a schematic diagram of an implementation method for performing simulation by using a physical model built in a terminal device according to an embodiment of the present invention.
  • FIG. 10 is a schematic diagram of an implementation method for performing simulation by using a physical model built in a flight controller according to an embodiment of the present invention.
  • FIG. 11 is still another schematic flowchart of an implementation process of implementing flight simulation of a drone based on a physical model selected by a user according to an embodiment of the present invention
  • FIG. 12 is still another flow of implementing a flight simulation of a drone based on a physical model selected by a user according to an embodiment of the present invention.
  • FIG. 13 is a schematic structural diagram of a terminal device or a flight controller according to an embodiment of the present invention.
  • a component when referred to as being "fixed” to another component, it can be directly on the other component or the component can be in the middle. When a component is considered to "connect” another component, it can be directly connected to another component or possibly a central component.
  • the embodiment of the present invention provides a simulation method, which is applied to a terminal device.
  • FIG. 1 it is a schematic flowchart of a simulation method according to an embodiment of the present invention. The method includes:
  • Step S101 Acquire control data output by the flight controller in the simulation mode.
  • the execution body of the simulation method is the terminal device 200.
  • the execution body may be a processor of the terminal device, where the processor may be one or more.
  • the terminal device can be any device capable of interacting with a user or a developer, wherein the terminal device can be specifically a remote controller, a smart phone, a tablet computer, a laptop computer, a desktop computer, a ground control station, a wearable device. One or more of (watches, bracelets, etc.).
  • the terminal device 200 receives the control data output by the flight controller 2011 of the drone 201.
  • the terminal device 200 may include a communication interface connected to the flight controller, and the processing of the terminal device 200 The device may control the communication interface to receive control data output by the flight controller 2011, and the processor acquires the control data from the communication interface, wherein the control data may be used to control any actuator on the drone Control data, further, the control data may include one of control data for the power system, control data for the pan/tilt, control data for the payload, control data for the tripod, and control data for the indicator light or A variety.
  • Step S102 Run a physical model built in the terminal device according to the control data.
  • the terminal device 200 may run the physical model 202 built in the terminal device according to the control data, and further, the processor of the terminal device runs the terminal according to the control number.
  • a physical model 202 built in the device wherein the processor can drive the operation of the physical model 202 by using the control data as an entry parameter of the physical model 202 built in the terminal device, where the physical model 202 built in the terminal device can be a program code.
  • the program code may be stored in a memory communicatively coupled to the processor, and after acquiring the control data, the processor may use the control data as an entry parameter, and call the program code stored in the memory to run the physical model.
  • the physical model 202 can include one or more of a power system model, a dynamics model, a kinematic model, and a sensor model.
  • Step S103 Send flight state data output by the physical model to the flight controller.
  • the exit parameter of the physical model 202 that is, the flight state data
  • the processor of the terminal device may control the flight controller 2011.
  • the connected communication interface transmits the flight status data to the flight controller 2011, and after receiving the flight status data, the flight controller 2011 provides the flight status data to an internal functional unit for driving the flight simulation operation, wherein
  • the flight state data may be sensor data or data obtained after merging sensor data.
  • the sensor data may be one or more of position data, acceleration data, angular acceleration data, orientation data, air pressure data, and power data.
  • Step S104 Display flight state data.
  • the terminal device may be configured with an interaction device that interacts with the user, where the interaction device may be a display device or a touch display device.
  • the interaction device may further include a button, a keyboard, a joystick, and a pulsator.
  • one or more of the display devices can display an interactive interface, and the processor of the terminal device can control the display device to display the flight state data in the interactive interface.
  • the display manner may be direct display or indirect display, and is not specifically limited herein.
  • step S103 and the step S104 may be performed sequentially, and the sequence may be interchanged.
  • step S103 and the step S104 may be performed simultaneously, which is not limited herein.
  • the displaying flight state data comprises displaying the flight state data in the form of a drone animation.
  • an interaction interface may be displayed on the interaction device of the terminal device, where the interaction interface may display the drone 204, wherein the drone 204 displayed in the interaction interface is a representation of the flight state data.
  • the drone 204 has the flight state indicated by the flight state data.
  • the terminal device can generate the environmental scenarios 205 and 206. By observing the state exhibited by the drone 204, the effect of the flight simulation can be achieved.
  • the flight state data may also be displayed on the interactive interface in the form of text, which is not specifically limited herein.
  • the simulation method further comprises transmitting simulation request information to the flight controller.
  • the terminal device may send the simulation request information to the flight controller, where the simulation request information is used to instruct the flight controller to enter the simulation mode, specifically,
  • the user can perform a simulation request operation on the interaction device on the terminal device, the processor of the terminal device can detect the simulation request operation, and determine the simulation request information according to the detected simulation request operation, and the processor controls the connection with the flight controller.
  • the communication interface sends the simulation request information to the flight controller, and the flight controller enters the simulation mode after receiving the simulation request information.
  • the simulation method provided by the embodiment of the present invention can implement the flight simulation of the UAV by using the physical model built in the terminal device, and overcome the defect that the simulation of the UAV in the prior art can only use the physical model built in the flight controller. In this way, the user or the developer can be customized or developed to implement a specific physical model to realize the flight simulation of the drone, so that the simulation effect can be more closely matched with the actual effect.
  • FIG. 3 is a simulation method provided by an embodiment of the present invention.
  • Schematic diagram of the process including:
  • Step S301 Send control data to the terminal device.
  • the execution body of the simulation method is a flight controller of the drone, and further, the execution body may be a processor of the flight controller, and the processor in the flight controller may control and the terminal device during the simulation process.
  • the connected communication interface sends control data to the terminal device.
  • Step S302 Receive flight state data sent by the terminal device, where the flight state data is obtained by the terminal device running the physical model built in the terminal device according to the control data.
  • the terminal device runs the physical model built in the terminal device according to the received control data, and then the terminal device outputs the flight state data of the physical model, that is, according to the flight control.
  • the flight state data obtained by the control data sent by the controller is sent to the flight controller, and after receiving the flight state data, the flight controller provides the flight state data to the internal functional unit to drive the operation of the flight simulation.
  • the emulation method further includes: receiving emulation request information sent by the terminal device, and entering the emulation mode after receiving the emulation request information. Specifically, after receiving the simulation request information sent by the terminal device, the flight controller enters an emulation mode, and after the flight controller enters the emulation mode, the flight controller sends control data to the terminal device.
  • the simulation method provided by the embodiment of the present invention can implement the flight simulation of the UAV by using the physical model built in the terminal device, and overcome the defect that the simulation of the UAV in the prior art can only use the physical model built in the flight controller. In this way, the user or the developer can be customized or developed to implement a specific physical model to realize the flight simulation of the drone, so that the simulation effect can be more closely matched with the actual effect.
  • a schematic diagram of a process for implementing a physical model for simulation, the method may include:
  • Step S401 The terminal device sends the simulation request information to the flight controller.
  • step S401 For the specific method and principle of step S401, refer to the foregoing part, and details are not described herein again.
  • Step S402 After receiving the simulation request information, the flight controller enters the simulation mode.
  • step S402 For the specific method and principle of step S402, refer to the foregoing part, and details are not described herein again.
  • Step S403 The terminal device sends the first physical model selection information to the flight controller.
  • the user may perform a first physical model selection operation on the interaction device of the terminal device to select a physical model built in the terminal device to implement a simulation process of the drone, or the user may perform a second on the interaction device of the terminal device.
  • the physical model selection operation selects the physical model built into the flight controller of the drone to implement the simulation process of the drone.
  • the processor of the terminal device may detect the first physical model selection operation, and determine the first physical model according to the detected first physical model selection operation. Selecting information and transmitting the first physical model selection information to the flight controller, the first physical model selection information being used to indicate to the flight controller that the simulation is performed based on a physical model built into the terminal device.
  • the processor of the terminal device may detect the second physical model selection operation, and determine the second physical model according to the detected second physical model selection operation. The information is selected, and the second physical model selection information is sent to the flight controller, and the second physical model selection information is used to indicate to the flight controller that the simulation is performed based on a physical model built into the flight controller.
  • Step S404 The flight controller sends the control data to the terminal device when receiving the first physical model selection information sent by the terminal device.
  • the flight controller when receiving the first physical model selection information, can learn that the physical model used in the simulation is a physical model built in the terminal device by using the first physical model selection information, and at this time, the flight controller can The control data is sent to the terminal device.
  • the simulation method provided by the embodiment of the present invention may further include: receiving a control instruction sent by the control terminal or the terminal device, and generating control data according to the control instruction.
  • the user can operate the control terminal of the drone, and the control terminal generates a control command according to the user operation, and the control terminal sends the control command to the flight controller, and the flight controller
  • the control command sent by the control terminal may be received, or the user may operate the terminal device, and the terminal device generates a control command according to the user operation, and the terminal device sends the control command to the flight controller.
  • the flight controller receives the control command and generates control data based on the control command.
  • the control terminal may be any device that can perform data interaction with the flight controller.
  • the control terminal may include a remote controller, a smart phone, a tablet computer, a laptop computer, a ground control station, One or more of wearable devices (watches, bracelets, etc.).
  • Step S405 After receiving the control data, the terminal device runs the built-in physical model according to the control data.
  • step S405 and step S102 are the same, and are not described herein again.
  • Step S406 The terminal device transmits the flight state data output by the physical model to the flight controller.
  • step S406 and step S103 are the same, and are not described here.
  • Step S407 The terminal device displays the flight state data.
  • step S407 and step S104 are the same, and are not described here.
  • the terminal device and the flight controller are connected through a preset communication interface, wherein the communication interface may be a wired interface or a wireless interface, wherein the wired interface may be a USB interface, a PCIE interface,
  • the WLAN interface and the Ethernet interface may be any one of the WIFI, the Bluetooth, and the zigbee interface, and are not specifically limited herein.
  • the terminal device may send the first physical model selection information to the flight controller to indicate to the flight controller that the physical model built in the terminal device is used for simulation, and the flight controller is obtained by using the terminal device.
  • the control data is sent to the terminal device, and the terminal device runs its built-in physical model according to the control data, and sends the flight state data output by the physical model to the flight controller, thereby completing the flight simulation of the drone.
  • the simulation method provided by the embodiment of the present invention can adopt the physical model built in the terminal to perform flight simulation of the drone, and the physical model built in the terminal device can be based on actual conditions such as a specific application domain or a specific machine by the user or the developer. Type construction, that is, the user can flexibly customize his own physical model according to the actual situation and can modify his own customized physical model. Therefore, the effect simulated by the physical model built into the terminal device is consistent with the actual flight effect of the drone.
  • Step S501 The terminal device sends the simulation request information to the flight controller.
  • step S501 For the specific method and principle of step S501, refer to the foregoing part, and details are not described herein again.
  • Step S502 After receiving the simulation request information, the flight controller enters the simulation mode.
  • step S502 For the specific method and principle of step S502, refer to the foregoing part, and details are not described herein again.
  • Step S503 The terminal device detects a first physical model selection operation of the user
  • Step S504 Determine first physical model selection information according to the detected first physical model selection operation.
  • step S503 and step S504 For the specific methods and principles of step S503 and step S504, refer to the foregoing part, and details are not described herein again.
  • Step S505 The terminal device sends the first physical model selection information to the flight controller.
  • step S505 and step S403 are the same, and are not described here.
  • Step S506 The flight controller sends the number of controls to the terminal device when receiving the first physical model selection information sent by the terminal device. according to.
  • step S506 and step S404 are the same, and are not described here.
  • Step S507 The terminal device detects a configuration information setting operation of the user.
  • Step S508 The terminal device determines configuration information of the physical model according to the detected configuration information setting operation.
  • the physical model includes some configurable items
  • the user may perform a configuration information setting operation on the terminal device to configure one or more configuration items of the physical model
  • the terminal device detects the configuration information setting operation of the user, when the configuration is detected.
  • the terminal device may determine the configuration information of the physical model according to the detected configuration information setting operation, where the configuration information may be an environment in which the drone is located, a failure of the drone, and a drone. Any information describing one or more of the mechanical configurations and the like.
  • the configuration information of the physical model may include one or more of failure information of the drone, wind speed, wind direction, weight of the drone, and rack type of the drone.
  • Step S509 The terminal device runs the built-in physical model according to the control data and the configuration information.
  • the processor of the terminal device may set a corresponding configuration item in the physical model according to the configuration information, and run the set physical model according to the control data.
  • the user can set the physical model by using the configuration information at any time. In this way, the flight state data of the drone under different environmental states, fault states, and mechanical configurations can be obtained, and the difference is achieved under different conditions. Simulation of man-machine. .
  • Step S510 The terminal device sends the flight state data output by the physical model to the flight controller.
  • step S510 and step S103 are the same, and are not described here.
  • Step S511 The terminal device displays the flight state data.
  • step S511 and step S104 are the same, and are not described here.
  • the simulation method provided by the embodiment of the present invention may further include: after receiving the simulation request information, the flight controller determines whether the preset simulation requirement is met, and if the flight controller determines that the preset simulation requirement is met, Enter the simulation mode. Specifically, after receiving the simulation request information, the flight controller first needs to detect its own state to determine whether the preset simulation requirements are met, for example, whether the motor of the drone is turned off, whether the drone is in the air, and whether the terminal device is The legal controller or the like, when it is determined that the preset requirement is met, the flight controller enters the simulation mode, and at this time, the flight controller can transmit the control data to the terminal device.
  • the simulation method provided by the embodiment of the present invention may further include: the terminal device sends the simulation end request information to the flight controller, and when the flight controller receives the simulation end request information, exits the simulation mode, that is, the flight controller.
  • the control data is no longer sent to the terminal device, and the flight state data sent by the terminal device is no longer received.
  • the terminal device it stops running the built-in physical model, that is, the control data of the flight controller is no longer received, and the control data is no longer received.
  • the flight controller sends flight status data.
  • the flight controller receives the simulation request information sent by the terminal device, if the real sensor is being received (such as Sensor data of one or more of position sensor, acceleration sensor, angular velocity sensor, gyroscope, barometer, or data fusion of the sensor data, and transmitting control data to the real actuator, then, at this time The reception of the sensor data or the fusion of the sensor data is stopped, and the control data is no longer sent to the real actuator, but enters the simulation mode.
  • the control data can be sent to the real actuator of the drone, and the sensor data of the real sensor or the data of the sensor data can be received.
  • the terminal device may determine the first physical model selection information based on the detected first physical model selection operation of the user, that is, the user may independently select the physical model built in the terminal to perform the simulation, and the flight controller After receiving the first physical model selection information, it is learned that the physical model used in the simulation is a physical model built in the terminal device, and the control data is sent thereto, and the terminal device may also determine the physics based on the detected configuration information of the user. The configuration information of the model, so that the built-in physical model can be run according to the control data and the configuration information, thereby completing the flight simulation of the drone.
  • the simulation method provided by the embodiment of the present invention can adopt the physical model built in the terminal to perform flight simulation of the drone, and the physical model built in the terminal device can be based on actual conditions such as a specific application domain or a specific machine by the user or the developer.
  • Type construction that is, the user can flexibly customize his own physical model according to the actual situation and modify the customized model. Therefore, the effect simulated by the physical model built into the terminal device is consistent with the actual flight effect of the drone.
  • the embodiment of the present invention further provides a simulation method, which is applied to a terminal device.
  • FIG. 6 it is a schematic flowchart of a simulation method according to an embodiment of the present disclosure, where the method includes:
  • Step S601 Detecting a physical model selection operation of the user.
  • the user can select a physical model of the drone simulation on the terminal device, that is, the target physical model, for example, the user can select to use the physical model built in the flight controller, or the user can select to use
  • the physical model built in the terminal device allows the user to select a physical model by performing a physical model selection operation on the terminal device.
  • the terminal device can detect the physical model selection operation of the user, and different physical model selection operations can represent different physical models.
  • the physical model selection operation may include a first physical model selection operation for selecting a physical model built in the terminal device, and a second physical model selection operation for selecting the flight controller Built-in physical model.
  • Step S602 Determine physical model selection information according to the detected physical model selection operation of the user.
  • the terminal device may determine physical model selection information according to the detected physical model selection operation, where the physical model selection information is used to indicate a target physical model for simulating the drone, and the target physical model is the flight One of a physical model built into the controller and a physical model built into the terminal device.
  • the processor of the terminal device may detect the first physical model selection operation, and determine the first physical model according to the detected first physical model selection operation. Selecting information and transmitting the first physical model selection information to the flight controller, the first physical model selection The information is used to indicate to the flight controller that the simulation is based on a physical model built into the terminal device.
  • the processor of the terminal device may detect the second physical model selection operation, and determine the second physical model according to the detected second physical model selection operation. The information is selected, and the second physical model selection information is sent to the flight controller, and the second physical model selection information is used to indicate to the flight controller that the simulation is performed based on a physical model built into the flight controller.
  • Step S603 transmitting physical model selection information to the flight controller of the drone.
  • the terminal device transmits the physical model selection information to the flight controller through a communication interface with the flight controller, and the terminal device sends the physical model selection information to the flight controller to indicate to the flight controller which current user chooses to use.
  • the physical model is used to simulate the drone.
  • the simulation method provided by the embodiment of the invention enables the user to select a physical model for the flight simulation of the drone from the physical model built in the terminal device and the physical model built in the flight controller, that is, the user can flexibly based on the actual application situation. Selecting the physical model used in the simulation enriches the choice of the physical model during the UAV simulation process and improves the flexibility of flight simulation.
  • FIG. 7 is a simulation method according to an embodiment of the present invention.
  • Schematic diagram of the process including:
  • Step S701 Receive physical model selection information sent by the terminal device.
  • the flight controller receives physical model selection information sent by the terminal device through a communication interface with the terminal device, wherein the physical model selection information is used to indicate a physical model used for flight simulation of the drone.
  • Step S702 Determine a target physical model for simulating the drone according to the physical model selection information.
  • the flight controller may identify and determine the physical model selection information, and determine a target physical model indicated by the physical model selection information, where the target physical model is a built-in flight controller.
  • the target physical model is a built-in flight controller.
  • the physical model may include one or more of a dynamic system model, a dynamic model, a kinematic model, and a sensor model.
  • the simulation method provided by the embodiment of the invention enables the user to select a physical model for the flight simulation of the drone from the physical model built in the terminal device and the physical model built in the flight controller, that is, the user can flexibly based on the actual application situation. Selecting the physical model used in the simulation enriches the choice of the physical model during the UAV simulation process and improves the flexibility of flight simulation.
  • a schematic flowchart of an implementation process of implementing a flight simulation of a drone based on a physical model selected by a user may be performed, which may include:
  • Step S801 The terminal device detects a physical model selection operation of the user.
  • step S801 and step S601 are the same, and are not described here.
  • Step S802 The terminal device determines physical model selection information according to the detected physical model selection operation of the user.
  • step S802 and step S602 are the same, and are not described here.
  • Step S803 The terminal device sends physical model selection information to the flight controller of the drone.
  • step S803 and step S603 are the same, and are not described here.
  • Step S804 When receiving the physical model selection information sent by the terminal device, the flight controller determines a target physical model for simulating the UAV according to the physical model selection information.
  • step S804 and step S601 and step S602 are the same, and are not described here.
  • the terminal device When the terminal device detects the first physical model selection operation, the terminal device sends the first physical model selection information to the flight controller, that is, when the target physical model indicated by the physical model selection information indicates the physical model built in the terminal device Steps S805a-S807a are executed, and step S808 is further executed.
  • the target physical model is a physical model built in the terminal device, with reference to FIG.
  • Step S805a The flight controller sends control data to the terminal device when determining that the target physical model is a physical model built in the terminal device.
  • the flight controller may transmit the control data to the terminal device, and before transmitting the control data, the flight controller generates control data, and further, As described above, the flight controller can receive the control command sent by the terminal device or the control terminal, and generate the control data according to the control command.
  • the flight controller may transmit the control data to the terminal device, and before transmitting the control data, the flight controller generates control data, and further, As described above, the flight controller can receive the control command sent by the terminal device or the control terminal, and generate the control data according to the control command.
  • Step S806a After receiving the control data, the terminal device runs the built-in physical model according to the control data.
  • Step S807a The terminal device transmits the flight state data output by the physical model to the flight controller.
  • Step S808 The terminal device displays the flight state data.
  • steps S806a-S807a please refer to the foregoing section, and details are not described herein again.
  • the terminal device When the terminal device detects the second physical model selection operation, the terminal device sends the second physical model selection information to the flight controller, when the target physical model indicated by the physical model selection information indicates the physical model built in the flight controller Steps S805b-S807b are executed, and step S808 is further executed.
  • the target physical model is a physical model built in the flight controller, with reference to FIG.
  • Step S805b The flight controller generates control data when determining that the target physical model is a physical model built in the flight controller.
  • the flight controller determines that the target model is a physical model built in the flight controller
  • the flight controller generates control data.
  • the flight controller may receive the control command sent by the terminal device or the control terminal.
  • the control instruction Generate control data.
  • Step S806b The flight controller runs the built-in physical model according to the control data.
  • the drone 1000 includes a flight controller 1001, the flight controller includes a physical model 10011 for flight simulation, and the flight controller transmits the generated control data as an entry parameter to the physical model 10011, and The physical model is run in accordance with the control data.
  • Step S807b The flight controller transmits the flight state data output by the physical model to the terminal device.
  • the flight state data is output, and the flight controller 1001 transmits the flight state data to the terminal device while providing the flight state data to each internal unit of the flight controller. Drive the simulation.
  • the terminal device may determine a target physical model for simulating the unmanned aerial vehicle based on the physical model selection operation of the user.
  • the flight controller may The terminal device sends control data, and the terminal device runs the built-in physical model according to the control data, and sends the flight control data output by the physical model to the flight controller.
  • the flight controller may The control data is generated, the built-in physical model is run according to the control data, and the flight state data output by the physical model is transmitted to the terminal device.
  • the simulation method provided by the embodiment of the present invention enables the user to select a physical model for the flight simulation of the drone from the physical model built in the terminal device and the physical model built in the flight controller, that is, the user can be based on the actual application.
  • the physical model used in the simulation is flexibly selected, and then the selected model is used for simulation.
  • FIG. 11 another flow diagram of an implementation process of implementing flight simulation of a drone based on a physical model selected by a user is illustrated, which may include:
  • Step S1101 The terminal device detects a physical model selection operation of the user.
  • Step S1102 The terminal device determines physical model selection information according to the detected physical model selection operation of the user.
  • Step S1103 The terminal device sends physical model selection information to the flight controller of the drone.
  • Step S1104 When receiving the physical model selection information sent by the terminal device, the flight controller determines a target physical model for simulating the UAV according to the physical model selection information.
  • the terminal device When the terminal device detects the first physical model selection operation, the terminal device sends the first physical model selection information to the flight controller, when the target physical model indicated by the physical model selection information indicates the physical model built in the terminal device, Steps S1105a-S1109a are executed, and step S1110 is further executed.
  • the target physical model is a physical model built in the terminal device, with reference to FIG.
  • Step S1105a The flight controller sends control data to the terminal device when determining that the target physical model is a physical model built in the terminal device.
  • Step S1106a The terminal device detects a configuration information setting operation of the user.
  • Step S1107a The terminal device determines configuration information of the physical model according to the detected configuration information setting operation.
  • Step S1108a The terminal device runs the built-in physical model according to the received control data and the determined configuration information.
  • Step S1109a The terminal device transmits the flight state data output by the physical model to the flight controller.
  • Step S1110 The terminal device displays the flight state data.
  • step S1110 The specific principle and explanation of the step S1110 are the same as the step S104, and details are not described herein again.
  • the terminal device When the terminal device detects the second physical model selection operation, the terminal device sends the second physical model selection information to the flight controller, that is, when the target physical model indicated by the physical model selection information indicates the physical model built in the terminal device Steps S1105b-S1109b are run, and step S1110 is further executed.
  • the target physical model is a physical model built in the terminal device, with reference to FIG. 12:
  • Step S1105b The flight controller generates control data when determining that the target physical model is a physical model built into the flight controller.
  • Step S1106b The terminal device detects a configuration information setting operation of the user, and determines configuration information of the physical model according to the detected configuration information setting operation.
  • Step S1107b The terminal device transmits the determined configuration information to the flight controller.
  • Step S1108b The flight controller runs the built-in physical model according to the generated control data and the received configuration information.
  • Step S1109b The flight controller transmits the flight state data output by the physical model to the terminal device.
  • the terminal device may determine a target physical model for simulating the unmanned aerial vehicle based on the physical model selection operation of the user.
  • the target physical model is a physical model built in the terminal device
  • the flight controller may The terminal device sends control data, and the terminal device may further determine configuration information of the physical model based on the configuration information setting operation of the user, and then execute the built-in physical model according to the received control data and the determined configuration information, and output flight control data of the physical model.
  • the flight controller may generate control data, and may also receive configuration information determined by the terminal device based on the configuration information setting operation, and further generate the control data according to The received configuration information runs the built-in physical model and transmits the flight state data output by the physical model to the terminal device.
  • the simulation method provided by the embodiment of the present invention enables the user to select a physical model for the flight simulation of the drone from the physical model built in the terminal device and the physical model built in the flight controller, that is, the user can be based on the actual application.
  • the physical model used in the simulation is flexibly selected, and then the selected model is used for simulation.
  • An embodiment of the present invention provides a terminal device.
  • a terminal device 13 may include: a memory 1301 and a processor 1302.
  • the memory 1301 may be a volatile memory, such as a random-access memory (RAM); the memory 1301 may also be a non-volatile memory, such as a flash memory. (flash memory), hard disk drive (HDD) or solid-state drive (SSD); the memory 1301 may also include a combination of the above types of memories.
  • RAM random-access memory
  • flash memory flash memory
  • HDD hard disk drive
  • SSD solid-state drive
  • the processor 1302 may be a central processing unit (CPU).
  • the processor 1102 can also further include a hardware chip.
  • the hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD), or a combination thereof.
  • the PLD may be a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a general array logic (GAL), or any combination thereof.
  • the memory 1301 is configured to store program code.
  • the processor 1302 calls the program code stored in the memory 1301, and when the program code is executed, is used to perform the following operations:
  • control data of the flight controller output in the simulation mode running a physical model built in the terminal device according to the control data; transmitting flight state data output by the physical model to the flight controller; displaying flight state data.
  • the physical model includes one or more of a dynamic system model, a dynamic model, a kinematic model, and a sensor model.
  • the control data includes one or more of control data of the power system, control data for the pan/tilt, control data for the payload, control data for the tripod, and control data for the indicator light.
  • the processor 1302 is further configured to send simulation request information to the flight controller to instruct the flight controller to enter the simulation mode.
  • the processor 1302 is further configured to send the first physical model selection information to the flight controller to indicate to the flight controller that the simulation is performed based on a physical model built in the terminal device.
  • the processor 1302 acquires the control data output by the flight controller in the simulation mode
  • the processor 1302 is configured to: after transmitting the first physical model selection information, acquire control data output by the flight controller in the simulation mode.
  • the processor 1302 is further configured to detect a first physical model selection operation of the user, and determine the first physical model selection information according to the detected first physical model selection operation.
  • the processor 1302 is further configured to detect a configuration information setting operation of the user, and determine configuration information of the physical model according to the detected configuration information setting operation.
  • the processor 1302 runs the physical model built in the terminal device according to the control data
  • the processor 1302 is specifically configured to: run the physical model built in the terminal device according to the control data and the configuration information.
  • the configuration information includes one or more of a failure information of the drone, a wind speed, a wind direction, a weight of the drone, and a rack type of the drone.
  • the terminal device provided by the embodiment of the present invention can use the built-in physical model to perform flight simulation of the drone.
  • the physical model built in the terminal device can be constructed by the user or the developer according to actual conditions, such as a specific application domain or a specific model, that is, the user.
  • the physical model can be flexibly customized according to the actual situation and the customized model can be modified. Therefore, the effect simulated by the physical model built into the terminal device is consistent with the actual flight effect of the drone.
  • the embodiment of the present invention further provides a flight controller of the drone.
  • a schematic structural diagram of the flight controller 13 is illustrated, which may include: a memory 1301 and a processor 1302.
  • the memory 1301 may be a volatile memory, such as a random-access memory (RAM); the memory 1301 may also be a non-volatile memory, such as a flash memory. (flash memory), hard disk drive (HDD) or solid-state drive (SSD); the memory 1301 may also be a combination of the above types of memories.
  • RAM random-access memory
  • flash memory flash memory
  • HDD hard disk drive
  • SSD solid-state drive
  • the processor 1302 may be a central processing unit (CPU).
  • the processor 1302 may further include a hardware chip.
  • the hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD), or a combination thereof.
  • the PLD may be a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a general array logic (GAL), or any combination thereof.
  • the memory 1301 is configured to store program code.
  • the processor 1302 calls the program code stored in the memory 1301, and when the program code is executed, is used to perform the following operations:
  • the physical model may include one or more of a dynamic system model, a dynamic model, a kinematic model, and a sensor model.
  • the control data may include one or more of control data of the power system, control data for the pan/tilt, control data for the payload, control data for the tripod, and control data for the indicator light.
  • the processor 1302 is further configured to receive the simulation request information sent by the terminal device, and enter the simulation mode after receiving the simulation request information.
  • the processor 1302 is further configured to receive first physical model selection information sent by the terminal device.
  • the processor 1302 sends the control data to the terminal device, specifically, when the first physical model selection information is received, the processor 1302 sends the control data to the terminal device.
  • the flight state data is obtained by the terminal device running the physical model built in the terminal device according to the control data and the configuration information of the physical model, wherein the configuration information of the physical model is determined by the terminal device based on the detected operation of the user. .
  • the configuration information may include one or more of a failure information of the drone, a wind speed, a wind direction, a weight of the drone, and a rack type of the drone.
  • the processor 1302 is further configured to receive a control instruction sent by the control terminal or the terminal device, and generate control data according to the control instruction.
  • the flight controller provided by the embodiment of the invention enables the terminal device to adopt the built-in physical model to perform flight simulation of the drone, and the physical model built in the terminal device can be based on actual conditions such as a specific application domain or a specific machine by the user or the developer.
  • Type construction that is, the user can flexibly customize his own physical model according to the actual situation and modify the customized model. Therefore, the effect simulated by the physical model built into the terminal device is consistent with the actual flight effect of the drone.
  • the embodiment of the present invention further provides a terminal device.
  • a terminal device Referring to FIG. 13, a schematic structural diagram of the terminal device 13 is shown, which may include: a memory 1301 and a processor 1302.
  • the memory 1301 may be a volatile memory, such as a random-access memory (RAM); the memory 1301 may also be a non-volatile memory, such as a flash memory. (flash memory), hard disk drive (HDD) or solid-state drive (SSD); the memory 1301 may also include a combination of the above types of memories.
  • RAM random-access memory
  • flash memory flash memory
  • HDD hard disk drive
  • SSD solid-state drive
  • the processor 1302 may be a central processing unit (CPU).
  • the processor 1302 may further include a hardware chip.
  • the hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD), or a combination thereof.
  • the PLD may be a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a general array logic (GAL), or any combination thereof.
  • the memory 1301 is configured to store program code.
  • the processor 1302 calls the program code stored in the memory 1301, and when the program code is executed, is used to perform the following operations:
  • the target physical model of the machine is simulated.
  • the target physical model is one of a physical model built into the flight controller and a physical model built into the terminal device.
  • the physical model may include one or more of a dynamic system model, a dynamic model, a kinematic model, and a sensor model.
  • control data may include control data for the power system, control data for the pan/tilt, control data for the payload, and One or more of the control data of the tripod and the control data of the indicator light.
  • the processor 1302 is further configured to: when the target physical model is a physical model built in the terminal device, receive control data sent by the flight controller, and run a physical model built in the terminal device according to the control data to obtain flight state data. Send flight status data to the flight controller to display flight status data.
  • the processor 1302 is further configured to receive flight state data sent by the flight controller when the target physical model is a physical model built in the flight controller, where the flight state data is that the flight controller runs according to the control data. Obtained by the physical model built into the flight controller; displays flight status data.
  • the processor 1302 when the processor 1302 displays the status data, it is specifically used to display the flight status data in the form of a drone animation.
  • the processor 1302 is further configured to detect a configuration information setting operation of the user, and determine configuration information of the physical model according to the detected configuration information setting operation.
  • the processor 1302 runs the physical model built in the terminal device to obtain the flight state data according to the control data
  • the processor 1302 is configured to: run the physical model built in the terminal device according to the control data and the configuration information to obtain the flight state data.
  • the processor 1302 is further configured to detect a configuration information setting operation of the user, determine configuration information of the physical model according to the detected configuration information setting operation, and send the determined configuration information to the flight controller; the flight state data. It is obtained by the flight controller running the physical model built into the flight controller based on the control data and configuration information.
  • the configuration information may include one or more of a failure information of the drone, a wind speed, a wind direction, a weight of the drone, and a rack type of the drone.
  • the processor 1302 is further configured to detect a user's simulation request operation, determine simulation request information according to the detected simulation request operation, and send simulation request information to the flight controller to instruct the flight controller to determine whether the preset is met. Simulation requirements.
  • the processor 1302 sends the physical model selection information to the flight controller of the drone the method is specifically configured to: when the flight controller determines that the preset simulation requirement is met, send the physical model selection information to the flight controller of the drone.
  • the terminal device provided by the embodiment of the invention enables the user to select a physical model for the flight simulation of the drone from the physical model built in the terminal device and the physical model built in the flight controller, that is, the user can flexibly based on the actual application situation. Select the physical model used for the simulation.
  • the embodiment of the present invention further provides a flight controller of the drone.
  • a schematic structural diagram of the flight controller 13 is illustrated, which may include: a memory 1301 and a processor 1302.
  • the memory 1301 may be a volatile memory, such as a random-access memory (RAM); the memory 1301 may also be a non-volatile memory, such as a flash memory. (flash memory), hard disk drive (HDD) or solid-state drive (SSD); memory 1301 can also be A combination of the types of memory described.
  • RAM random-access memory
  • flash memory flash memory
  • HDD hard disk drive
  • SSD solid-state drive
  • the processor 1302 may be a central processing unit (CPU).
  • the processor 1302 may further include a hardware chip.
  • the hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD), or a combination thereof.
  • the PLD may be a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a general array logic (GAL), or any combination thereof.
  • the memory 1301 is configured to store program code.
  • the processor 1302 calls the program code stored in the memory 1301, and when the program code is executed, is used to perform the following operations:
  • the physical model may include one or more of a dynamic system model, a dynamic model, a kinematic model, and a sensor model.
  • the control data may include one or more of control data of the power system, control data for the pan/tilt, control data for the payload, control data for the tripod, and control data for the indicator light.
  • the processor 1302 is further configured to: when the target physical model is a physical model built in the terminal device, send control data to the terminal device, and receive flight state data sent by the terminal device, where the flight state data is a terminal device. Obtained based on the physical model built into the terminal device based on the control data.
  • the processor 1302 is further configured to: when the target physical model is a physical model built in the flight controller, generate control data, and run a physical model built in the flight controller according to the control data to obtain flight state data; The flight status data is sent to the terminal device.
  • the processor 1302 is further configured to receive a control instruction sent by the control terminal.
  • the processor 1402 When the processor 1402 generates the control data, it is specifically configured to: generate the control data according to the received control instruction.
  • the processor 1302 is further configured to receive a control instruction sent by the terminal device.
  • the processor 1402 When the processor 1402 generates the control data, it is specifically configured to: generate the control data according to the received control instruction.
  • the processor 1302 is further configured to receive the simulation request information sent by the terminal device, and after receiving the simulation request information, determine whether the flight controller meets the preset simulation requirement.
  • the processor 1302 receives the physical model selection information sent by the terminal device, the processor 1302 is specifically configured to: after determining that the flight controller meets the preset simulation requirement, receive the physical model selection information sent by the terminal device.
  • the flight state data is obtained by the terminal device running the physical model built in the terminal device according to the control data and the configuration information of the physical model, and the configuration information of the physical model is determined by the terminal device based on the detected operation of the user.
  • the processor 1302 is further configured to receive configuration information of a physical model sent by the terminal device, where the physical model The configuration information is determined by the terminal device based on the detected user's operation. Then, when the processor 1302 runs the physical model built in the flight controller according to the control data to obtain the flight state data, the processor 1302 is specifically configured to: run the physical model built in the flight controller according to the control data and the configuration information of the physical model to obtain the flight state data.
  • the configuration information may include one or more of a failure information of the drone, a wind speed, a wind direction, a weight of the drone, and a rack type of the drone.
  • the flight controller provided by the embodiment of the invention enables the user to select a physical model for the flight simulation of the drone from the physical model built in the terminal device and the physical model built in the flight controller, that is, the user can be based on the actual application situation. Flexibly select the physical model used for the simulation.
  • the storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).

Landscapes

  • Engineering & Computer Science (AREA)
  • Aviation & Aerospace Engineering (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Selective Calling Equipment (AREA)

Abstract

A simulation method comprises: obtaining control data outputted by a flight controller (2011) in simulation mode; operating a physical model (202) built in a terminal device (200) according to the control data; sending, to the flight controller (2011), flight state data outputted by the physical model (202); and displaying the flight state data. In the method, simulation is performed by using the physical model (202) built in the terminal device (200). The present invention also relates to the terminal device (200), and a flight controller (2011) for an unmanned aerial vehicle. Because the physical model (202) built in the terminal device (200) can be constructed and modified by a user according to actual condition, effects simulated by the model conform to actual fight effects of the unmanned aerial vehicle, thereby improving the simulation effect of the unmanned aerial vehicle.

Description

一种仿真方法、终端设备及无人机的飞行控制器Simulation method, terminal device and flight controller of drone 技术领域Technical field
本发明涉及无人机飞行仿真技术领域,尤其涉及一种仿真方法、终端设备及无人机的飞行控制器。The invention relates to the technical field of flight simulation of a drone, in particular to a simulation method, a terminal device and a flight controller of the drone.
背景技术Background technique
随着无人机的技术越来越成熟,其应用范围也越来越广,如航拍、测绘、农业等领域。为了提高飞行的安全性,协助用户掌握飞行技巧或者降低开发者的难度,一般无人机的飞行控制器都会支持飞行仿真功能。As the technology of drones becomes more and more mature, its application range is also wider, such as aerial photography, surveying and mapping, agriculture and other fields. In order to improve the safety of the flight, assist the user to master the flight skills or reduce the difficulty of the developer, the flight controller of the general drone will support the flight simulation function.
目前,无人机的飞行仿真功能通过飞行控制器内置的无人机的物理模型实现,具体地,通过终端设备控制飞行控制器进入仿真模式,飞行控制器进入仿真模式后,飞行控制器运行其内置的物理模型并响应外部输入,同时将无人机的飞行状态数据发送给终端设备,终端设备通过交互装置显示无人机的飞行状态数据,例如交互装置显示表征所述飞行状态数据的无人机的动画。然而,由于用于飞行仿真的物理模型内置于飞行控制器中,用户或者开发者无法根据实际情况(如特定应用领域或特定机型)修改该物理模型或者根据自己的需求设计定制化的物理模型,这导致仿真出来的效果与无人机的实际飞行效果有较大差异。At present, the flight simulation function of the drone is realized by the physical model of the drone built in the flight controller. Specifically, the flight controller enters the simulation mode through the terminal device, and after the flight controller enters the simulation mode, the flight controller runs its The built-in physical model responds to the external input, and simultaneously transmits the flight state data of the drone to the terminal device, and the terminal device displays the flight state data of the drone through the interaction device, for example, the interaction device displays the unmanned character representing the flight state data. Machine animation. However, since the physical model used for flight simulation is built into the flight controller, the user or developer cannot modify the physical model according to the actual situation (such as a specific application area or a specific model) or design a customized physical model according to their own needs. This results in a large difference between the simulated effect and the actual flight effect of the drone.
发明内容Summary of the invention
本发明实施例提供了一种仿真方法、终端设备及无人机的飞行控制器,以在无人机仿真过程中提高物理模型选择的灵活性,其技术方案如下:The embodiment of the invention provides a simulation method, a terminal device and a flight controller of the drone to improve the flexibility of physical model selection in the UAV simulation process. The technical solution is as follows:
第一方面,本发明实施例提供了一种仿真方法,应用于终端设备,包括:In a first aspect, an embodiment of the present invention provides a simulation method, which is applied to a terminal device, and includes:
获取处于仿真模式的飞行控制器输出的控制数据;Obtaining control data of the flight controller output in the simulation mode;
根据所述控制数据运行所述终端设备内置的物理模型;Running a physical model built in the terminal device according to the control data;
将所述物理模型输出的飞行状态数据发送至所述飞行控制器;Transmitting flight state data output by the physical model to the flight controller;
显示所述飞行状态数据。The flight status data is displayed.
第二方面,本发明实施例还提供了一种仿真方法,应用于无人机的飞行控制器,包括:In a second aspect, an embodiment of the present invention provides a simulation method applied to a flight controller of a drone, including:
向终端设备发送控制数据;Sending control data to the terminal device;
接收所述终端设备发送的飞行状态数据,其中,所述飞行状态数据是所述终端设备根据所述控制数据运行所述终端设备内置的物理模型获得的。Receiving flight state data sent by the terminal device, wherein the flight state data is obtained by the terminal device running a physical model built in the terminal device according to the control data.
第三方面,本发明实施例还提供了一种仿真方法,应用于终端设备,包括:In a third aspect, the embodiment of the present invention further provides a simulation method, which is applied to a terminal device, and includes:
检测用户的物理模型选择操作; Detecting the user's physical model selection operation;
根据检测到的所述用户的物理模型选择操作确定物理模型选择信息;Determining physical model selection information according to the detected physical model selection operation of the user;
向无人机的飞行控制器发送所述物理模型选择信息;Transmitting the physical model selection information to a flight controller of the drone;
其中,所述物理模型选择信息用于指示对无人机进行仿真的目标物理模型,所述目标物理模型为所述飞行控制器内置的物理模型和所述终端设备内置的物理模型中的一个。The physical model selection information is used to indicate a target physical model for simulating a drone, and the target physical model is one of a physical model built in the flight controller and a physical model built in the terminal device.
第四方面,本发明实施例还提供了一种仿真方法,应用于无人机的飞行控制器,包括:In a fourth aspect, an embodiment of the present invention provides a simulation method, which is applied to a flight controller of a drone, and includes:
接收终端设备发送的物理模型选择信息;Receiving physical model selection information sent by the terminal device;
根据所述物理模型选择信息确定对所述无人机进行仿真的目标物理模型;Determining, according to the physical model selection information, a target physical model for simulating the drone;
其中,所述目标物理模型为飞行控制器内置的物理模型和所述终端设备内置的物理模型中的一个。The target physical model is one of a physical model built in the flight controller and a physical model built in the terminal device.
第五方面,本发明实施例还提供了一种终端设备,包括:存储器和处理器;In a fifth aspect, an embodiment of the present invention further provides a terminal device, including: a memory and a processor;
所述存储器,用于存储程序代码;The memory is configured to store program code;
所述处理器,调用所述程序代码,当所述程序代码被执行时,用于执行以下操作:The processor, the program code is invoked, and when the program code is executed, is used to perform the following operations:
获取处于仿真模式的飞行控制器输出的控制数据;Obtaining control data of the flight controller output in the simulation mode;
根据所述控制数据运行所述终端设备内置的物理模型;Running a physical model built in the terminal device according to the control data;
将所述物理模型输出的飞行状态数据发送至所述飞行控制器;Transmitting flight state data output by the physical model to the flight controller;
显示所述飞行状态数据。The flight status data is displayed.
第六方面,本发明实施例还提供了一种无人机的飞行控制器,包括:存储器和处理器;In a sixth aspect, an embodiment of the present invention further provides a flight controller of a drone, including: a memory and a processor;
所述存储器,用于存储程序代码;The memory is configured to store program code;
所述处理器,调用所述程序代码,当所述程序代码被执行时,用于执行以下操作:The processor, the program code is invoked, and when the program code is executed, is used to perform the following operations:
向终端设备发送控制数据;Sending control data to the terminal device;
接收所述终端设备发送的飞行状态数据,其中,所述飞行状态数据是所述终端设备根据所述控制数据运行所述终端设备内置的物理模型获得的。Receiving flight state data sent by the terminal device, wherein the flight state data is obtained by the terminal device running a physical model built in the terminal device according to the control data.
第七方面,本发明实施例还提供了一种终端设备,包括:存储器和处理器;In a seventh aspect, the embodiment of the present invention further provides a terminal device, including: a memory and a processor;
所述存储器,用于存储程序代码;The memory is configured to store program code;
所述处理器,调用所述程序代码,当所述程序代码被执行时,用于执行以下操作:The processor, the program code is invoked, and when the program code is executed, is used to perform the following operations:
检测用户的物理模型选择操作;Detecting the user's physical model selection operation;
根据检测到的所述用户的物理模型选择操作确定物理模型选择信息;Determining physical model selection information according to the detected physical model selection operation of the user;
向无人机的飞行控制器发送所述物理模型选择信息;Transmitting the physical model selection information to a flight controller of the drone;
其中,所述物理模型选择信息用于指示对无人机进行仿真的目标物理模型,所述目标物理模型为所述飞行控制器内置的物理模型和所述终端设备内置的物理模型中的一个。 The physical model selection information is used to indicate a target physical model for simulating a drone, and the target physical model is one of a physical model built in the flight controller and a physical model built in the terminal device.
第八方面,本发明实施例还提供了一种无人机的飞行控制器,包括:存储器和处理器;In an eighth aspect, an embodiment of the present invention further provides a flight controller of a drone, including: a memory and a processor;
所述存储器,用于存储程序代码;The memory is configured to store program code;
所述处理器,调用所述程序代码,当所述程序代码被执行时,用于执行以下操作:The processor, the program code is invoked, and when the program code is executed, is used to perform the following operations:
接收终端设备发送的物理模型选择信息;Receiving physical model selection information sent by the terminal device;
根据所述物理模型选择信息确定对所述无人机进行仿真的目标物理模型;Determining, according to the physical model selection information, a target physical model for simulating the drone;
其中,所述目标物理模型为飞行控制器内置的物理模型和所述终端设备内置的物理模型中的一个。The target physical model is one of a physical model built in the flight controller and a physical model built in the terminal device.
本发明实施例提供的仿真方法、终端设备及无人机的飞行控制器,可采用终端设备内置的物理模型实施无人机的飞行仿真,克服了现有技术中无人机的仿真只能使用飞行控制器内置的物理模型的缺陷,通过这种方式,可以支持用户或者开发者定制或者开发特定的物理模型来实现无人机的飞行仿真,使得仿真效果能够与实际效果更加匹配。另外,用户可以通过终端设备从终端设备内置的物理模型和飞行控制器内置的物理模型中选取用于进行飞行仿真的物理模型,这使得用户能够根据实际应用情况灵活选择物理模型进行仿真,丰富了在无人机仿真过程中物理模型的选择方式,提高了飞行仿真的灵活性。The simulation method, the terminal device and the flight controller of the drone provided by the embodiment of the invention can implement the flight simulation of the drone by using the physical model built in the terminal device, and overcome the simulation of the UAV in the prior art. The defect of the physical model built into the flight controller, in this way, can support the user or the developer to customize or develop a specific physical model to realize the flight simulation of the drone, so that the simulation effect can be more closely matched with the actual effect. In addition, the user can select a physical model for performing flight simulation from the physical model built in the terminal device and the physical model built in the flight controller through the terminal device, which enables the user to flexibly select the physical model for simulation according to the actual application situation, enriching The choice of physical model during the UAV simulation process improves the flexibility of flight simulation.
附图说明DRAWINGS
图1为本发明实施例提供的仿真方法的一流程示意图;1 is a schematic flowchart of a simulation method according to an embodiment of the present invention;
图2为本发明实施例提供的采用终端设备内置的物理模型进行仿真的实现方法的示意图;2 is a schematic diagram of an implementation method for performing simulation by using a physical model built in a terminal device according to an embodiment of the present invention;
图3为本发明实施例提供的仿真方法的另一流程示意图;3 is another schematic flowchart of a simulation method according to an embodiment of the present invention;
图4为本发明实施例提供的采用终端设备内置的物理模型进行仿真的实现方法的一流程示意图;4 is a schematic flowchart of a method for implementing simulation by using a physical model built in a terminal device according to an embodiment of the present invention;
图5为本发明实施例提供的采用终端设备内置的物理模型进行仿真的实现方法的另一流程示意图;FIG. 5 is another schematic flowchart of a method for implementing simulation by using a physical model built in a terminal device according to an embodiment of the present disclosure;
图6为本发明实施例提供的仿真方法的另一流程示意图;FIG. 6 is another schematic flowchart of a simulation method according to an embodiment of the present disclosure;
图7为本发明实施例提供的仿真方法的另一流程示意图;FIG. 7 is another schematic flowchart of a simulation method according to an embodiment of the present disclosure;
图8为本发明实施例提供的基于用户选取的物理模型实现无人机的飞行仿真的实现过程的一流程示意图;FIG. 8 is a schematic flowchart of an implementation process of implementing flight simulation of a drone based on a physical model selected by a user according to an embodiment of the present invention; FIG.
图9为本发明实施例本发明实施例提供的采用终端设备内置的物理模型进行仿真的实现方法的示意图;FIG. 9 is a schematic diagram of an implementation method for performing simulation by using a physical model built in a terminal device according to an embodiment of the present invention;
图10为本发明实施例提供的采用飞行控制器内置的物理模型进行仿真的实现方法的示意图;FIG. 10 is a schematic diagram of an implementation method for performing simulation by using a physical model built in a flight controller according to an embodiment of the present invention; FIG.
图11为本发明实施例提供的基于用户选取的物理模型实现无人机的飞行仿真的实现过程的又一流程示意图;FIG. 11 is still another schematic flowchart of an implementation process of implementing flight simulation of a drone based on a physical model selected by a user according to an embodiment of the present invention;
图12为本发明实施例提供的基于用户选取的物理模型实现无人机的飞行仿真的实现过程的又一流 程示意图;FIG. 12 is still another flow of implementing a flight simulation of a drone based on a physical model selected by a user according to an embodiment of the present invention. Schematic diagram
图13为本发明实施例提供的终端设备或飞行控制器的结构示意图。FIG. 13 is a schematic structural diagram of a terminal device or a flight controller according to an embodiment of the present invention.
具体实施方式Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are only a part of the embodiments of the present invention, but not all embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
需要说明的是,当组件被称为“固定于”另一个组件,它可以直接在另一个组件上或者也可以存在居中的组件。当一个组件被认为是“连接”另一个组件,它可以是直接连接到另一个组件或者可能同时存在居中组件。It should be noted that when a component is referred to as being "fixed" to another component, it can be directly on the other component or the component can be in the middle. When a component is considered to "connect" another component, it can be directly connected to another component or possibly a central component.
除非另有定义,本文所使用的所有的技术和科学术语与属于本发明的技术领域的技术人员通常理解的含义相同。本文中在本发明的说明书中所使用的术语只是为了描述具体的实施例的目的,不是旨在于限制本发明。本文所使用的术语“及/或”包括一个或多个相关的所列项目的任意的和所有的组合。All technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs, unless otherwise defined. The terminology used in the description of the present invention is for the purpose of describing particular embodiments and is not intended to limit the invention. The term "and/or" used herein includes any and all combinations of one or more of the associated listed items.
下面结合附图,对本发明的一些实施方式作详细说明。在不冲突的情况下,下述的实施例及实施例中的特征可以相互组合。Some embodiments of the present invention are described in detail below with reference to the accompanying drawings. The features of the embodiments and examples described below can be combined with each other without conflict.
本发明实施例提供了一种仿真方法,应用于终端设备,请参阅图1,为本发明实施例提供的仿真方法的流程示意图,所述方法包括:The embodiment of the present invention provides a simulation method, which is applied to a terminal device. Referring to FIG. 1 , it is a schematic flowchart of a simulation method according to an embodiment of the present invention. The method includes:
步骤S101:获取处于仿真模式的飞行控制器输出的控制数据。Step S101: Acquire control data output by the flight controller in the simulation mode.
具体地,如图2所示,所述仿真方法的执行主体为终端设备200,进一步地,所述执行主体可以为终端设备的处理器,其中,所述处理器可以为一个或者多个,所述终端设备可以为任何能够与用户或者开发者进行交互的设备,其中,所述终端设备可以具体为遥控器、智能手机、平板电脑、膝上型电脑、台式电脑、地面控制站、穿戴式设备(手表、手环等)中的一种或多种。Specifically, as shown in FIG. 2, the execution body of the simulation method is the terminal device 200. Further, the execution body may be a processor of the terminal device, where the processor may be one or more. The terminal device can be any device capable of interacting with a user or a developer, wherein the terminal device can be specifically a remote controller, a smart phone, a tablet computer, a laptop computer, a desktop computer, a ground control station, a wearable device. One or more of (watches, bracelets, etc.).
飞行控制器2011处于仿真模式中时,终端设备200接收无人机201的飞行控制器2011输出的控制数据,具体地,终端设备200可以包括与飞行控制器连接的通讯接口,终端设备200的处理器可以控制所述通讯接口接收飞行控制器2011输出的控制数据,所述处理器从所述通讯接口中获取所述控制数据,其中,所述控制数据可以为对无人机上任何执行机构进行控制的控制数据,进一步地,控制数据可以包括对动力系统的控制数据、对云台的控制数据、对有效负载的控制数据、对脚架的控制数据、对指示灯的控制数据中的一种或多种。When the flight controller 2011 is in the simulation mode, the terminal device 200 receives the control data output by the flight controller 2011 of the drone 201. Specifically, the terminal device 200 may include a communication interface connected to the flight controller, and the processing of the terminal device 200 The device may control the communication interface to receive control data output by the flight controller 2011, and the processor acquires the control data from the communication interface, wherein the control data may be used to control any actuator on the drone Control data, further, the control data may include one of control data for the power system, control data for the pan/tilt, control data for the payload, control data for the tripod, and control data for the indicator light or A variety.
步骤S102:根据控制数据运行终端设备内置的物理模型。 Step S102: Run a physical model built in the terminal device according to the control data.
具体地,在获取到飞行控制器2011输出的控制数据,终端设备200可以根据所述控制数据运行所述终端设备内置的物理模型202,进一步地,终端设备的处理器根据所述控制数运行终端设备内置的物理模型202,其中处理器可以将控制数据作为终端设备内置的物理模型202的入口参数来驱动所述物理模型202的运行,其中所述终端设备内置的物理模型202可以为程序代码,所述程序代码可以存储在与处理器通讯连接的存储器中,处理器在获取到所述控制数据后,可以将所述控制数据作为入口参数,调用存储器中存储的程序代码来运行所述物理模型202,物理模型202可以包括动力系统模型、动力学模型、运动学模型、传感器模型中的一种或多种。Specifically, in acquiring the control data output by the flight controller 2011, the terminal device 200 may run the physical model 202 built in the terminal device according to the control data, and further, the processor of the terminal device runs the terminal according to the control number. a physical model 202 built in the device, wherein the processor can drive the operation of the physical model 202 by using the control data as an entry parameter of the physical model 202 built in the terminal device, where the physical model 202 built in the terminal device can be a program code. The program code may be stored in a memory communicatively coupled to the processor, and after acquiring the control data, the processor may use the control data as an entry parameter, and call the program code stored in the memory to run the physical model. 202. The physical model 202 can include one or more of a power system model, a dynamics model, a kinematic model, and a sensor model.
步骤S103:将物理模型输出的飞行状态数据发送至飞行控制器。Step S103: Send flight state data output by the physical model to the flight controller.
具体地,终端设备200的处理器根据控制数据运行终端设备内置的物理模型202之后,可以得到所述物理模型202的出口参数,即飞行状态数据,终端设备的处理器可以控制与飞行控制器2011连接的通讯接口将所述飞行状态数据发送给飞行控制器2011,飞行控制器2011在接收到飞行状态数据后,将所述飞行状态数据提供给内部的功能单元使用以驱动飞行仿真的运行,其中所述飞行状态数据可以为传感器数据或者对传感器数据进行融合之后得到的数据。具体的,传感器数据可以为位置数据、加速度数据、角加速度数据、方位数据、气压数据、电量数据中的一种或多种。Specifically, after the processor of the terminal device 200 runs the physical model 202 built in the terminal device according to the control data, the exit parameter of the physical model 202, that is, the flight state data, may be obtained, and the processor of the terminal device may control the flight controller 2011. The connected communication interface transmits the flight status data to the flight controller 2011, and after receiving the flight status data, the flight controller 2011 provides the flight status data to an internal functional unit for driving the flight simulation operation, wherein The flight state data may be sensor data or data obtained after merging sensor data. Specifically, the sensor data may be one or more of position data, acceleration data, angular acceleration data, orientation data, air pressure data, and power data.
步骤S104:显示飞行状态数据。Step S104: Display flight state data.
具体地,终端设备可以配置与用户进行交互的交互装置,其中所述交互装置可以为显示装置或者触摸显示装置,在某些情况下,交互装置还可以包括按键、键盘、摇杆、波轮中的一种或多种,显示装置可以显示交互界面,终端设备的处理器可以控制显示装置在该交互界面中显示所述飞行状态数据。其中,显示的方式可以是直接显示或者间接的显示,在此不作具体的限定。Specifically, the terminal device may be configured with an interaction device that interacts with the user, where the interaction device may be a display device or a touch display device. In some cases, the interaction device may further include a button, a keyboard, a joystick, and a pulsator. Or one or more of the display devices can display an interactive interface, and the processor of the terminal device can control the display device to display the flight state data in the interactive interface. The display manner may be direct display or indirect display, and is not specifically limited herein.
需要说明的是,步骤S103和步骤S104的执行顺序可以先后执行,且其先后顺序可以互换,另外,步骤S103和步骤S104也可以同时执行,在此不作限定。It should be noted that the execution sequence of the step S103 and the step S104 may be performed sequentially, and the sequence may be interchanged. In addition, the step S103 and the step S104 may be performed simultaneously, which is not limited herein.
在某些实施例中,所述显示飞行状态数据包括:以无人机动画的形式显示所述飞行状态数据。具体地,如图2所示,终端设备的交互装置上可以显示交互界面,其中,交互界面可以显示无人机204,其中交互界面中显示的无人机204为表现所述飞行状态数据的无人机,该无人机204具有所述飞行状态数据指示的飞行状态,另外,终端设备可以生成环境场景205和206,通过观察无人机204表现出来的状态,即可以达到飞行仿真的效果。另外,在某些情况下,飞行状态数据还可以以文字的形式显示在交互界面上,在这里不作具体的限定。In some embodiments, the displaying flight state data comprises displaying the flight state data in the form of a drone animation. Specifically, as shown in FIG. 2, an interaction interface may be displayed on the interaction device of the terminal device, where the interaction interface may display the drone 204, wherein the drone 204 displayed in the interaction interface is a representation of the flight state data. In the human machine, the drone 204 has the flight state indicated by the flight state data. In addition, the terminal device can generate the environmental scenarios 205 and 206. By observing the state exhibited by the drone 204, the effect of the flight simulation can be achieved. In addition, in some cases, the flight state data may also be displayed on the interactive interface in the form of text, which is not specifically limited herein.
在某些实施例中,所述仿真方法还包括:向飞行控制器发送仿真请求信息。具体地,终端设备可以向飞行控制器发送仿真请求信息,其中,所述仿真请求信息用于指示飞行控制器进入仿真模式,具体地, 用户可以在终端设备上的交互装置上进行仿真请求操作,终端设备的处理器可以检测所述仿真请求操作,并根据检测到的仿真请求操作确定仿真请求信息,处理器控制与飞行控制器连接的通讯接口向飞行控制器发送所述仿真请求信息,飞行控制器在接收到所述仿真请求信息后进入仿真模式。In some embodiments, the simulation method further comprises transmitting simulation request information to the flight controller. Specifically, the terminal device may send the simulation request information to the flight controller, where the simulation request information is used to instruct the flight controller to enter the simulation mode, specifically, The user can perform a simulation request operation on the interaction device on the terminal device, the processor of the terminal device can detect the simulation request operation, and determine the simulation request information according to the detected simulation request operation, and the processor controls the connection with the flight controller. The communication interface sends the simulation request information to the flight controller, and the flight controller enters the simulation mode after receiving the simulation request information.
本发明实施例提供的仿真方法,可采用终端设备内置的物理模型实施无人机的飞行仿真,克服了现有技术中无人机的仿真只能使用飞行控制器内置的物理模型的缺陷,通过这种方式,可以支持用户或者开发者定制或者开发特定的物理模型来实现无人机的飞行仿真,使得仿真效果能够与实际效果更加匹配。The simulation method provided by the embodiment of the present invention can implement the flight simulation of the UAV by using the physical model built in the terminal device, and overcome the defect that the simulation of the UAV in the prior art can only use the physical model built in the flight controller. In this way, the user or the developer can be customized or developed to implement a specific physical model to realize the flight simulation of the drone, so that the simulation effect can be more closely matched with the actual effect.
与图1中实施例提供的仿真方法相对应地,本发明实施例还提供了一种仿真方法,应用于无人机的飞行控制器,请参阅图3,为本发明实施例提供的仿真方法的流程示意图,所述方法包括:Corresponding to the simulation method provided by the embodiment in FIG. 1 , the embodiment of the present invention further provides a simulation method, which is applied to a flight controller of a drone, and FIG. 3 is a simulation method provided by an embodiment of the present invention. Schematic diagram of the process, including:
步骤S301:向终端设备发送控制数据。Step S301: Send control data to the terminal device.
具体地,所述仿真方法的执行主体为无人机的飞行控制器,进一步地,执行主体可以为飞行控制器的处理器,在仿真过程中,飞行控制器中的处理器可以控制与终端设备连接的通讯接口向终端设备发送控制数据,其中控制数据的解释请参见前述部分,在此不再赘述。Specifically, the execution body of the simulation method is a flight controller of the drone, and further, the execution body may be a processor of the flight controller, and the processor in the flight controller may control and the terminal device during the simulation process. The connected communication interface sends control data to the terminal device. For the explanation of the control data, refer to the foregoing section, and details are not described herein again.
步骤S302:接收终端设备发送的飞行状态数据,其中,所述飞行状态数据是终端设备根据所述控制数据运行所述终端设备内置的物理模型获取得到的。Step S302: Receive flight state data sent by the terminal device, where the flight state data is obtained by the terminal device running the physical model built in the terminal device according to the control data.
具体地,飞行控制器将控制数据发送给终端设备之后,终端设备根据接收到的控制数据运行终端设备内置的物理模型,然后,终端设备将所述物理模型输出的飞行状态数据,即根据飞行控制器发送的控制数据仿真得到的飞行状态数据,发送给飞行控制器,飞行控制器在接收到飞行状态数据后,将所述飞行状态数据提供给内部的功能单元使用以驱动飞行仿真的运行。Specifically, after the flight controller sends the control data to the terminal device, the terminal device runs the physical model built in the terminal device according to the received control data, and then the terminal device outputs the flight state data of the physical model, that is, according to the flight control. The flight state data obtained by the control data sent by the controller is sent to the flight controller, and after receiving the flight state data, the flight controller provides the flight state data to the internal functional unit to drive the operation of the flight simulation.
在某些实施例中,所述仿真方法还包括:接收所述终端设备发送的仿真请求信息,在接收到所述仿真请求信息之后,进入仿真模式。具体地,飞行控制器在接收到所述终端设备发送的仿真请求信息之后,飞行控制器进入仿真模式,在飞行控制器进入仿真模式后,飞行控制器向终端设备发送控制数据。In some embodiments, the emulation method further includes: receiving emulation request information sent by the terminal device, and entering the emulation mode after receiving the emulation request information. Specifically, after receiving the simulation request information sent by the terminal device, the flight controller enters an emulation mode, and after the flight controller enters the emulation mode, the flight controller sends control data to the terminal device.
本发明实施例提供的仿真方法,可采用终端设备内置的物理模型实施无人机的飞行仿真,克服了现有技术中无人机的仿真只能使用飞行控制器内置的物理模型的缺陷,通过这种方式,可以支持用户或者开发者定制或者开发特定的物理模型来实现无人机的飞行仿真,使得仿真效果能够与实际效果更加匹配。The simulation method provided by the embodiment of the present invention can implement the flight simulation of the UAV by using the physical model built in the terminal device, and overcome the defect that the simulation of the UAV in the prior art can only use the physical model built in the flight controller. In this way, the user or the developer can be customized or developed to implement a specific physical model to realize the flight simulation of the drone, so that the simulation effect can be more closely matched with the actual effect.
在上述实施例的基础上,下面通过终端设备与无人机的飞行控制器之间的信息交互来详细说明,本发明的技术方案如何采用终端设备内置的物理模型进行仿真,请参阅图4,示出了采用终端设备内置的 物理模型进行仿真的实现方法的一流程示意图,该方法可以包括:Based on the above embodiments, the following describes in detail the information interaction between the terminal device and the flight controller of the drone, and how the technical solution of the present invention is simulated by using the physical model built in the terminal device. Referring to FIG. 4, Shows the built-in use of the terminal device A schematic diagram of a process for implementing a physical model for simulation, the method may include:
步骤S401:终端设备向飞行控制器发送仿真请求信息。Step S401: The terminal device sends the simulation request information to the flight controller.
步骤S401的具体方法和原理请参见前述部分,此处不再赘述。For the specific method and principle of step S401, refer to the foregoing part, and details are not described herein again.
步骤S402:飞行控制器接收到仿真请求信息之后,进入仿真模式。Step S402: After receiving the simulation request information, the flight controller enters the simulation mode.
步骤S402的具体方法和原理请参见前述部分,此处不再赘述。For the specific method and principle of step S402, refer to the foregoing part, and details are not described herein again.
步骤S403:终端设备向飞行控制器发送第一物理模型选择信息。Step S403: The terminal device sends the first physical model selection information to the flight controller.
具体地,用户可以在终端设备的交互装置上进行第一物理模型选择操作来选择使用终端设备内置的物理模型来实现无人机的仿真过程,或者用户可以在终端设备的交互装置上进行第二物理模型选择操作来选择使用无人机的飞行控制器内置的物理模型来实现无人机的仿真过程。当用户在终端设备的交互装置上进行第一物理模型选择操作时,终端设备的处理器可以检测第一物理模型选择操作,并根据检测到的所述第一物理模型选择操作确定第一物理模型选择信息,并将所述第一物理模型选择信息发送给飞行控制器,第一物理模型选择信息用于向飞行控制器指示基于终端设备内置的物理模型进行仿真。当用户在终端设备的交互装置上进行第二物理模型选择操作时,终端设备的处理器可以检测第二物理模型选择操作,并根据检测到的所述第二物理模型选择操作确定第二物理模型选择信息,并将所述第二物理模型选择信息发送给飞行控制器,第二物理模型选择信息用于向飞行控制器指示基于飞行控制器内置的物理模型进行仿真。Specifically, the user may perform a first physical model selection operation on the interaction device of the terminal device to select a physical model built in the terminal device to implement a simulation process of the drone, or the user may perform a second on the interaction device of the terminal device. The physical model selection operation selects the physical model built into the flight controller of the drone to implement the simulation process of the drone. When the user performs the first physical model selection operation on the interaction device of the terminal device, the processor of the terminal device may detect the first physical model selection operation, and determine the first physical model according to the detected first physical model selection operation. Selecting information and transmitting the first physical model selection information to the flight controller, the first physical model selection information being used to indicate to the flight controller that the simulation is performed based on a physical model built into the terminal device. When the user performs the second physical model selection operation on the interaction device of the terminal device, the processor of the terminal device may detect the second physical model selection operation, and determine the second physical model according to the detected second physical model selection operation. The information is selected, and the second physical model selection information is sent to the flight controller, and the second physical model selection information is used to indicate to the flight controller that the simulation is performed based on a physical model built into the flight controller.
步骤S404:飞行控制器在接收到终端设备发送的第一物理模型选择信息时,向终端设备发送控制数据。Step S404: The flight controller sends the control data to the terminal device when receiving the first physical model selection information sent by the terminal device.
具体地,飞行控制器在接收到第一物理模型选择信息时,通过第一物理模型选择信息可得知仿真所使用的物理模型为终端设备内置的物理模型,此时,飞行控制器便可将该控制数据发给终端设备。Specifically, when receiving the first physical model selection information, the flight controller can learn that the physical model used in the simulation is a physical model built in the terminal device by using the first physical model selection information, and at this time, the flight controller can The control data is sent to the terminal device.
可选的,针对飞行控制器,本发明实施例提供的仿真方法还可以包括:接收控制终端或所述终端设备发送的控制指令,根据所述控制指令生成控制数据。具体地,在飞行控制器进入仿真模式后,用户可以对无人机的控制终端进行操作,控制终端会根据用户操作产生控制指令,控制终端将所述控制指令发送给飞行控制器,飞行控制器可以接收控制终端发送的控制指令,或者,用户也可以对所述终端设备进行操作,终端设备会根据用户操作产生控制指令,终端设备将所述控制指令发送给飞行控制器。飞行控制器接收所述控制指令,根据所述控制指令生成控制数据。其中,所述控制终端可以为任何可以与飞行控制器进行数据交互的装置,在具体应用中,所述控制终端中可以包括遥控器、智能手机、平板电脑、膝上型电脑、地面控制站、穿戴式设备(手表、手环等)中的一种或多种。Optionally, for the flight controller, the simulation method provided by the embodiment of the present invention may further include: receiving a control instruction sent by the control terminal or the terminal device, and generating control data according to the control instruction. Specifically, after the flight controller enters the simulation mode, the user can operate the control terminal of the drone, and the control terminal generates a control command according to the user operation, and the control terminal sends the control command to the flight controller, and the flight controller The control command sent by the control terminal may be received, or the user may operate the terminal device, and the terminal device generates a control command according to the user operation, and the terminal device sends the control command to the flight controller. The flight controller receives the control command and generates control data based on the control command. The control terminal may be any device that can perform data interaction with the flight controller. In a specific application, the control terminal may include a remote controller, a smart phone, a tablet computer, a laptop computer, a ground control station, One or more of wearable devices (watches, bracelets, etc.).
步骤S405:终端设备接收到控制数据后,根据控制数据运行内置的物理模型。 Step S405: After receiving the control data, the terminal device runs the built-in physical model according to the control data.
步骤S405和步骤S102的具体方法和原理一致,此处不再赘述。The specific methods and principles of step S405 and step S102 are the same, and are not described herein again.
步骤S406:终端设备将物理模型输出的飞行状态数据发送至飞行控制器。Step S406: The terminal device transmits the flight state data output by the physical model to the flight controller.
步骤S406和步骤S103的具体方法和原理一致,此处不再赘述。The specific methods and principles of step S406 and step S103 are the same, and are not described here.
步骤S407:终端设备显示飞行状态数据。Step S407: The terminal device displays the flight state data.
步骤S407和步骤S104的具体方法和原理一致,此处不再赘述。The specific methods and principles of step S407 and step S104 are the same, and are not described here.
另外,在本实施例中,终端设备与飞行控制器通过预设的通讯接口连接,其中,所述通讯接口可以为有线接口或者无线接口,其中,所述有线接口可以为USB接口、PCIE接口、SATA接口、以太网接口中的任一项,无线接口可以为WIFI、蓝牙、zigbee接口中的任一项,在这里不作具体的限定。In addition, in this embodiment, the terminal device and the flight controller are connected through a preset communication interface, wherein the communication interface may be a wired interface or a wireless interface, wherein the wired interface may be a USB interface, a PCIE interface, The WLAN interface and the Ethernet interface may be any one of the WIFI, the Bluetooth, and the zigbee interface, and are not specifically limited herein.
本发明实施例提供的仿真方法中,终端设备可向飞行控制器发送第一物理模型选择信息,以向飞行控制器指示采用终端设备内置的物理模型进行仿真,飞行控制器在获得采用终端设备内置的物理模型进行仿真后,向终端设备发送控制数据,终端设备根据控制数据运行其内置的物理模型,将物理模型输出的飞行状态数据发送至飞行控制器,从而完成对无人机的飞行仿真。由此可见,本发明实施例提供的仿真方法,可采用终端内置的物理模型进行无人机的飞行仿真,由于终端设备内置的物理模型可由用户或者开发者根据实际情况如特定应用领域或特定机型构建,即用户可根据实际情况灵活定制自己的物理模型并可对自己定制的物理模型进行修改,因此,采用终端设备内置的物理模型仿真出来的效果与无人机的实际飞行效果较相符。In the simulation method provided by the embodiment of the present invention, the terminal device may send the first physical model selection information to the flight controller to indicate to the flight controller that the physical model built in the terminal device is used for simulation, and the flight controller is obtained by using the terminal device. After the physical model is simulated, the control data is sent to the terminal device, and the terminal device runs its built-in physical model according to the control data, and sends the flight state data output by the physical model to the flight controller, thereby completing the flight simulation of the drone. It can be seen that the simulation method provided by the embodiment of the present invention can adopt the physical model built in the terminal to perform flight simulation of the drone, and the physical model built in the terminal device can be based on actual conditions such as a specific application domain or a specific machine by the user or the developer. Type construction, that is, the user can flexibly customize his own physical model according to the actual situation and can modify his own customized physical model. Therefore, the effect simulated by the physical model built into the terminal device is consistent with the actual flight effect of the drone.
在上述实施例的基础上,下面通过终端设备与无人机的飞行控制器之间的信息交互来详细说明,本发明的技术方案如何采用终端设备内置的物理模型进行仿真,请参阅图5,示出了采用终端设备内置的物理模型进行仿真的实现方法的一流程示意图,该方法可以包括:On the basis of the above-mentioned embodiments, the following describes in detail through the information interaction between the terminal device and the flight controller of the drone, how the technical solution of the present invention is simulated by using the physical model built in the terminal device, as shown in FIG. 5 . A schematic flowchart of an implementation method for performing simulation by using a physical model built in a terminal device, where the method may include:
步骤S501:终端设备向飞行控制器发送仿真请求信息。Step S501: The terminal device sends the simulation request information to the flight controller.
步骤S501的具体方法和原理请参见前述部分,此处不再赘述。For the specific method and principle of step S501, refer to the foregoing part, and details are not described herein again.
步骤S502:飞行控制器接收到仿真请求信息之后,进入仿真模式。Step S502: After receiving the simulation request information, the flight controller enters the simulation mode.
步骤S502的具体方法和原理请参见前述部分,此处不再赘述。For the specific method and principle of step S502, refer to the foregoing part, and details are not described herein again.
步骤S503:终端设备检测用户的第一物理模型选择操作,Step S503: The terminal device detects a first physical model selection operation of the user,
步骤S504:根据检测到的第一物理模型选择操作确定第一物理模型选择信息。Step S504: Determine first physical model selection information according to the detected first physical model selection operation.
步骤S503和步骤S504的具体方法和原理请参见前述部分,此处不再赘述。For the specific methods and principles of step S503 and step S504, refer to the foregoing part, and details are not described herein again.
步骤S505:终端设备向飞行控制器发送第一物理模型选择信息。Step S505: The terminal device sends the first physical model selection information to the flight controller.
步骤S505和步骤S403的具体方法和原理一致,此处不再赘述。The specific methods and principles of step S505 and step S403 are the same, and are not described here.
步骤S506:飞行控制器在接收到终端设备发送的第一物理模型选择信息时,向终端设备发送控制数 据。Step S506: The flight controller sends the number of controls to the terminal device when receiving the first physical model selection information sent by the terminal device. according to.
步骤S506和步骤S404的具体方法和原理一致,此处不再赘述。The specific methods and principles of step S506 and step S404 are the same, and are not described here.
步骤S507:终端设备检测用户的配置信息设置操作。Step S507: The terminal device detects a configuration information setting operation of the user.
步骤S508:终端设备根据检测到的配置信息设置操作确定物理模型的配置信息。Step S508: The terminal device determines configuration information of the physical model according to the detected configuration information setting operation.
具体地,物理模型中包括一些可配置项,用户可以对终端设备进行配置信息设置操作以对物理模型的一个或者多个配置项进行配置,终端设备检测用户的配置信息设置操作,当检测到配置信息设置操作后,终端设备可以根据检测到的配置信息设置操作确定物理模型的配置信息,其中,所述配置信息可以是对无人机所处的环境、无人机的故障、无人机的机械配置等中的一种或多种进行描述的任何信息。具体地,物理模型的配置信息可以包括无人机的故障信息、风速、风向、无人机的重量、无人机的机架类型中的一种或多种。Specifically, the physical model includes some configurable items, and the user may perform a configuration information setting operation on the terminal device to configure one or more configuration items of the physical model, and the terminal device detects the configuration information setting operation of the user, when the configuration is detected. After the information setting operation, the terminal device may determine the configuration information of the physical model according to the detected configuration information setting operation, where the configuration information may be an environment in which the drone is located, a failure of the drone, and a drone. Any information describing one or more of the mechanical configurations and the like. Specifically, the configuration information of the physical model may include one or more of failure information of the drone, wind speed, wind direction, weight of the drone, and rack type of the drone.
步骤S509:终端设备根据控制数据和配置信息运行内置的物理模型。Step S509: The terminal device runs the built-in physical model according to the control data and the configuration information.
具体地,终端设备的处理器可以根据所述配置信息对物理模型中对应的配置项进行设置,并根据控制数据运行设置后的物理模型。在仿真过程中,用户可以随时利用配置信息对物理模型进行设置,通过这种方式,可以得到在不同环境状态、故障状态、机械配置下无人机的飞行状态数据,实现在不同情况下对无人机的模拟仿真。。Specifically, the processor of the terminal device may set a corresponding configuration item in the physical model according to the configuration information, and run the set physical model according to the control data. During the simulation process, the user can set the physical model by using the configuration information at any time. In this way, the flight state data of the drone under different environmental states, fault states, and mechanical configurations can be obtained, and the difference is achieved under different conditions. Simulation of man-machine. .
步骤S510:终端设备将物理模型输出的飞行状态数据发送至飞行控制器。Step S510: The terminal device sends the flight state data output by the physical model to the flight controller.
步骤S510和步骤S103的具体方法和原理一致,此处不再赘述。The specific methods and principles of step S510 and step S103 are the same, and are not described here.
步骤S511:终端设备显示飞行状态数据。Step S511: The terminal device displays the flight state data.
步骤S511和步骤S104的具体方法和原理一致,此处不再赘述。The specific methods and principles of step S511 and step S104 are the same, and are not described here.
在某些实施例中,本发明实施例提供的仿真方法还可以包括:飞行控制器在接收到仿真请求信息后,确定是否满足预设仿真要求,如果飞行控制器确定满足预设仿真要求,则进入仿真模式。具体地,飞行控制器在接收到仿真请求信息后,首先要检测自身的状态,确定是否满足预设的仿真要求,例如无人机的电机是否关闭、无人机是否在空中、终端设备是否为合法设备等等,当确定满足预设要求时,飞行控制器进入仿真模式,此时,飞行控制器可以将控制数据发送给终端设备。In some embodiments, the simulation method provided by the embodiment of the present invention may further include: after receiving the simulation request information, the flight controller determines whether the preset simulation requirement is met, and if the flight controller determines that the preset simulation requirement is met, Enter the simulation mode. Specifically, after receiving the simulation request information, the flight controller first needs to detect its own state to determine whether the preset simulation requirements are met, for example, whether the motor of the drone is turned off, whether the drone is in the air, and whether the terminal device is The legal controller or the like, when it is determined that the preset requirement is met, the flight controller enters the simulation mode, and at this time, the flight controller can transmit the control data to the terminal device.
在某些实施例中,本发明实施例提供的仿真方法还可以包括:终端设备向飞行控制器发送仿真结束请求信息,飞行控制器接收到仿真结束请求信息时,退出仿真模式,即飞行控制器不再向终端设备发送控制数据,并且不再接收终端设备发送的飞行状态数据,对于终端设备而言,其停止运行内置的物理模型,即不再接收飞行控制器的控制数据,也不再向飞行控制器发送飞行状态数据。In some embodiments, the simulation method provided by the embodiment of the present invention may further include: the terminal device sends the simulation end request information to the flight controller, and when the flight controller receives the simulation end request information, exits the simulation mode, that is, the flight controller. The control data is no longer sent to the terminal device, and the flight state data sent by the terminal device is no longer received. For the terminal device, it stops running the built-in physical model, that is, the control data of the flight controller is no longer received, and the control data is no longer received. The flight controller sends flight status data.
需要说明的是,飞行控制器在接收到终端设备发送的仿真请求信息时,如果正在接收真实传感器(如 位置传感器、加速度传感器、角速度传感器、陀螺仪、气压计中的一种或多种)的传感器数据或对该传感器数据进行融合后的数据,并正在向真实执行器发送控制数据,那么,此时停止对传感器数据或对传感器数据进行融合后的数据的接收,并且,不再向真实执行器发送控制数据,而是进入仿真模式。相应的,飞行控制器退出仿真模式之后,可向无人机的真实执行器发送控制数据,并接收真实传感器的传感器数据或对该传感器数据进行融合后的数据。It should be noted that when the flight controller receives the simulation request information sent by the terminal device, if the real sensor is being received (such as Sensor data of one or more of position sensor, acceleration sensor, angular velocity sensor, gyroscope, barometer, or data fusion of the sensor data, and transmitting control data to the real actuator, then, at this time The reception of the sensor data or the fusion of the sensor data is stopped, and the control data is no longer sent to the real actuator, but enters the simulation mode. Correspondingly, after the flight controller exits the simulation mode, the control data can be sent to the real actuator of the drone, and the sensor data of the real sensor or the data of the sensor data can be received.
本发明实施例提供的仿真方法中,终端设备可基于检测到的用户的第一物理模型选择操作确定第一物理模型选择信息,即用户可以自主选择采用终端内置的物理模型进行仿真,飞行控制器在接收到该第一物理模型选择信息之后,得知仿真所使用的物理模型为终端设备内置的物理模型,向其发送控制数据,终端设备还可基于检测到的用户的配置信息设置操作确定物理模型的配置信息,从而可根据控制数据和该配置信息运行内置的物理模型,从而完成对无人机的飞行仿真。由此可见,本发明实施例提供的仿真方法,可采用终端内置的物理模型进行无人机的飞行仿真,由于终端设备内置的物理模型可由用户或者开发者根据实际情况如特定应用领域或特定机型构建,即用户可根据实际情况灵活定制自己的物理模型并可对自己定制的模型进行修改,因此,采用终端设备内置的物理模型仿真出来的效果与无人机的实际飞行效果较相符。In the simulation method provided by the embodiment of the present invention, the terminal device may determine the first physical model selection information based on the detected first physical model selection operation of the user, that is, the user may independently select the physical model built in the terminal to perform the simulation, and the flight controller After receiving the first physical model selection information, it is learned that the physical model used in the simulation is a physical model built in the terminal device, and the control data is sent thereto, and the terminal device may also determine the physics based on the detected configuration information of the user. The configuration information of the model, so that the built-in physical model can be run according to the control data and the configuration information, thereby completing the flight simulation of the drone. It can be seen that the simulation method provided by the embodiment of the present invention can adopt the physical model built in the terminal to perform flight simulation of the drone, and the physical model built in the terminal device can be based on actual conditions such as a specific application domain or a specific machine by the user or the developer. Type construction, that is, the user can flexibly customize his own physical model according to the actual situation and modify the customized model. Therefore, the effect simulated by the physical model built into the terminal device is consistent with the actual flight effect of the drone.
本发明实施例还提供了一种仿真方法,应用于终端设备,请参阅图6,为本发明实施例提供的仿真方法的流程示意图,所述方法包括:The embodiment of the present invention further provides a simulation method, which is applied to a terminal device. Referring to FIG. 6 , it is a schematic flowchart of a simulation method according to an embodiment of the present disclosure, where the method includes:
步骤S601:检测用户的物理模型选择操作。Step S601: Detecting a physical model selection operation of the user.
具体地,在对无人机进行仿真之前,用户可以在终端设备上选择无人机仿真的物理模型,即目标物理模型,例如用户可以选择使用飞行控制器内置的物理模型,或者用户可以选择使用终端设备内置的物理模型,用户通过对终端设备进行物理模型选择操作来实现物理模型的选择,终端设备可以检测用户的物理模型选择操作,不同的物理模型选择操作可以代表选择不同的物理模型。物理模型选择操作可以包括第一物理模型选择操作和第二物理模型选择操作,其中,第一物理模型选择操作用于选中终端设备内置的物理模型,第二物理模型选择操作用于选中飞行控制器内置的物理模型。Specifically, before simulating the drone, the user can select a physical model of the drone simulation on the terminal device, that is, the target physical model, for example, the user can select to use the physical model built in the flight controller, or the user can select to use The physical model built in the terminal device allows the user to select a physical model by performing a physical model selection operation on the terminal device. The terminal device can detect the physical model selection operation of the user, and different physical model selection operations can represent different physical models. The physical model selection operation may include a first physical model selection operation for selecting a physical model built in the terminal device, and a second physical model selection operation for selecting the flight controller Built-in physical model.
步骤S602:根据检测到的用户的物理模型选择操作确定物理模型选择信息。Step S602: Determine physical model selection information according to the detected physical model selection operation of the user.
具体地,终端设备可以根据检测到的物理模型选择操作来确定物理模型选择信息,其中,所述物理模型选择信息用于指示对无人机进行仿真的目标物理模型,目标物理模型为所述飞行控制器内置的物理模型和所述终端设备内置的物理模型中的一个。当用户在终端设备的交互装置上进行第一物理模型选择操作时,终端设备的处理器可以检测第一物理模型选择操作,并根据检测到的所述第一物理模型选择操作确定第一物理模型选择信息,并将所述第一物理模型选择信息发送给飞行控制器,第一物理模型选择 信息用于向飞行控制器指示基于终端设备内置的物理模型进行仿真。当用户在终端设备的交互装置上进行第二物理模型选择操作时,终端设备的处理器可以检测第二物理模型选择操作,并根据检测到的所述第二物理模型选择操作确定第二物理模型选择信息,并将所述第二物理模型选择信息发送给飞行控制器,第二物理模型选择信息用于向飞行控制器指示基于飞行控制器内置的物理模型进行仿真。Specifically, the terminal device may determine physical model selection information according to the detected physical model selection operation, where the physical model selection information is used to indicate a target physical model for simulating the drone, and the target physical model is the flight One of a physical model built into the controller and a physical model built into the terminal device. When the user performs the first physical model selection operation on the interaction device of the terminal device, the processor of the terminal device may detect the first physical model selection operation, and determine the first physical model according to the detected first physical model selection operation. Selecting information and transmitting the first physical model selection information to the flight controller, the first physical model selection The information is used to indicate to the flight controller that the simulation is based on a physical model built into the terminal device. When the user performs the second physical model selection operation on the interaction device of the terminal device, the processor of the terminal device may detect the second physical model selection operation, and determine the second physical model according to the detected second physical model selection operation. The information is selected, and the second physical model selection information is sent to the flight controller, and the second physical model selection information is used to indicate to the flight controller that the simulation is performed based on a physical model built into the flight controller.
步骤S603:向无人机的飞行控制器发送物理模型选择信息。Step S603: transmitting physical model selection information to the flight controller of the drone.
具体地,终端设备通过与飞行控制器的通讯接口将所述物理模型选择信息发送给飞行控制器,终端设备通过向飞行控制器发送物理模型选择信息以向飞行控制器指示当前用户选择使用哪种物理模型来实现无人机的仿真。Specifically, the terminal device transmits the physical model selection information to the flight controller through a communication interface with the flight controller, and the terminal device sends the physical model selection information to the flight controller to indicate to the flight controller which current user chooses to use. The physical model is used to simulate the drone.
本发明实施例提供的仿真方法,使得用户可从终端设备内置的物理模型和飞行控制器内置的物理模型选择用于无人机飞行仿真的物理模型,即,用户可基于实际的应用情况,灵活选取仿真所使用的物理模型,丰富了在无人机仿真过程中物理模型的选择方式,提高了飞行仿真的灵活性。The simulation method provided by the embodiment of the invention enables the user to select a physical model for the flight simulation of the drone from the physical model built in the terminal device and the physical model built in the flight controller, that is, the user can flexibly based on the actual application situation. Selecting the physical model used in the simulation enriches the choice of the physical model during the UAV simulation process and improves the flexibility of flight simulation.
与图6中实施例提供的仿真方法相对应地,本发明实施例还提供了一种仿真方法,应用于无人机的飞行控制器,请参阅图7,为本发明实施例提供的仿真方法的流程示意图,所述方法包括:Corresponding to the simulation method provided by the embodiment in FIG. 6 , the embodiment of the present invention further provides a simulation method, which is applied to a flight controller of a drone, and FIG. 7 is a simulation method according to an embodiment of the present invention. Schematic diagram of the process, including:
步骤S701:接收终端设备发送的物理模型选择信息。Step S701: Receive physical model selection information sent by the terminal device.
具体地,飞行控制器通过与终端设备之间的通讯接口接收终端设备发送的物理模型选择信息,其中所述物理模型选择信息用于指示对无人机进行飞行仿真所采用的物理模型。Specifically, the flight controller receives physical model selection information sent by the terminal device through a communication interface with the terminal device, wherein the physical model selection information is used to indicate a physical model used for flight simulation of the drone.
步骤S702:根据物理模型选择信息确定对无人机进行仿真的目标物理模型。Step S702: Determine a target physical model for simulating the drone according to the physical model selection information.
具体地,飞行控制器在接收所述物理模型选择信息后,可以对所述物理模型选择信息进行识别判断,确定该物理模型选择信息指示的目标物理模型,其中,目标物理模型为飞行控制器内置的物理模型和终端设备内置的物理模型中的一个。其中,物理模型可以包括动力系统模型、动力学模型、运动学模型、传感器模型中的一种或多种。Specifically, after receiving the physical model selection information, the flight controller may identify and determine the physical model selection information, and determine a target physical model indicated by the physical model selection information, where the target physical model is a built-in flight controller. One of the physical model and the physical model built into the terminal device. The physical model may include one or more of a dynamic system model, a dynamic model, a kinematic model, and a sensor model.
本发明实施例提供的仿真方法,使得用户可从终端设备内置的物理模型和飞行控制器内置的物理模型选择用于无人机飞行仿真的物理模型,即,用户可基于实际的应用情况,灵活选取仿真所使用的物理模型,丰富了在无人机仿真过程中物理模型的选择方式,提高了飞行仿真的灵活性。The simulation method provided by the embodiment of the invention enables the user to select a physical model for the flight simulation of the drone from the physical model built in the terminal device and the physical model built in the flight controller, that is, the user can flexibly based on the actual application situation. Selecting the physical model used in the simulation enriches the choice of the physical model during the UAV simulation process and improves the flexibility of flight simulation.
在上述实施例的基础上,下面通过终端设备与无人机的飞行控制器之间的信息交互来详细说明,本发明的技术方案中如何基于用户选取的物理模型实现无人机的飞行仿真,请参阅图8,示出了基于用户选取的物理模型实现无人机的飞行仿真的实现过程的一流程示意图,可以包括:Based on the above embodiments, the following describes in detail the information interaction between the terminal device and the flight controller of the drone, how to implement the flight simulation of the drone based on the physical model selected by the user in the technical solution of the present invention. Referring to FIG. 8, a schematic flowchart of an implementation process of implementing a flight simulation of a drone based on a physical model selected by a user may be performed, which may include:
步骤S801:终端设备检测用户的物理模型选择操作。 Step S801: The terminal device detects a physical model selection operation of the user.
步骤S801和步骤S601的具体方法和原理一致,此处不再赘述。The specific methods and principles of step S801 and step S601 are the same, and are not described here.
步骤S802:终端设备根据检测到的用户的物理模型选择操作确定物理模型选择信息。Step S802: The terminal device determines physical model selection information according to the detected physical model selection operation of the user.
步骤S802和步骤S602的具体方法和原理一致,此处不再赘述。The specific methods and principles of step S802 and step S602 are the same, and are not described here.
步骤S803:终端设备向无人机的飞行控制器发送物理模型选择信息。Step S803: The terminal device sends physical model selection information to the flight controller of the drone.
步骤S803和步骤S603的具体方法和原理一致,此处不再赘述。The specific methods and principles of step S803 and step S603 are the same, and are not described here.
步骤S804:飞行控制器在接收终端设备发送的物理模型选择信息时,根据物理模型选择信息确定对无人机进行仿真的目标物理模型。Step S804: When receiving the physical model selection information sent by the terminal device, the flight controller determines a target physical model for simulating the UAV according to the physical model selection information.
步骤S804和步骤S601、步骤S602的具体方法和原理一致,此处不再赘述。The specific methods and principles of step S804 and step S601 and step S602 are the same, and are not described here.
当终端设备检测到第一物理模型选择操作时,终端设备向飞行控制器发送第一物理模型选择信息,即当所述物理模型选择信息指示的目标物理模型指示的是终端设备内置的物理模型时,运行步骤S805a-S807a,再运行步骤S808,下面结合图8,对目标物理模型为终端设备内置的物理模型的情况进行说明:When the terminal device detects the first physical model selection operation, the terminal device sends the first physical model selection information to the flight controller, that is, when the target physical model indicated by the physical model selection information indicates the physical model built in the terminal device Steps S805a-S807a are executed, and step S808 is further executed. The following describes the case where the target physical model is a physical model built in the terminal device, with reference to FIG.
步骤S805a:飞行控制器在确定出目标物理模型为终端设备内置的物理模型时,向终端设备发送控制数据。Step S805a: The flight controller sends control data to the terminal device when determining that the target physical model is a physical model built in the terminal device.
具体地,飞行控制器在确定出目标模型为终端设备内置的物理模型时,飞行控制器可以将控制数据发送给终端设备,在发送所述控制数据之前,飞行控制器生成控制数据,进一步地,如前所述,飞行控制器可以接收终端设备或者控制终端发送的控制指令,根据所述控制指令生成控制数据,具体解释请参见前述部分,此处不再赘述。Specifically, when the flight controller determines that the target model is a physical model built in the terminal device, the flight controller may transmit the control data to the terminal device, and before transmitting the control data, the flight controller generates control data, and further, As described above, the flight controller can receive the control command sent by the terminal device or the control terminal, and generate the control data according to the control command. For the specific explanation, refer to the foregoing part, and details are not described herein again.
步骤S806a:终端设备在接收到控制数据后,根据控制数据运行内置的物理模型。Step S806a: After receiving the control data, the terminal device runs the built-in physical model according to the control data.
步骤S807a:终端设备将物理模型输出的飞行状态数据发送至飞行控制器。Step S807a: The terminal device transmits the flight state data output by the physical model to the flight controller.
步骤S808:终端设备显示飞行状态数据。Step S808: The terminal device displays the flight state data.
步骤S806a-S807a的具体原理和解释请参见前述部分,此处不再赘述。For the specific principle and explanation of steps S806a-S807a, please refer to the foregoing section, and details are not described herein again.
当终端设备检测到第二物理模型选择操作时,终端设备向飞行控制器发送第二物理模型选择信息,当所述物理模型选择信息指示的目标物理模型指示的是飞行控制器内置的物理模型时,运行步骤S805b-S807b,再运行步骤S808,下面结合图9,对目标物理模型为飞行控制器内置的物理模型的情况进行说明:When the terminal device detects the second physical model selection operation, the terminal device sends the second physical model selection information to the flight controller, when the target physical model indicated by the physical model selection information indicates the physical model built in the flight controller Steps S805b-S807b are executed, and step S808 is further executed. The following describes the case where the target physical model is a physical model built in the flight controller, with reference to FIG.
步骤S805b:飞行控制器在确定出目标物理模型为飞行控制器内置的物理模型时,生成控制数据。Step S805b: The flight controller generates control data when determining that the target physical model is a physical model built in the flight controller.
具体地,飞行控制器在确定出目标模型为飞行控制器内置的物理模型时,飞行控制器生成控制数据,进一步地,如前所述,飞行控制器可以接收终端设备或者控制终端发送的控制指令,根据所述控制指令 生成控制数据,具体解释请参见前述部分,此处不再赘述。Specifically, when the flight controller determines that the target model is a physical model built in the flight controller, the flight controller generates control data. Further, as described above, the flight controller may receive the control command sent by the terminal device or the control terminal. According to the control instruction Generate control data. For details, please refer to the previous section, which will not be described here.
步骤S806b:飞行控制器根据控制数据运行内置的物理模型。Step S806b: The flight controller runs the built-in physical model according to the control data.
具体地,如图10所示,无人机1000包括飞行控制器1001,飞行控制器内置用于飞行仿真的物理模型10011,飞行控制器将生成的控制数据作为入口参数输送给物理模型10011,并根据所述控制数据运行所述物理模型。Specifically, as shown in FIG. 10, the drone 1000 includes a flight controller 1001, the flight controller includes a physical model 10011 for flight simulation, and the flight controller transmits the generated control data as an entry parameter to the physical model 10011, and The physical model is run in accordance with the control data.
步骤S807b:飞行控制器将物理模型输出的飞行状态数据发送给终端设备。Step S807b: The flight controller transmits the flight state data output by the physical model to the terminal device.
具体地,物理模型10011根据控制数据进行仿真时,输出飞行状态数据,飞行控制器1001将所述飞行状态数据发送给终端设备,同时将所述飞行状态数据提供给飞行控制器的各个内部单元以驱动仿真的进行。Specifically, when the physical model 10011 performs simulation according to the control data, the flight state data is output, and the flight controller 1001 transmits the flight state data to the terminal device while providing the flight state data to each internal unit of the flight controller. Drive the simulation.
本发明实施例提供的仿真方法中,终端设备可基于用户的物理模型选择操作确定对无人机进行仿真的目标物理模型,当目标物理模型为终端设备内置的物理模型时,飞行控制器可向终端设备发送控制数据,终端设备根据控制数据运行内置的物理模型,并将物理模型输出的飞行控制数据发送至飞行控制器,当目标物理模型为飞行控制器内置的物理模型时,飞行控制器可生成控制数据,根据控制数据运行内置的物理模型,并将物理模型输出的飞行状态数据发送给终端设备。由此可见,本发明实施例提供的仿真方法使得用户可从终端设备内置的物理模型和飞行控制器内置的物理模型选择用于无人机飞行仿真的物理模型,即,用户可基于实际的应用情况,灵活选取仿真所使用的物理模型,进而使用选取的模型进行仿真。In the simulation method provided by the embodiment of the present invention, the terminal device may determine a target physical model for simulating the unmanned aerial vehicle based on the physical model selection operation of the user. When the target physical model is a physical model built in the terminal device, the flight controller may The terminal device sends control data, and the terminal device runs the built-in physical model according to the control data, and sends the flight control data output by the physical model to the flight controller. When the target physical model is a physical model built in the flight controller, the flight controller may The control data is generated, the built-in physical model is run according to the control data, and the flight state data output by the physical model is transmitted to the terminal device. It can be seen that the simulation method provided by the embodiment of the present invention enables the user to select a physical model for the flight simulation of the drone from the physical model built in the terminal device and the physical model built in the flight controller, that is, the user can be based on the actual application. In the case, the physical model used in the simulation is flexibly selected, and then the selected model is used for simulation.
请参阅图11,示出了基于用户选取的物理模型实现无人机的飞行仿真的实现过程的另一流程示意图,可以包括:Referring to FIG. 11 , another flow diagram of an implementation process of implementing flight simulation of a drone based on a physical model selected by a user is illustrated, which may include:
步骤S1101:终端设备检测用户的物理模型选择操作。Step S1101: The terminal device detects a physical model selection operation of the user.
步骤S1102:终端设备根据检测到的用户的物理模型选择操作确定物理模型选择信息。Step S1102: The terminal device determines physical model selection information according to the detected physical model selection operation of the user.
步骤S1103:终端设备向无人机的飞行控制器发送物理模型选择信息。Step S1103: The terminal device sends physical model selection information to the flight controller of the drone.
步骤S1104:飞行控制器在接收终端设备发送的物理模型选择信息时,根据物理模型选择信息确定对无人机进行仿真的目标物理模型。Step S1104: When receiving the physical model selection information sent by the terminal device, the flight controller determines a target physical model for simulating the UAV according to the physical model selection information.
当终端设备检测到第一物理模型选择操作时,终端设备向飞行控制器发送第一物理模型选择信息,当所述物理模型选择信息指示的目标物理模型指示的是终端设备内置的物理模型时,运行步骤S1105a-S1109a,再运行步骤S1110,下面结合图11,对目标物理模型为终端设备内置的物理模型的情况进行说明: When the terminal device detects the first physical model selection operation, the terminal device sends the first physical model selection information to the flight controller, when the target physical model indicated by the physical model selection information indicates the physical model built in the terminal device, Steps S1105a-S1109a are executed, and step S1110 is further executed. The following describes the case where the target physical model is a physical model built in the terminal device, with reference to FIG.
步骤S1105a:飞行控制器在确定出目标物理模型为终端设备内置的物理模型时,向终端设备发送控制数据。Step S1105a: The flight controller sends control data to the terminal device when determining that the target physical model is a physical model built in the terminal device.
步骤S1106a:终端设备检测用户的配置信息设置操作。Step S1106a: The terminal device detects a configuration information setting operation of the user.
步骤S1107a:终端设备根据检测到的配置信息设置操作确定物理模型的配置信息。Step S1107a: The terminal device determines configuration information of the physical model according to the detected configuration information setting operation.
步骤S1108a:终端设备根据接收的控制数据和确定的配置信息运行内置的物理模型。Step S1108a: The terminal device runs the built-in physical model according to the received control data and the determined configuration information.
步骤S1109a:终端设备将物理模型输出的飞行状态数据发送至飞行控制器。Step S1109a: The terminal device transmits the flight state data output by the physical model to the flight controller.
步骤S1105a-S1109a的具体原理和解释请参见前述部分,此处不再赘述。For the specific principle and explanation of the steps S1105a-S1109a, please refer to the foregoing section, and details are not described herein again.
步骤S1110:终端设备显示飞行状态数据。Step S1110: The terminal device displays the flight state data.
步骤S1110的具体原理和解释和步骤S104一致,此处不再赘述。The specific principle and explanation of the step S1110 are the same as the step S104, and details are not described herein again.
当终端设备检测到第二物理模型选择操作时,终端设备向飞行控制器发送第二物理模型选择信息,即当所述物理模型选择信息指示的目标物理模型指示的是终端设备内置的物理模型时,运行步骤S1105b-S1109b,再运行步骤S1110,下面结合图12,对目标物理模型为终端设备内置的物理模型的情况进行说明:When the terminal device detects the second physical model selection operation, the terminal device sends the second physical model selection information to the flight controller, that is, when the target physical model indicated by the physical model selection information indicates the physical model built in the terminal device Steps S1105b-S1109b are run, and step S1110 is further executed. The following describes the case where the target physical model is a physical model built in the terminal device, with reference to FIG. 12:
步骤S1105b:飞行控制器在确定出目标物理模型为飞行控制器内置的物理模型时,生成控制数据。Step S1105b: The flight controller generates control data when determining that the target physical model is a physical model built into the flight controller.
步骤S1106b:终端设备检测用户的配置信息设置操作,并根据检测到的配置信息设置操作确定物理模型的配置信息。Step S1106b: The terminal device detects a configuration information setting operation of the user, and determines configuration information of the physical model according to the detected configuration information setting operation.
步骤S1107b:终端设备将确定的配置信息发送给飞行控制器。Step S1107b: The terminal device transmits the determined configuration information to the flight controller.
步骤S1108b:飞行控制器根据生成的控制数据和接收的配置信息运行内置的物理模型。Step S1108b: The flight controller runs the built-in physical model according to the generated control data and the received configuration information.
步骤S1109b:飞行控制器将物理模型输出的飞行状态数据发送至终端设备。Step S1109b: The flight controller transmits the flight state data output by the physical model to the terminal device.
步骤S1105b-S1109b的具体原理和解释请参见前述部分,此处不再赘述。For the specific principle and explanation of the steps S1105b-S1109b, please refer to the foregoing section, and details are not described herein again.
本发明实施例提供的仿真方法中,终端设备可基于用户的物理模型选择操作确定对无人机进行仿真的目标物理模型,当目标物理模型为终端设备内置的物理模型时,飞行控制器可向终端设备发送控制数据,终端设备还可基于用户的配置信息设置操作确定物理模型的配置信息,进而根据接收的控制数据和确定的配置信息运行内置的物理模型,并将物理模型输出的飞行控制数据发送至飞行控制器,当目标物理模型为飞行控制器内置的物理模型时,飞行控制器可生成控制数据,还可接收终端设备基于配置信息设置操作确定的配置信息,进而根据生成的控制数据和接收的配置信息运行内置的物理模型,并将物理模型输出的飞行状态数据发送给终端设备。由此可见,本发明实施例提供的仿真方法使得用户可从终端设备内置的物理模型和飞行控制器内置的物理模型选择用于无人机飞行仿真的物理模型,即,用户可基于实际的应用情况,灵活选取仿真所使用的物理模型,进而使用选取的模型进行仿真。 In the simulation method provided by the embodiment of the present invention, the terminal device may determine a target physical model for simulating the unmanned aerial vehicle based on the physical model selection operation of the user. When the target physical model is a physical model built in the terminal device, the flight controller may The terminal device sends control data, and the terminal device may further determine configuration information of the physical model based on the configuration information setting operation of the user, and then execute the built-in physical model according to the received control data and the determined configuration information, and output flight control data of the physical model. Sending to the flight controller, when the target physical model is a physical model built in the flight controller, the flight controller may generate control data, and may also receive configuration information determined by the terminal device based on the configuration information setting operation, and further generate the control data according to The received configuration information runs the built-in physical model and transmits the flight state data output by the physical model to the terminal device. It can be seen that the simulation method provided by the embodiment of the present invention enables the user to select a physical model for the flight simulation of the drone from the physical model built in the terminal device and the physical model built in the flight controller, that is, the user can be based on the actual application. In the case, the physical model used in the simulation is flexibly selected, and then the selected model is used for simulation.
本发明实施例提供了一种终端设备,请参阅图13,示出了该终端设备13的结构示意图,可以包括:存储器1301和处理器1302。An embodiment of the present invention provides a terminal device. Referring to FIG. 13, a schematic structural diagram of the terminal device 13 is shown, which may include: a memory 1301 and a processor 1302.
其中,存储器1301可以为易失性存储器(volatile memory),例如随机存取存储器(random-access memory,RAM);存储器1301也可以为非易失性存储器(non-volatile memory),例如快闪存储器(flash memory),硬盘(hard disk drive,HDD)或固态硬盘(solid-state drive,SSD);存储器1301还可以包括上述种类的存储器的组合。The memory 1301 may be a volatile memory, such as a random-access memory (RAM); the memory 1301 may also be a non-volatile memory, such as a flash memory. (flash memory), hard disk drive (HDD) or solid-state drive (SSD); the memory 1301 may also include a combination of the above types of memories.
其中,处理器1302可以是中央处理器(central processing unit,CPU)。处理器1102还可以进一步包括硬件芯片。上述硬件芯片可以是专用集成电路(application-specific integrated circuit,ASIC),可编程逻辑器件(programmable logic device,PLD)或其组合。上述PLD可以是复杂可编程逻辑器件(complex programmable logic device,CPLD),现场可编程逻辑门阵列(field-programmable gate array,FPGA),通用阵列逻辑(generic array logic,GAL)或其任意组合。The processor 1302 may be a central processing unit (CPU). The processor 1102 can also further include a hardware chip. The hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD), or a combination thereof. The PLD may be a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a general array logic (GAL), or any combination thereof.
存储器1301,用于存储程序代码。The memory 1301 is configured to store program code.
处理器1302,调用存储器1301中存储的程序代码,当程序代码被执行时,用于执行以下操作:The processor 1302 calls the program code stored in the memory 1301, and when the program code is executed, is used to perform the following operations:
获取处于仿真模式的飞行控制器输出的控制数据;根据控制数据运行终端设备内置的物理模型;将物理模型输出的飞行状态数据发送至飞行控制器;显示飞行状态数据。Obtaining control data of the flight controller output in the simulation mode; running a physical model built in the terminal device according to the control data; transmitting flight state data output by the physical model to the flight controller; displaying flight state data.
其中,物理模型包括动力系统模型、动力学模型、运动学模型、传感器模型中的一种或多种。The physical model includes one or more of a dynamic system model, a dynamic model, a kinematic model, and a sensor model.
其中,控制数据包括对动力系统的控制数据、对云台的控制数据、对有效负载的控制数据、对脚架的控制数据、对指示灯的控制数据中的一种或多种。The control data includes one or more of control data of the power system, control data for the pan/tilt, control data for the payload, control data for the tripod, and control data for the indicator light.
在一实施例中,处理器1302,还用于向飞行控制器发送仿真请求信息,以指示飞行控制器进入仿真模式。In an embodiment, the processor 1302 is further configured to send simulation request information to the flight controller to instruct the flight controller to enter the simulation mode.
在一实施例中,处理器1302,还用于向飞行控制器发送第一物理模型选择信息,以向飞行控制器指示基于终端设备内置的物理模型进行仿真。处理器1302获取处于仿真模式的飞行控制器输出的控制数据时,具体用于:在发送第一物理模型选择信息之后,获取处于仿真模式的飞行控制器输出的控制数据。In an embodiment, the processor 1302 is further configured to send the first physical model selection information to the flight controller to indicate to the flight controller that the simulation is performed based on a physical model built in the terminal device. When the processor 1302 acquires the control data output by the flight controller in the simulation mode, the processor 1302 is configured to: after transmitting the first physical model selection information, acquire control data output by the flight controller in the simulation mode.
在一实施例中,处理器1302,还用于检测用户的第一物理模型选择操作,根据检测到的第一物理模型选择操作确定第一物理模型选择信息。In an embodiment, the processor 1302 is further configured to detect a first physical model selection operation of the user, and determine the first physical model selection information according to the detected first physical model selection operation.
在一实施例中,处理器1302,还用于检测用户的配置信息设置操作,根据检测到的配置信息设置操作确定物理模型的配置信息。处理器1302根据控制数据运行终端设备内置的物理模型时,具体用于:根据控制数据和配置信息运行终端设备内置的物理模型。 In an embodiment, the processor 1302 is further configured to detect a configuration information setting operation of the user, and determine configuration information of the physical model according to the detected configuration information setting operation. When the processor 1302 runs the physical model built in the terminal device according to the control data, the processor 1302 is specifically configured to: run the physical model built in the terminal device according to the control data and the configuration information.
其中,配置信息包括:无人机的故障信息、风速、风向、无人机的重量、无人机的机架类型中的一种或多种。The configuration information includes one or more of a failure information of the drone, a wind speed, a wind direction, a weight of the drone, and a rack type of the drone.
本发明实施例提供的终端设备,可采用内置的物理模型进行无人机的飞行仿真,由于终端设备内置的物理模型可由用户或者开发者根据实际情况如特定应用领域或特定机型构建,即用户可根据实际情况灵活定制自己的物理模型并可对自己定制的模型进行修改,因此,采用终端设备内置的物理模型仿真出来的效果与无人机的实际飞行效果较相符。The terminal device provided by the embodiment of the present invention can use the built-in physical model to perform flight simulation of the drone. The physical model built in the terminal device can be constructed by the user or the developer according to actual conditions, such as a specific application domain or a specific model, that is, the user. The physical model can be flexibly customized according to the actual situation and the customized model can be modified. Therefore, the effect simulated by the physical model built into the terminal device is consistent with the actual flight effect of the drone.
本发明实施例还提供了一种无人机的飞行控制器,请参阅图13,示出了该飞行控制器13的结构示意图,可以包括:存储器1301和处理器1302。The embodiment of the present invention further provides a flight controller of the drone. Referring to FIG. 13 , a schematic structural diagram of the flight controller 13 is illustrated, which may include: a memory 1301 and a processor 1302.
其中,存储器1301可以为易失性存储器(volatile memory),例如随机存取存储器(random-access memory,RAM);存储器1301也可以为非易失性存储器(non-volatile memory),例如快闪存储器(flash memory),硬盘(hard disk drive,HDD)或固态硬盘(solid-state drive,SSD);存储器1301还可以为上述种类的存储器的组合。The memory 1301 may be a volatile memory, such as a random-access memory (RAM); the memory 1301 may also be a non-volatile memory, such as a flash memory. (flash memory), hard disk drive (HDD) or solid-state drive (SSD); the memory 1301 may also be a combination of the above types of memories.
其中,处理器1302可以是中央处理器(central processing unit,CPU)。处理器1302还可以进一步包括硬件芯片。上述硬件芯片可以是专用集成电路(application-specific integrated circuit,ASIC),可编程逻辑器件(programmable logic device,PLD)或其组合。上述PLD可以是复杂可编程逻辑器件(complex programmable logic device,CPLD),现场可编程逻辑门阵列(field-programmable gate array,FPGA),通用阵列逻辑(generic array logic,GAL)或其任意组合。The processor 1302 may be a central processing unit (CPU). The processor 1302 may further include a hardware chip. The hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD), or a combination thereof. The PLD may be a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a general array logic (GAL), or any combination thereof.
存储器1301,用于存储程序代码。The memory 1301 is configured to store program code.
处理器1302,调用存储器1301中存储的程序代码,当程序代码被执行时,用于执行以下操作:The processor 1302 calls the program code stored in the memory 1301, and when the program code is executed, is used to perform the following operations:
向终端设备发送控制数据;接收终端设备发送的飞行状态数据,其中,飞行状态数据是终端设备根据控制数据运行终端设备内置的物理模型获得的。Sending control data to the terminal device; receiving flight state data sent by the terminal device, wherein the flight state data is obtained by the terminal device running the physical model built in the terminal device according to the control data.
其中,物理模型可以包括动力系统模型、动力学模型、运动学模型、传感器模型中的一种或多种。The physical model may include one or more of a dynamic system model, a dynamic model, a kinematic model, and a sensor model.
其中,控制数据可以包括对动力系统的控制数据、对云台的控制数据、对有效负载的控制数据、对脚架的控制数据、对指示灯的控制数据中的一种或多种。The control data may include one or more of control data of the power system, control data for the pan/tilt, control data for the payload, control data for the tripod, and control data for the indicator light.
在一实施例中,处理器1302,还用于接收终端设备发送的仿真请求信息,在接收到仿真请求信息之后,进入仿真模式。In an embodiment, the processor 1302 is further configured to receive the simulation request information sent by the terminal device, and enter the simulation mode after receiving the simulation request information.
在一实施例中,处理器1302,还用于接收终端设备发送的第一物理模型选择信息。处理器1302向终端设备发送控制数据时,具体用于当接收到第一物理模型选择信息时,向终端设备发送控制数据。 In an embodiment, the processor 1302 is further configured to receive first physical model selection information sent by the terminal device. When the processor 1302 sends the control data to the terminal device, specifically, when the first physical model selection information is received, the processor 1302 sends the control data to the terminal device.
在一实施例中,飞行状态数据是终端设备根据控制数据和物理模型的配置信息运行终端设备内置的物理模型获得的,其中,物理模型的配置信息是终端设备基于检测到的用户的操作确定的。In an embodiment, the flight state data is obtained by the terminal device running the physical model built in the terminal device according to the control data and the configuration information of the physical model, wherein the configuration information of the physical model is determined by the terminal device based on the detected operation of the user. .
其中,配置信息可以包括无人机的故障信息、风速、风向、无人机的重量、无人机的机架类型中的一种或多种。The configuration information may include one or more of a failure information of the drone, a wind speed, a wind direction, a weight of the drone, and a rack type of the drone.
在一实施例中,处理器1302,还用于接收控制终端或终端设备发送的控制指令;根据控制指令生成控制数据。In an embodiment, the processor 1302 is further configured to receive a control instruction sent by the control terminal or the terminal device, and generate control data according to the control instruction.
本发明实施例提供的飞行控制器,使得终端设备可采用其内置的物理模型进行无人机的飞行仿真,由于终端设备内置的物理模型可由用户或者开发者根据实际情况如特定应用领域或特定机型构建,即用户可根据实际情况灵活定制自己的物理模型并可对自己定制的模型进行修改,因此,采用终端设备内置的物理模型仿真出来的效果与无人机的实际飞行效果较相符。The flight controller provided by the embodiment of the invention enables the terminal device to adopt the built-in physical model to perform flight simulation of the drone, and the physical model built in the terminal device can be based on actual conditions such as a specific application domain or a specific machine by the user or the developer. Type construction, that is, the user can flexibly customize his own physical model according to the actual situation and modify the customized model. Therefore, the effect simulated by the physical model built into the terminal device is consistent with the actual flight effect of the drone.
本发明实施例还提供了一种终端设备,请参阅图13,示出了该终端设备13的结构示意图,可以包括:存储器1301和处理器1302。The embodiment of the present invention further provides a terminal device. Referring to FIG. 13, a schematic structural diagram of the terminal device 13 is shown, which may include: a memory 1301 and a processor 1302.
其中,存储器1301可以为易失性存储器(volatile memory),例如随机存取存储器(random-access memory,RAM);存储器1301也可以为非易失性存储器(non-volatile memory),例如快闪存储器(flash memory),硬盘(hard disk drive,HDD)或固态硬盘(solid-state drive,SSD);存储器1301还可以包括上述种类的存储器的组合。The memory 1301 may be a volatile memory, such as a random-access memory (RAM); the memory 1301 may also be a non-volatile memory, such as a flash memory. (flash memory), hard disk drive (HDD) or solid-state drive (SSD); the memory 1301 may also include a combination of the above types of memories.
其中,处理器1302可以是中央处理器(central processing unit,CPU)。处理器1302还可以进一步包括硬件芯片。上述硬件芯片可以是专用集成电路(application-specific integrated circuit,ASIC),可编程逻辑器件(programmable logic device,PLD)或其组合。上述PLD可以是复杂可编程逻辑器件(complex programmable logic device,CPLD),现场可编程逻辑门阵列(field-programmable gate array,FPGA),通用阵列逻辑(generic array logic,GAL)或其任意组合。The processor 1302 may be a central processing unit (CPU). The processor 1302 may further include a hardware chip. The hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD), or a combination thereof. The PLD may be a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a general array logic (GAL), or any combination thereof.
存储器1301,用于存储程序代码。The memory 1301 is configured to store program code.
处理器1302,调用存储器1301中存储的程序代码,当程序代码被执行时,用于执行以下操作:The processor 1302 calls the program code stored in the memory 1301, and when the program code is executed, is used to perform the following operations:
检测用户的物理模型选择操作;根据检测到的用户的物理模型选择操作确定物理模型选择信息;向无人机的飞行控制器发送物理模型选择信息;其中,物理模型选择信息用于指示对无人机进行仿真的目标物理模型,目标物理模型为飞行控制器内置的物理模型和终端设备内置的物理模型中的一个。Detecting a physical model selection operation of the user; determining physical model selection information according to the detected physical model selection operation of the user; transmitting physical model selection information to the flight controller of the drone; wherein the physical model selection information is used to indicate to the unmanned The target physical model of the machine is simulated. The target physical model is one of a physical model built into the flight controller and a physical model built into the terminal device.
其中,物理模型可以包括动力系统模型、动力学模型、运动学模型、传感器模型中的一种或多种。The physical model may include one or more of a dynamic system model, a dynamic model, a kinematic model, and a sensor model.
其中,控制数据可以包括对动力系统的控制数据、对云台的控制数据、对有效负载的控制数据、对 脚架的控制数据、对指示灯的控制数据中的一种或多种。Wherein, the control data may include control data for the power system, control data for the pan/tilt, control data for the payload, and One or more of the control data of the tripod and the control data of the indicator light.
在一实施例中,处理器1302,还用于当目标物理模型为终端设备内置的物理模型时,接收飞行控制器发送的控制数据,根据控制数据运行终端设备内置的物理模型以获取飞行状态数据,向飞行控制器发送飞行状态数据,显示飞行状态数据。In an embodiment, the processor 1302 is further configured to: when the target physical model is a physical model built in the terminal device, receive control data sent by the flight controller, and run a physical model built in the terminal device according to the control data to obtain flight state data. Send flight status data to the flight controller to display flight status data.
在一实施例中,处理器1302,还用于当目标物理模型为飞行控制器内置的物理模型时,接收飞行控制器发送的飞行状态数据,其中,飞行状态数据是飞行控制器根据控制数据运行飞行控制器内置的物理模型获得的;显示飞行状态数据。In an embodiment, the processor 1302 is further configured to receive flight state data sent by the flight controller when the target physical model is a physical model built in the flight controller, where the flight state data is that the flight controller runs according to the control data. Obtained by the physical model built into the flight controller; displays flight status data.
在一实施例中,处理器1302显示状态数据时,具体用于以无人机动画的形式显示飞行状态数据。In an embodiment, when the processor 1302 displays the status data, it is specifically used to display the flight status data in the form of a drone animation.
在一实施例中,处理器1302,还用于检测用户的配置信息设置操作,根据检测到的配置信息设置操作确定物理模型的配置信息。处理器1302根据控制数据运行终端设备内置的物理模型以获取飞行状态数据时,具体用于:根据控制数据和配置信息运行终端设备内置的物理模型以获取飞行状态数据。In an embodiment, the processor 1302 is further configured to detect a configuration information setting operation of the user, and determine configuration information of the physical model according to the detected configuration information setting operation. When the processor 1302 runs the physical model built in the terminal device to obtain the flight state data according to the control data, specifically, the processor 1302 is configured to: run the physical model built in the terminal device according to the control data and the configuration information to obtain the flight state data.
在一实施例中,处理器1302,还用于检测用户的配置信息设置操作,根据检测到的配置信息设置操作确定物理模型的配置信息,将确定的配置信息发送给飞行控制器;飞行状态数据是飞行控制器根据控制数据和配置信息运行飞行控制器内置的物理模型获得的。In an embodiment, the processor 1302 is further configured to detect a configuration information setting operation of the user, determine configuration information of the physical model according to the detected configuration information setting operation, and send the determined configuration information to the flight controller; the flight state data. It is obtained by the flight controller running the physical model built into the flight controller based on the control data and configuration information.
其中,配置信息可以包括无人机的故障信息、风速、风向、无人机的重量、无人机的机架类型中的一种或多种。The configuration information may include one or more of a failure information of the drone, a wind speed, a wind direction, a weight of the drone, and a rack type of the drone.
在一实施例中,处理器1302,还用于检测用户的仿真请求操作;根据检测到的仿真请求操作确定仿真请求信息,向飞行控制器发送仿真请求信息以指示飞行控制器确定是否满足预设仿真要求。处理器1302向无人机的飞行控制器发送物理模型选择信息时,具体用于:当飞行控制器确定满足预设仿真要求时,向无人机的飞行控制器发送物理模型选择信息。In an embodiment, the processor 1302 is further configured to detect a user's simulation request operation, determine simulation request information according to the detected simulation request operation, and send simulation request information to the flight controller to instruct the flight controller to determine whether the preset is met. Simulation requirements. When the processor 1302 sends the physical model selection information to the flight controller of the drone, the method is specifically configured to: when the flight controller determines that the preset simulation requirement is met, send the physical model selection information to the flight controller of the drone.
本发明实施例提供的终端设备,使得用户可从终端设备内置的物理模型和飞行控制器内置的物理模型选择用于无人机飞行仿真的物理模型,即,用户可基于实际的应用情况,灵活选取仿真所使用的物理模型。The terminal device provided by the embodiment of the invention enables the user to select a physical model for the flight simulation of the drone from the physical model built in the terminal device and the physical model built in the flight controller, that is, the user can flexibly based on the actual application situation. Select the physical model used for the simulation.
本发明实施例还提供了一种无人机的飞行控制器,请参阅图13,示出了该飞行控制器13的结构示意图,可以包括:存储器1301和处理器1302。The embodiment of the present invention further provides a flight controller of the drone. Referring to FIG. 13 , a schematic structural diagram of the flight controller 13 is illustrated, which may include: a memory 1301 and a processor 1302.
其中,存储器1301可以为易失性存储器(volatile memory),例如随机存取存储器(random-access memory,RAM);存储器1301也可以为非易失性存储器(non-volatile memory),例如快闪存储器(flash memory),硬盘(hard disk drive,HDD)或固态硬盘(solid-state drive,SSD);存储器1301还可以为上 述种类的存储器的组合。The memory 1301 may be a volatile memory, such as a random-access memory (RAM); the memory 1301 may also be a non-volatile memory, such as a flash memory. (flash memory), hard disk drive (HDD) or solid-state drive (SSD); memory 1301 can also be A combination of the types of memory described.
其中,处理器1302可以是中央处理器(central processing unit,CPU)。处理器1302还可以进一步包括硬件芯片。上述硬件芯片可以是专用集成电路(application-specific integrated circuit,ASIC),可编程逻辑器件(programmable logic device,PLD)或其组合。上述PLD可以是复杂可编程逻辑器件(complex programmable logic device,CPLD),现场可编程逻辑门阵列(field-programmable gate array,FPGA),通用阵列逻辑(generic array logic,GAL)或其任意组合。The processor 1302 may be a central processing unit (CPU). The processor 1302 may further include a hardware chip. The hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD), or a combination thereof. The PLD may be a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a general array logic (GAL), or any combination thereof.
存储器1301,用于存储程序代码。The memory 1301 is configured to store program code.
处理器1302,调用存储器1301中存储的程序代码,当程序代码被执行时,用于执行以下操作:The processor 1302 calls the program code stored in the memory 1301, and when the program code is executed, is used to perform the following operations:
接收终端设备发送的物理模型选择信息;根据物理模型选择信息确定对无人机进行仿真的目标物理模型;其中,目标物理模型为飞行控制器内置的物理模型和终端设备内置的物理模型中的一个。Receiving physical model selection information sent by the terminal device; determining a target physical model for simulating the unmanned aerial vehicle according to the physical model selection information; wherein the target physical model is one of a physical model built in the flight controller and a physical model built in the terminal device .
其中,物理模型可以包括动力系统模型、动力学模型、运动学模型、传感器模型中的一种或多种。The physical model may include one or more of a dynamic system model, a dynamic model, a kinematic model, and a sensor model.
其中,控制数据可以包括对动力系统的控制数据、对云台的控制数据、对有效负载的控制数据、对脚架的控制数据、对指示灯的控制数据中的一种或多种。The control data may include one or more of control data of the power system, control data for the pan/tilt, control data for the payload, control data for the tripod, and control data for the indicator light.
在一实施例中,处理器1302,还用于当目标物理模型为终端设备内置的物理模型时,向终端设备发送控制数据,接收终端设备发送的飞行状态数据,其中,飞行状态数据是终端设备根据控制数据运行终端设备内置的物理模型获得的。In an embodiment, the processor 1302 is further configured to: when the target physical model is a physical model built in the terminal device, send control data to the terminal device, and receive flight state data sent by the terminal device, where the flight state data is a terminal device. Obtained based on the physical model built into the terminal device based on the control data.
在一实施例中,处处理器1302,还用于当目标物理模型为飞行控制器内置的物理模型时,生成控制数据,根据控制数据运行飞行控制器内置的物理模型以获取飞行状态数据;将飞行状态数据发送给终端设备。In an embodiment, the processor 1302 is further configured to: when the target physical model is a physical model built in the flight controller, generate control data, and run a physical model built in the flight controller according to the control data to obtain flight state data; The flight status data is sent to the terminal device.
在一实施例中,处理器1302,还用于接收控制终端发送的控制指令。则处理器1402生成控制数据时,具体用于:根据接收到的控制指令生成控制数据。In an embodiment, the processor 1302 is further configured to receive a control instruction sent by the control terminal. When the processor 1402 generates the control data, it is specifically configured to: generate the control data according to the received control instruction.
在一实施例中,处理器1302,还用于接收终端设备发送的控制指令。则处理器1402生成控制数据时,具体用于:根据接收到的控制指令生成控制数据。In an embodiment, the processor 1302 is further configured to receive a control instruction sent by the terminal device. When the processor 1402 generates the control data, it is specifically configured to: generate the control data according to the received control instruction.
在一实施例中,处理器1302,还用于接收终端设备发送的仿真请求信息,在接收到仿真请求信息之后,确定飞行控制器是否满足预设仿真要求。则处理器1302接收终端设备发送的物理模型选择信息时,具体用于:在确定飞行控制器满足预设仿真要求之后,接收终端设备发送的物理模型选择信息。In an embodiment, the processor 1302 is further configured to receive the simulation request information sent by the terminal device, and after receiving the simulation request information, determine whether the flight controller meets the preset simulation requirement. When the processor 1302 receives the physical model selection information sent by the terminal device, the processor 1302 is specifically configured to: after determining that the flight controller meets the preset simulation requirement, receive the physical model selection information sent by the terminal device.
在一实施例中,飞行状态数据是终端设备根据控制数据和物理模型的配置信息运行终端设备内置的物理模型获得的,物理模型的配置信息是终端设备基于检测到的用户的操作确定的。In an embodiment, the flight state data is obtained by the terminal device running the physical model built in the terminal device according to the control data and the configuration information of the physical model, and the configuration information of the physical model is determined by the terminal device based on the detected operation of the user.
在一实施例中,处理器1302,还用于接收终端设备发送的物理模型的配置信息,其中,物理模型的 配置信息是终端设备基于检测到的用户的操作确定的。则处理器1302根据控制数据运行飞行控制器内置的物理模型以获取飞行状态数据时,具体用于:根据控制数据和物理模型的配置信息运行飞行控制器内置的物理模型以获取飞行状态数据。In an embodiment, the processor 1302 is further configured to receive configuration information of a physical model sent by the terminal device, where the physical model The configuration information is determined by the terminal device based on the detected user's operation. Then, when the processor 1302 runs the physical model built in the flight controller according to the control data to obtain the flight state data, the processor 1302 is specifically configured to: run the physical model built in the flight controller according to the control data and the configuration information of the physical model to obtain the flight state data.
其中,配置信息可以包括无人机的故障信息、风速、风向、无人机的重量、无人机的机架类型中的一种或多种。The configuration information may include one or more of a failure information of the drone, a wind speed, a wind direction, a weight of the drone, and a rack type of the drone.
本发明实施例提供的飞行控制器,使得用户可从终端设备内置的物理模型和飞行控制器内置的物理模型选择用于无人机飞行仿真的物理模型,即,用户可基于实际的应用情况,灵活选取仿真所使用的物理模型。The flight controller provided by the embodiment of the invention enables the user to select a physical model for the flight simulation of the drone from the physical model built in the terminal device and the physical model built in the flight controller, that is, the user can be based on the actual application situation. Flexibly select the physical model used for the simulation.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)或随机存储记忆体(Random Access Memory,RAM)等。One of ordinary skill in the art can understand that all or part of the process of implementing the foregoing embodiments can be completed by a computer program to instruct related hardware, and the program can be stored in a computer readable storage medium. When executed, the flow of an embodiment of the methods as described above may be included. The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).
以上所揭露的仅为本发明部分实施例而已,当然不能以此来限定本发明之权利范围,因此依本发明权利要求所作的等同变化,仍属本发明所涵盖的范围。 The above disclosure is only a part of the embodiments of the present invention, and the scope of the present invention is not limited thereto, and thus equivalent changes made in the claims of the present invention are still within the scope of the present invention.

Claims (74)

  1. 一种仿真方法,应用于终端设备,其特征在于,包括:A simulation method is applied to a terminal device, which is characterized by comprising:
    获取处于仿真模式的飞行控制器输出的控制数据;Obtaining control data of the flight controller output in the simulation mode;
    根据所述控制数据运行所述终端设备内置的物理模型;Running a physical model built in the terminal device according to the control data;
    将所述物理模型输出的飞行状态数据发送至所述飞行控制器;Transmitting flight state data output by the physical model to the flight controller;
    显示所述飞行状态数据。The flight status data is displayed.
  2. 根据权利要求1所述的仿真方法,其特征在于,所述仿真方法还包括:The simulation method according to claim 1, wherein the simulation method further comprises:
    向所述飞行控制器发送仿真请求信息,以指示所述飞行控制器进入所述仿真模式。A simulation request message is sent to the flight controller to instruct the flight controller to enter the simulation mode.
  3. 根据权利要求1或2所述的仿真方法,其特征在于,所述仿真方法还包括:The simulation method according to claim 1 or 2, wherein the simulation method further comprises:
    向所述飞行控制器发送第一物理模型选择信息,以向所述飞行控制器指示基于所述终端设备内置的物理模型进行仿真;Transmitting, to the flight controller, first physical model selection information to indicate to the flight controller that a simulation is performed based on a physical model built into the terminal device;
    所述获取处于仿真模式的飞行控制器输出的控制数据,包括:The acquiring control data of the flight controller output in the simulation mode includes:
    在发送所述第一物理模型选择信息之后,获取处于仿真模式的飞行控制器输出的控制数据。After transmitting the first physical model selection information, the control data output by the flight controller in the simulation mode is acquired.
  4. 根据权利要求3所述的仿真方法,其特征在于,所述仿真方法还包括:The simulation method according to claim 3, wherein the simulation method further comprises:
    检测用户的第一物理模型选择操作;Detecting a user's first physical model selection operation;
    根据检测到的所述第一物理模型选择操作确定所述第一物理模型选择信息。The first physical model selection information is determined according to the detected first physical model selection operation.
  5. 根据权利要求1-4中任意一项所述的仿真方法,其特征在于,所述仿真方法还包括:The simulation method according to any one of claims 1 to 4, wherein the simulation method further comprises:
    检测用户的配置信息设置操作;Detecting user configuration information setting operations;
    根据检测到的所述配置信息设置操作确定所述物理模型的配置信息;Determining configuration information of the physical model according to the detected configuration information setting operation;
    所述根据所述控制数据运行所述终端设备内置的物理模型,包括:The running the physical model built in the terminal device according to the control data includes:
    根据所述控制数据和所述配置信息运行所述终端设备内置的物理模型。And executing a physical model built in the terminal device according to the control data and the configuration information.
  6. 根据权利要求5所述的仿真方法,其特征在于,所述配置信息包括:无人机的故障信息、风速、风向、无人机的重量、无人机的机架类型中的一种或多种。The simulation method according to claim 5, wherein the configuration information comprises: one or more of failure information, wind speed, wind direction, weight of the drone, and rack type of the drone of the drone Kind.
  7. 根据权利要求1-6中任意一项所述的仿真方法,其特征在于,所述物理模型包括:动力系统模型、动力学模型、运动学模型、传感器模型中的一种或多种。The simulation method according to any one of claims 1 to 6, wherein the physical model comprises one or more of a dynamic system model, a dynamic model, a kinematic model, and a sensor model.
  8. 根据权利要求1-7中任意一项所述的仿真方法,其特征在于,所述控制数据包括:对动力系统的控制数据、对云台的控制数据、对有效负载的控制数据、对脚架的控制数据、对指示灯的控制数据中的一种或多种。 The simulation method according to any one of claims 1 to 7, wherein the control data comprises: control data for the power system, control data for the pan/tilt, control data for the payload, and a tripod One or more of the control data and the control data for the indicator light.
  9. 一种仿真方法,其特征在于,应用于无人机的飞行控制器,包括:A simulation method, characterized in that the flight controller applied to the drone includes:
    向终端设备发送控制数据;Sending control data to the terminal device;
    接收所述终端设备发送的飞行状态数据,其中,所述飞行状态数据是所述终端设备根据所述控制数据运行所述终端设备内置的物理模型获得的。Receiving flight state data sent by the terminal device, wherein the flight state data is obtained by the terminal device running a physical model built in the terminal device according to the control data.
  10. 根据权利要求9所述的仿真方法,其特征在于,所述仿真方法还包括:The simulation method according to claim 9, wherein the simulation method further comprises:
    接收所述终端设备发送的仿真请求信息;Receiving simulation request information sent by the terminal device;
    在接收到所述仿真请求信息之后,进入仿真模式。After receiving the simulation request information, the simulation mode is entered.
  11. 根据权利要求9或10所述的仿真方法,其特征在于,所述仿真方法还包括:The simulation method according to claim 9 or 10, wherein the simulation method further comprises:
    接收所述终端设备发送的第一物理模型选择信息;Receiving first physical model selection information sent by the terminal device;
    所述向终端设备发送控制数据,包括:The sending the control data to the terminal device includes:
    当接收到所述第一物理模型选择信息时,向所述终端设备发送控制数据。When receiving the first physical model selection information, transmitting control data to the terminal device.
  12. 根据权利要求9-11中任意一项所述的仿真方法,其特征在于,所述飞行状态数据是所述终端设备根据所述控制数据运行所述终端设备内置的物理模型获得的,包括:The simulation method according to any one of claims 9 to 11, wherein the flight state data is obtained by the terminal device running a physical model built in the terminal device according to the control data, and includes:
    所述飞行状态数据是所述终端设备根据所述控制数据和物理模型的配置信息运行所述终端设备内置的物理模型获得的,其中,所述物理模型的配置信息是所述终端设备基于检测到的用户的操作确定的。The flight state data is obtained by the terminal device running a physical model built in the terminal device according to the control data and the configuration information of the physical model, where the configuration information of the physical model is that the terminal device detects The user's operation is determined.
  13. 根据权利要求12所述的仿真方法,其特征在于,所述配置信息包括:无人机的故障信息、风速、风向、无人机的重量、无人机的机架类型中的一种或多种。The simulation method according to claim 12, wherein the configuration information comprises: one or more of a failure information of the drone, a wind speed, a wind direction, a weight of the drone, and a rack type of the drone. Kind.
  14. 根据权利要求9-13中任意一项所述的仿真方法,其特征在于,所述仿真方法还包括:The simulation method according to any one of claims 9 to 13, wherein the simulation method further comprises:
    接收控制终端或所述终端设备发送的控制指令;Receiving a control command sent by the control terminal or the terminal device;
    根据所述控制指令生成所述控制数据。The control data is generated according to the control instruction.
  15. 根据权利要求9-14中任意一项所述的仿真方法,其特征在于,所述物理模型包括:动力系统模型、动力学模型、运动学模型、传感器模型中的一种或多种。The simulation method according to any one of claims 9 to 14, wherein the physical model comprises one or more of a dynamic system model, a dynamic model, a kinematic model, and a sensor model.
  16. 根据权利要求9-15中任意一项所述的仿真方法,其特征在于,所述控制数据包括:对动力系统的控制数据、对云台的控制数据、对有效负载的控制数据、对脚架的控制数据、对指示灯的控制数据中的一种或多种。The simulation method according to any one of claims 9-15, wherein the control data comprises: control data for the power system, control data for the pan/tilt, control data for the payload, and a tripod One or more of the control data and the control data for the indicator light.
  17. 一种仿真方法,其特征在于,应用于无人机的飞行控制器,包括:A simulation method, characterized in that the flight controller applied to the drone includes:
    接收终端设备发送的物理模型选择信息;Receiving physical model selection information sent by the terminal device;
    根据所述物理模型选择信息确定对所述无人机进行仿真的目标物理模型;Determining, according to the physical model selection information, a target physical model for simulating the drone;
    其中,所述目标物理模型为飞行控制器内置的物理模型和所述终端设备内置的物理模型中的一个。 The target physical model is one of a physical model built in the flight controller and a physical model built in the terminal device.
  18. 根据权利要求17所述的仿真方法,其特征在于,所述仿真方法还包括:The simulation method according to claim 17, wherein the simulation method further comprises:
    当所述目标物理模型为所述终端设备内置的物理模型时,向所述终端设备发送控制数据;Sending control data to the terminal device when the target physical model is a physical model built in the terminal device;
    接收所述终端设备发送的飞行状态数据,其中,所述飞行状态数据是终端设备根据所述控制数据运行所述终端设备内置的物理模型获得的。Receiving flight state data sent by the terminal device, wherein the flight state data is obtained by the terminal device running a physical model built in the terminal device according to the control data.
  19. 根据权利要求17所述的仿真方法,其特征在于,所述仿真方法还包括:The simulation method according to claim 17, wherein the simulation method further comprises:
    当所述目标物理模型为所述飞行控制器内置的物理模型时,生成控制数据,根据所述控制数据运行所述飞行控制器内置的物理模型以获取所述飞行状态数据;Generating control data when the target physical model is a physical model built in the flight controller, and running a physical model built in the flight controller according to the control data to acquire the flight state data;
    将所述飞行状态数据发送给所述终端设备。Transmitting the flight status data to the terminal device.
  20. 根据权利要求19所述的仿真方法,其特征在于,所述仿真方法还包括:The simulation method according to claim 19, wherein the simulation method further comprises:
    接收控制终端发送的控制指令;Receiving a control command sent by the control terminal;
    所述生成控制数据,包括:The generating control data includes:
    根据接收到的所述控制指令生成所述控制数据。The control data is generated according to the received control instruction.
  21. 根据权利要求19所述的仿真方法,其特征在于,所述仿真方法还包括:The simulation method according to claim 19, wherein the simulation method further comprises:
    接收所述终端设备发送的控制指令;Receiving a control instruction sent by the terminal device;
    所述生成控制数据,包括:The generating control data includes:
    根据接收到的所述控制指令生成所述控制数据。The control data is generated according to the received control instruction.
  22. 根据权利要求17-21中任意一项所述的仿真方法,其特征在于,所述仿真方法还包括:The simulation method according to any one of claims 17 to 21, wherein the simulation method further comprises:
    接收所述终端设备发送的仿真请求信息;Receiving simulation request information sent by the terminal device;
    在接收到所述仿真请求信息之后,确定所述飞行控制器是否满足预设仿真要求;After receiving the simulation request information, determining whether the flight controller meets a preset simulation requirement;
    所述接收终端设备发送的物理模型选择信息,包括:The physical model selection information sent by the receiving terminal device includes:
    在确定所述飞行控制器满足所述预设仿真要求之后,接收所述终端设备发送的物理模型选择信息。After determining that the flight controller meets the preset simulation requirement, receiving physical model selection information sent by the terminal device.
  23. 根据权利要求18所述的仿真方法,其特征在于,所述飞行状态数据是所述终端设备根据所述控制数据运行所述终端设备内置的物理模型获得到的,包括:The simulation method according to claim 18, wherein the flight state data is obtained by the terminal device running the physical model built in the terminal device according to the control data, and includes:
    所述飞行状态数据是所述终端设备根据所述控制数据和物理模型的配置信息运行所述终端设备内置的物理模型获得的,所述物理模型的配置信息是所述终端设备基于检测到的用户的操作确定的。The flight state data is obtained by the terminal device running a physical model built in the terminal device according to the control data and the configuration information of the physical model, and the configuration information of the physical model is that the terminal device is based on the detected user. The operation is ok.
  24. 根据权利要求19所述的仿真方法,其特征在于,所述仿真方法还包括:The simulation method according to claim 19, wherein the simulation method further comprises:
    接收所述终端设备发送的物理模型的配置信息,其中,所述物理模型的配置信息是所述终端设备基于检测到的用户的操作确定的;Receiving configuration information of a physical model sent by the terminal device, where configuration information of the physical model is determined by the terminal device based on the detected operation of the user;
    所述根据所述控制数据运行所述飞行控制器内置的物理模型以获取所述飞行状态数据,包括: The running the physical model built in the flight controller according to the control data to obtain the flight state data includes:
    根据所述控制数据和所述物理模型的配置信息运行所述飞行控制器内置的物理模型以获取所述飞行状态数据。And executing a physical model built in the flight controller according to the control data and configuration information of the physical model to acquire the flight state data.
  25. 根据权利要求23或24所述的仿真方法,其特征在于,所述配置信息包括:无人机的故障信息、风速、风向、无人机的重量、无人机的机架类型中的一种或多种。The simulation method according to claim 23 or 24, wherein the configuration information comprises: one of a failure information of a drone, a wind speed, a wind direction, a weight of the drone, and a rack type of the drone. Or a variety.
  26. 根据权利要求17-25中任意一项所述的仿真方法,其特征在于,所述物理模型包括动力系统模型、动力学模型、运动学模型、传感器模型中的一种或多种。The simulation method according to any one of claims 17 to 25, wherein the physical model comprises one or more of a dynamic system model, a dynamic model, a kinematic model, and a sensor model.
  27. 根据权利要求18或19所述的仿真方法,其特征在于,所述控制数据包括:对动力系统的控制数据、对云台的控制数据、对有效负载的控制数据、对脚架的控制数据、对指示灯的控制数据中的一种或多种。The simulation method according to claim 18 or 19, wherein the control data comprises: control data for the power system, control data for the pan/tilt, control data for the payload, control data for the tripod, One or more of the control data for the indicator light.
  28. 一种仿真方法,其特征在于,应用于终端设备,包括:A simulation method is characterized in that it is applied to a terminal device, including:
    检测用户的物理模型选择操作;Detecting the user's physical model selection operation;
    根据检测到的所述用户的物理模型选择操作确定物理模型选择信息;Determining physical model selection information according to the detected physical model selection operation of the user;
    向无人机的飞行控制器发送所述物理模型选择信息;Transmitting the physical model selection information to a flight controller of the drone;
    其中,所述物理模型选择信息用于指示对无人机进行仿真的目标物理模型,所述目标物理模型为所述飞行控制器内置的物理模型和所述终端设备内置的物理模型中的一个。The physical model selection information is used to indicate a target physical model for simulating a drone, and the target physical model is one of a physical model built in the flight controller and a physical model built in the terminal device.
  29. 根据权利要求28所述的仿真方法,其特征在于,所述仿真方法还包括:The simulation method according to claim 28, wherein the simulation method further comprises:
    当所述目标物理模型为所述终端设备内置的物理模型时,接收所述飞行控制器发送的控制数据;Receiving control data sent by the flight controller when the target physical model is a physical model built in the terminal device;
    根据所述控制数据运行所述终端设备内置的物理模型以获取飞行状态数据;Performing a physical model built in the terminal device according to the control data to acquire flight state data;
    向所述飞行控制器发送所述飞行状态数据;Transmitting the flight status data to the flight controller;
    显示所述飞行状态数据。The flight status data is displayed.
  30. 根据权利要求28所述的仿真方法,其特征在于,所述仿真方法还包括:The simulation method according to claim 28, wherein the simulation method further comprises:
    当所述目标物理模型为所述飞行控制器内置的物理模型时,接收所述飞行控制器发送的飞行状态数据,其中,所述飞行状态数据是所述飞行控制器根据控制数据运行所述飞行控制器内置的物理模型获得的;Receiving flight state data transmitted by the flight controller when the target physical model is a physical model built in the flight controller, wherein the flight state data is that the flight controller runs the flight according to control data Obtained by the physical model built into the controller;
    显示所述飞行状态数据。The flight status data is displayed.
  31. 根据权利要求29或30所述的仿真方法,其特征在于,所述显示所述状态数据包括:The simulation method according to claim 29 or 30, wherein the displaying the status data comprises:
    以无人机动画的形式显示所述飞行状态数据。The flight status data is displayed in the form of a drone animation.
  32. 根据权利要求29所述的仿真方法,其特征在于,所述仿真方法还包括:The simulation method according to claim 29, wherein the simulation method further comprises:
    检测用户的配置信息设置操作; Detecting user configuration information setting operations;
    根据检测到的所述配置信息设置操作确定物理模型的配置信息;Determining configuration information of the physical model according to the detected configuration information setting operation;
    所述根据所述控制数据运行所述终端设备内置的物理模型以获取飞行状态数据,包括:The running the physical model built in the terminal device according to the control data to obtain flight state data includes:
    根据所述控制数据和所述配置信息运行所述终端设备内置的物理模型以获取所述飞行状态数据。Performing a physical model built in the terminal device according to the control data and the configuration information to acquire the flight state data.
  33. 根据权利要求30所述的仿真方法,其特征在于,所述仿真方法还包括:The simulation method according to claim 30, wherein the simulation method further comprises:
    检测用户的配置信息设置操作;Detecting user configuration information setting operations;
    根据检测到的所述配置信息设置操作确定物理模型的配置信息;Determining configuration information of the physical model according to the detected configuration information setting operation;
    将所述配置信息发送给飞行控制器;Transmitting the configuration information to a flight controller;
    所述飞行状态数据是所述飞行控制器根据控制数据运行所述飞行控制器内置的物理模型获得的,包括:The flight state data is obtained by the flight controller running a physical model built in the flight controller according to the control data, and includes:
    所述飞行状态数据是所述飞行控制器根据所述控制数据和所述配置信息运行所述飞行控制器内置的物理模型获得的。The flight state data is obtained by the flight controller running a physical model built into the flight controller according to the control data and the configuration information.
  34. 根据权利要求28-33中任意一项所述的仿真方法,其特征在于,所述仿真方法包括:The simulation method according to any one of claims 28 to 33, wherein the simulation method comprises:
    检测用户的仿真请求操作;Detecting the user's simulation request operation;
    根据检测到的所述仿真请求操作确定仿真请求信息;Determining simulation request information according to the detected simulation request operation;
    向所述飞行控制器发送所述仿真请求信息以指示所述飞行控制器确定是否满足预设仿真要求;Sending the simulation request information to the flight controller to instruct the flight controller to determine whether a preset simulation requirement is met;
    所述向无人机的飞行控制器发送物理模型选择信息,包括:Transmitting the physical model selection information to the flight controller of the drone, including:
    当所述飞行控制器确定满足所述预设仿真要求时,向所述无人机的飞行控制器发送所述物理模型选择信息。And when the flight controller determines that the preset simulation requirement is met, transmitting the physical model selection information to a flight controller of the drone.
  35. 根据权利要求32或33所述的仿真方法,其特征在于,所述配置信息包括:无人机的故障信息、风速、风向、无人机的重量、无人机的机架类型中的一种或多种。The simulation method according to claim 32 or 33, wherein the configuration information comprises: one of a failure information of a drone, a wind speed, a wind direction, a weight of the drone, and a rack type of the drone. Or a variety.
  36. 根据权利要求28-35中任意一项所述的仿真方法,其特征在于,所述物理模型包括动力系统模型、动力学模型、运动学模型、传感器模型中的一种或多种。The simulation method according to any one of claims 28 to 35, wherein the physical model comprises one or more of a dynamic system model, a dynamic model, a kinematic model, and a sensor model.
  37. 根据权利要求29或30所述的仿真方法,其特征在于,所述控制数据包括:对动力系统的控制数据、对云台的控制数据、对有效负载的控制数据、对脚架的控制数据、对指示灯的控制数据中的一种或多种。The simulation method according to claim 29 or 30, wherein the control data comprises: control data for the power system, control data for the pan/tilt, control data for the payload, control data for the stand, One or more of the control data for the indicator light.
  38. 一种终端设备,其特征在于,包括:存储器和处理器;A terminal device, comprising: a memory and a processor;
    所述存储器,用于存储程序代码;The memory is configured to store program code;
    所述处理器,调用所述程序代码,当所述程序代码被执行时,用于执行以下操作:The processor, the program code is invoked, and when the program code is executed, is used to perform the following operations:
    获取处于仿真模式的飞行控制器输出的控制数据; Obtaining control data of the flight controller output in the simulation mode;
    根据所述控制数据运行所述终端设备内置的物理模型;Running a physical model built in the terminal device according to the control data;
    将所述物理模型输出的飞行状态数据发送至所述飞行控制器;Transmitting flight state data output by the physical model to the flight controller;
    显示所述飞行状态数据。The flight status data is displayed.
  39. 根据权利要求38所述的终端设备,其特征在于,所述处理器,还用于向所述飞行控制器发送仿真请求信息,以指示所述飞行控制器进入所述仿真模式。The terminal device according to claim 38, wherein the processor is further configured to send simulation request information to the flight controller to instruct the flight controller to enter the simulation mode.
  40. 根据权利要求38或39所述的终端设备,其特征在于,A terminal device according to claim 38 or 39, characterized in that
    所述处理器,还用于向所述飞行控制器发送第一物理模型选择信息,以向所述飞行控制器指示基于所述终端设备内置的物理模型进行仿真;The processor is further configured to send first physical model selection information to the flight controller to indicate to the flight controller that the simulation is performed based on a physical model built in the terminal device;
    所述处理器获取处于仿真模式的飞行控制器输出的控制数据时,具体用于:When the processor acquires the control data output by the flight controller in the simulation mode, specifically:
    在发送所述第一物理模型选择信息之后,获取处于仿真模式的飞行控制器输出的控制数据。After transmitting the first physical model selection information, the control data output by the flight controller in the simulation mode is acquired.
  41. 根据权利要求40所述的终端设备,其特征在于,所述处理器,还用于检测用户的第一物理模型选择操作,根据检测到的所述第一物理模型选择操作确定所述第一物理模型选择信息。The terminal device according to claim 40, wherein the processor is further configured to detect a first physical model selection operation of the user, and determine the first physics according to the detected first physical model selection operation Model selection information.
  42. 根据权利要求38-41中任意一项所述的终端设备,其特征在于,所述处理器,还用于检测用户的配置信息设置操作,根据检测到的所述配置信息设置操作确定所述物理模型的配置信息;The terminal device according to any one of claims 38 to 41, wherein the processor is further configured to detect a configuration information setting operation of the user, and determine the physicality according to the detected configuration information setting operation. Model configuration information;
    所述处理器根据所述控制数据运行所述终端设备内置的物理模型时,具体用于:When the processor runs the physical model built in the terminal device according to the control data, specifically, the processor is configured to:
    根据所述控制数据和所述配置信息运行所述终端设备内置的物理模型。And executing a physical model built in the terminal device according to the control data and the configuration information.
  43. 根据权利要求42所述的终端设备,其特征在于,所述配置信息包括:无人机的故障信息、风速、风向、无人机的重量、无人机的机架类型中的一种或多种。The terminal device according to claim 42, wherein the configuration information comprises: one or more of failure information, wind speed, wind direction, weight of the drone, and rack type of the drone of the drone Kind.
  44. 根据权利要求38-43中任意一项所述的终端设备,其特征在于,所述物理模型包括:动力系统模型、动力学模型、运动学模型、传感器模型中的一种或多种。The terminal device according to any one of claims 38-43, wherein the physical model comprises one or more of a power system model, a dynamics model, a kinematic model, and a sensor model.
  45. 根据权利要求38-44中任意一项所述的终端设备,其特征在于,所述控制数据包括:对动力系统的控制数据、对云台的控制数据、对有效负载的控制数据、对脚架的控制数据、对指示灯的控制数据中的一种或多种。The terminal device according to any one of claims 38 to 44, wherein the control data comprises: control data for the power system, control data for the pan/tilt, control data for the payload, and a tripod One or more of the control data and the control data for the indicator light.
  46. 一种无人机的飞行控制器,其特征在于,包括:存储器和处理器;A flight controller for a drone, comprising: a memory and a processor;
    所述存储器,用于存储程序代码;The memory is configured to store program code;
    所述处理器,调用所述程序代码,当所述程序代码被执行时,用于执行以下操作:The processor, the program code is invoked, and when the program code is executed, is used to perform the following operations:
    向终端设备发送控制数据;Sending control data to the terminal device;
    接收所述终端设备发送的飞行状态数据,其中,所述飞行状态数据是所述终端设备根据所述控制数据运行所述终端设备内置的物理模型获得的。 Receiving flight state data sent by the terminal device, wherein the flight state data is obtained by the terminal device running a physical model built in the terminal device according to the control data.
  47. 根据权利要求46所述的飞行控制器,其特征在于,所述处理器还用于接收所述终端设备发送的仿真请求信息,在接收到所述仿真请求信息之后,进入仿真模式。The flight controller according to claim 46, wherein the processor is further configured to receive simulation request information sent by the terminal device, and enter the simulation mode after receiving the simulation request information.
  48. 根据权利要求46或47所述的飞行控制器,其特征在于,所述处理器,还用于接收所述终端设备发送的第一物理模型选择信息;The flight controller according to claim 46 or 47, wherein the processor is further configured to receive first physical model selection information sent by the terminal device;
    所述处理器向终端设备发送控制数据时,具体用于:当接收到所述第一物理模型选择信息时,向所述终端设备发送控制数据。When the processor sends the control data to the terminal device, the method is specifically configured to: when the first physical model selection information is received, send the control data to the terminal device.
  49. 根据权利要求46-48中任意一项所述的飞行控制器,其特征在于,所述飞行状态数据是所述终端设备根据所述控制数据和物理模型的配置信息运行所述终端设备内置的物理模型获得的,其中,所述物理模型的配置信息是所述终端设备基于检测到的用户的操作确定的。The flight controller according to any one of claims 46 to 48, wherein the flight state data is that the terminal device runs the physics built in the terminal device according to the control data and the configuration information of the physical model. The model obtained, wherein the configuration information of the physical model is determined by the terminal device based on the detected operation of the user.
  50. 根据权利要求49所述的飞行控制器,其特征在于,所述配置信息包括:无人机的故障信息、风速、风向、无人机的重量、无人机的机架类型中的一种或多种。The flight controller according to claim 49, wherein the configuration information comprises: one of a failure information of the drone, a wind speed, a wind direction, a weight of the drone, and a rack type of the drone or A variety.
  51. 根据权利要求46-50中任意一项所述的飞行控制器,其特征在于,所述处理器,还用于接收控制终端或所述终端设备发送的控制指令,根据所述控制指令生成所述控制数据。The flight controller according to any one of claims 46 to 50, wherein the processor is further configured to receive a control command sent by the control terminal or the terminal device, and generate the Control data.
  52. 根据权利要求46-51中任意一项所述的飞行控制器,其特征在于,所述物理模型包括:动力系统模型、动力学模型、运动学模型、传感器模型中的一种或多种。The flight controller according to any one of claims 46-51, wherein the physical model comprises one or more of a power system model, a dynamics model, a kinematic model, and a sensor model.
  53. 根据权利要求46-52中任意一项所述的飞行控制器,其特征在于,所述控制数据包括:对动力系统的控制数据、对云台的控制数据、对有效负载的控制数据、对脚架的控制数据、对指示灯的控制数据中的一种或多种。The flight controller according to any one of claims 46 to 52, wherein the control data comprises: control data for the power system, control data for the pan/tilt, control data for the payload, and feet One or more of the control data of the rack and the control data of the indicator.
  54. 一种无人机的飞行控制器,其特征在于,包括:存储器和处理器;A flight controller for a drone, comprising: a memory and a processor;
    所述存储器,用于存储程序代码;The memory is configured to store program code;
    所述处理器,调用所述程序代码,当所述程序代码被执行时,用于执行以下操作:The processor, the program code is invoked, and when the program code is executed, is used to perform the following operations:
    接收终端设备发送的物理模型选择信息;Receiving physical model selection information sent by the terminal device;
    根据所述物理模型选择信息确定对所述无人机进行仿真的目标物理模型;Determining, according to the physical model selection information, a target physical model for simulating the drone;
    其中,所述目标物理模型为飞行控制器内置的物理模型和所述终端设备内置的物理模型中的一个。The target physical model is one of a physical model built in the flight controller and a physical model built in the terminal device.
  55. 根据权利要求54所述的飞行控制器,其特征在于,所述处理器,还用于当所述目标物理模型为所述终端设备内置的物理模型时,向所述终端设备发送控制数据,接收所述终端设备发送的飞行状态数据,其中,所述飞行状态数据是终端设备根据所述控制数据运行所述终端设备内置的物理模型获得的。The flight controller according to claim 54, wherein the processor is further configured to: when the target physical model is a physical model built in the terminal device, send control data to the terminal device, and receive The flight state data sent by the terminal device, wherein the flight state data is obtained by the terminal device running a physical model built in the terminal device according to the control data.
  56. 根据权利要求54所述的飞行控制器,其特征在于,所述处理器,还用于当所述目标物理模型为所述飞行控制器内置的物理模型时,生成控制数据,根据所述控制数据运行所述飞行控制器内置的物 理模型以获取所述飞行状态数据;将所述飞行状态数据发送给所述终端设备。The flight controller according to claim 54, wherein the processor is further configured to generate control data according to the control data when the target physical model is a physical model built in the flight controller Running the built-in object of the flight controller The model is obtained to obtain the flight state data; the flight state data is transmitted to the terminal device.
  57. 根据权利要求56所述的飞行控制器,其特征在于,所述处理器,还用于接收控制终端发送的控制指令;The flight controller according to claim 56, wherein the processor is further configured to receive a control command sent by the control terminal;
    所述处理器生成控制数据时,具体用于:When the processor generates control data, it is specifically used to:
    根据接收到的所述控制指令生成所述控制数据。The control data is generated according to the received control instruction.
  58. 根据权利要求56所述的飞行控制器,其特征在于,所述处理器,还用于接收所述终端设备发送的控制指令;The flight controller according to claim 56, wherein the processor is further configured to receive a control instruction sent by the terminal device;
    所述处理器生成控制数据时,具体用于:When the processor generates control data, it is specifically used to:
    根据接收到的所述控制指令生成所述控制数据。The control data is generated according to the received control instruction.
  59. 根据权利要求54-58中任意一项所述的飞行控制器,其特征在于,所述处理器,还用于接收所述终端设备发送的仿真请求信息,在接收到所述仿真请求信息之后,确定所述飞行控制器是否满足预设仿真要求;The flight controller according to any one of claims 54 to 58, wherein the processor is further configured to receive simulation request information sent by the terminal device, after receiving the simulation request information, Determining whether the flight controller meets a preset simulation requirement;
    所述处理器接收终端设备发送的物理模型选择信息时,具体用于:When the processor receives the physical model selection information sent by the terminal device, the processor is specifically configured to:
    在确定所述飞行控制器满足所述预设仿真要求之后,接收所述终端设备发送的物理模型选择信息。After determining that the flight controller meets the preset simulation requirement, receiving physical model selection information sent by the terminal device.
  60. 根据权利要求55所述的飞行控制器,其特征在于,所述飞行状态数据是所述终端设备根据所述控制数据和物理模型的配置信息运行所述终端设备内置的物理模型获得的,所述物理模型的配置信息是所述终端设备基于检测到的用户的操作确定的。The flight controller according to claim 55, wherein the flight state data is obtained by the terminal device running a physical model built in the terminal device according to the control data and configuration information of a physical model, The configuration information of the physical model is determined by the terminal device based on the detected operation of the user.
  61. 根据权利要求56所述的飞行控制器,其特征在于,所述处理器,还用于接收所述终端设备发送的物理模型的配置信息,其中,所述物理模型的配置信息是所述终端设备基于检测到的用户的操作确定的;The flight controller according to claim 56, wherein the processor is further configured to receive configuration information of a physical model sent by the terminal device, where configuration information of the physical model is the terminal device Determined based on the detected user's operation;
    所述处理器根据所述控制数据运行所述飞行控制器内置的物理模型以获取所述飞行状态数据时,具体用于:When the processor runs the physical model built in the flight controller according to the control data to obtain the flight state data, the processor is specifically configured to:
    根据所述控制数据和所述物理模型的配置信息运行所述飞行控制器内置的物理模型以获取所述飞行状态数据。And executing a physical model built in the flight controller according to the control data and configuration information of the physical model to acquire the flight state data.
  62. 根据权利要求60或61所述的飞行控制器,其特征在于,所述配置信息包括:无人机的故障信息、风速、风向、无人机的重量、无人机的机架类型中的一种或多种。The flight controller according to claim 60 or claim 61, wherein the configuration information comprises: one of a failure information of the drone, a wind speed, a wind direction, a weight of the drone, and a rack type of the drone. Kind or more.
  63. 根据权利要求54-62中任意一项所述的飞行控制器,其特征在于,所述物理模型包括动力系统模型、动力学模型、运动学模型、传感器模型中的一种或多种。The flight controller of any of claims 54-62, wherein the physical model comprises one or more of a power system model, a dynamics model, a kinematic model, and a sensor model.
  64. 根据权利要求55或56所述的飞行控制器,其特征在于,所述控制数据包括:对动力系统的控 制数据、对云台的控制数据、对有效负载的控制数据、对脚架的控制数据、对指示灯的控制数据中的一种或多种。A flight controller according to claim 55 or 56, wherein said control data comprises: control of the power system One or more of data, control data for the gimbal, control data for the payload, control data for the stand, and control data for the indicator light.
  65. 一种终端设备,其特征在于,包括:存储器和处理器;A terminal device, comprising: a memory and a processor;
    所述存储器,用于存储程序代码;The memory is configured to store program code;
    所述处理器,调用所述程序代码,当所述程序代码被执行时,用于执行以下操作:The processor, the program code is invoked, and when the program code is executed, is used to perform the following operations:
    检测用户的物理模型选择操作;Detecting the user's physical model selection operation;
    根据检测到的所述用户的物理模型选择操作确定物理模型选择信息;Determining physical model selection information according to the detected physical model selection operation of the user;
    向无人机的飞行控制器发送所述物理模型选择信息;Transmitting the physical model selection information to a flight controller of the drone;
    其中,所述物理模型选择信息用于指示对无人机进行仿真的目标物理模型,所述目标物理模型为所述飞行控制器内置的物理模型和所述终端设备内置的物理模型中的一个。The physical model selection information is used to indicate a target physical model for simulating a drone, and the target physical model is one of a physical model built in the flight controller and a physical model built in the terminal device.
  66. 根据权利要求65所述的终端设备,其特征在于,所述处理器,还用于当所述目标物理模型为所述终端设备内置的物理模型时,接收所述飞行控制器发送的控制数据,根据所述控制数据运行所述终端设备内置的物理模型以获取飞行状态数据,向所述飞行控制器发送所述飞行状态数据,显示所述飞行状态数据。The terminal device according to claim 65, wherein the processor is further configured to: when the target physical model is a physical model built in the terminal device, receive control data sent by the flight controller, Running a physical model built in the terminal device according to the control data to acquire flight state data, transmitting the flight state data to the flight controller, and displaying the flight state data.
  67. 根据权利要求65所述的终端设备,其特征在于,所述处理器,还用于当所述目标物理模型为所述飞行控制器内置的物理模型时,接收所述飞行控制器发送的飞行状态数据,其中,所述飞行状态数据是所述飞行控制器根据控制数据运行所述飞行控制器内置的物理模型获得的;显示所述飞行状态数据。The terminal device according to claim 65, wherein the processor is further configured to receive a flight state sent by the flight controller when the target physical model is a physical model built in the flight controller Data, wherein the flight state data is obtained by the flight controller operating a physical model built into the flight controller based on the control data; displaying the flight state data.
  68. 根据权利要求66或67所述的终端设备,其特征在于,所述处理器显示所述状态数据时,具体用于以无人机动画的形式显示所述飞行状态数据。The terminal device according to claim 66 or 67, wherein when the processor displays the status data, it is specifically configured to display the flight state data in the form of an unmanned aerial animation.
  69. 根据权利要求66所述的终端设备,其特征在于,所述处理器,还用于检测用户的配置信息设置操作,根据检测到的所述配置信息设置操作确定物理模型的配置信息;The terminal device according to claim 66, wherein the processor is further configured to detect a configuration information setting operation of the user, and determine configuration information of the physical model according to the detected configuration information setting operation;
    所述处理器根据所述控制数据运行所述终端设备内置的物理模型以获取飞行状态数据时,具体用于:When the processor runs the physical model built in the terminal device according to the control data to obtain flight state data, the processor is specifically configured to:
    根据所述控制数据和所述配置信息运行所述终端设备内置的物理模型以获取所述飞行状态数据。Performing a physical model built in the terminal device according to the control data and the configuration information to acquire the flight state data.
  70. 根据权利要求67所述的终端设备,其特征在于,所述处理器,还用于检测用户的配置信息设置操作,根据检测到的所述配置信息设置操作确定物理模型的配置信息;将所述配置信息发送给飞行控制器;The terminal device according to claim 67, wherein the processor is further configured to detect a configuration information setting operation of the user, and determine configuration information of the physical model according to the detected configuration information setting operation; Configuration information is sent to the flight controller;
    所述飞行状态数据是所述飞行控制器根据所述控制数据和所述配置信息运行所述飞行控制器内置 的物理模型获得的。The flight state data is that the flight controller operates the flight controller built in according to the control data and the configuration information The physical model obtained.
  71. 根据权利要求65-70中任意一项所述的终端设备,其特征在于,所述处理器,还用于检测用户的仿真请求操作;根据检测到的所述仿真请求操作确定仿真请求信息,向所述飞行控制器发送所述仿真请求信息以指示所述飞行控制器确定是否满足预设仿真要求;The terminal device according to any one of claims 65 to 70, wherein the processor is further configured to detect a simulation request operation of the user; and determine simulation request information according to the detected simulation request operation, The flight controller sends the simulation request information to instruct the flight controller to determine whether a preset simulation requirement is met;
    所述处理器向无人机的飞行控制器发送物理模型选择信息时,具体用于:When the processor sends the physical model selection information to the flight controller of the drone, it is specifically used to:
    当所述飞行控制器确定满足所述预设仿真要求时,向所述无人机的飞行控制器发送所述物理模型选择信息。And when the flight controller determines that the preset simulation requirement is met, transmitting the physical model selection information to a flight controller of the drone.
  72. 根据权利要求69或70所述的终端设备,其特征在于,所述配置信息包括:无人机的故障信息、风速、风向、无人机的重量、无人机的机架类型中的一种或多种。The terminal device according to claim 69 or 70, wherein the configuration information comprises: one of a failure information of a drone, a wind speed, a wind direction, a weight of the drone, and a rack type of the drone Or a variety.
  73. 根据权利要求65-72中任意一项所述的终端设备,其特征在于,所述物理模型包括动力系统模型、动力学模型、运动学模型、传感器模型中的一种或多种。The terminal device according to any one of claims 65-72, wherein the physical model comprises one or more of a power system model, a dynamics model, a kinematic model, and a sensor model.
  74. 根据权利要求66或67所述的终端设备,其特征在于,所述控制数据包括:对动力系统的控制数据、对云台的控制数据、对有效负载的控制数据、对脚架的控制数据、对指示灯的控制数据中的一种或多种。 The terminal device according to claim 66 or 67, wherein the control data comprises: control data for the power system, control data for the pan/tilt, control data for the payload, control data for the stand, One or more of the control data for the indicator light.
PCT/CN2017/103424 2017-09-26 2017-09-26 Simulation method, terminal device, and flight controller for unmanned aerial vehicle WO2019061022A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201780015211.4A CN109074091A (en) 2017-09-26 2017-09-26 A kind of flight controller of emulation mode, terminal device and unmanned plane
PCT/CN2017/103424 WO2019061022A1 (en) 2017-09-26 2017-09-26 Simulation method, terminal device, and flight controller for unmanned aerial vehicle

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/103424 WO2019061022A1 (en) 2017-09-26 2017-09-26 Simulation method, terminal device, and flight controller for unmanned aerial vehicle

Publications (1)

Publication Number Publication Date
WO2019061022A1 true WO2019061022A1 (en) 2019-04-04

Family

ID=64812355

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/103424 WO2019061022A1 (en) 2017-09-26 2017-09-26 Simulation method, terminal device, and flight controller for unmanned aerial vehicle

Country Status (2)

Country Link
CN (1) CN109074091A (en)
WO (1) WO2019061022A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115580668A (en) * 2022-09-15 2023-01-06 广州汽车集团股份有限公司 Flight vehicle hardware-in-loop communication method, device, system and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1901143A1 (en) * 2006-09-15 2008-03-19 Saab Ab Onboard simulation device and simulation method
CN102849226A (en) * 2012-08-21 2013-01-02 上海交通大学 Scientific research teaching device based on multi-rotor aircraft
CN103149846A (en) * 2011-12-06 2013-06-12 中国科学院沈阳自动化研究所 Flying robot control system semi-physical simulation platform
CN203551961U (en) * 2013-09-24 2014-04-16 中国兵器工业计算机应用技术研究所 Avionics hardware-in-the-loop simulation system for unmanned plane
US20160055275A1 (en) * 2014-08-21 2016-02-25 Mengjiao Wang Large scale flight simulation

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103365214A (en) * 2013-06-29 2013-10-23 天津大学 Single rotor wing unmanned aerial vehicle three-freedom degree semi-physical simulation platform and experimental method
CN104133379A (en) * 2014-08-15 2014-11-05 哈尔滨工业大学 Simulation method for four-rotor aircraft
CN106773787A (en) * 2016-12-28 2017-05-31 中国航空工业集团公司西安飞机设计研究所 A kind of unmanned plane during flying simulation demo verification platform based on serial communication

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1901143A1 (en) * 2006-09-15 2008-03-19 Saab Ab Onboard simulation device and simulation method
CN103149846A (en) * 2011-12-06 2013-06-12 中国科学院沈阳自动化研究所 Flying robot control system semi-physical simulation platform
CN102849226A (en) * 2012-08-21 2013-01-02 上海交通大学 Scientific research teaching device based on multi-rotor aircraft
CN203551961U (en) * 2013-09-24 2014-04-16 中国兵器工业计算机应用技术研究所 Avionics hardware-in-the-loop simulation system for unmanned plane
US20160055275A1 (en) * 2014-08-21 2016-02-25 Mengjiao Wang Large scale flight simulation

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115580668A (en) * 2022-09-15 2023-01-06 广州汽车集团股份有限公司 Flight vehicle hardware-in-loop communication method, device, system and storage medium

Also Published As

Publication number Publication date
CN109074091A (en) 2018-12-21

Similar Documents

Publication Publication Date Title
US20200272174A1 (en) Unmanned aerial vehicle control method and terminal
US10896543B2 (en) Methods and systems for augmented reality to display virtual representations of robotic device actions
US10114618B2 (en) Autonomous mobile sensor movement path simulation with an integrated developer environment
US9399294B1 (en) Displaying estimated image data in a user interface
US10620778B2 (en) Augmentable and spatially manipulable 3D modeling
WO2019131527A1 (en) Method for generating universal learned model
US11250321B2 (en) Immersive feedback loop for improving AI
US11107367B2 (en) Adaptive assembly guidance system
WO2017028571A1 (en) An education system using connected toys
JP5898756B1 (en) SYSTEM, PROGRAM, AND METHOD FOR OPERATING SCREEN BY LINKING DISPLAY AND MULTIPLE CONTROLLERS CONNECTED BY NETWORK
WO2019227330A1 (en) Emulation method and device for unmanned aerial vehicle
US11908337B2 (en) Information processing device, intermediation device, simulation system, and information processing method
JP2020026026A (en) Information processing device, mediation device, simulation system and information processing method
EP3725217A1 (en) Electronic device and method for measuring heart rate
US11093219B2 (en) System for co-ordination of logical sequence of instructions across electronic devices using visual programming and wireless communication
US11430137B2 (en) Electronic device and control method therefor
US20190156186A1 (en) Information processing device, information processing method, and program
WO2019061022A1 (en) Simulation method, terminal device, and flight controller for unmanned aerial vehicle
JPWO2018180148A1 (en) Information processing apparatus and information processing method, computer program, and program manufacturing method
JP2018045406A (en) Measurement system, sensor device, control method of measurement system
WO2019205062A1 (en) Navigation sensor detection method for movable platform and related device
WO2020045254A1 (en) Display system, server, display method, and device
US11868597B2 (en) Method and apparatus for controlling devices
KR102504720B1 (en) Method and system for providing a 3d model automatic creation interface
US11915370B2 (en) Method and system for 3D modeling based on irregular-shaped sketch

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17927202

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17927202

Country of ref document: EP

Kind code of ref document: A1