WO2021259252A1 - Flight simulation method and apparatus, electronic device, and unmanned aerial vehicle - Google Patents

Flight simulation method and apparatus, electronic device, and unmanned aerial vehicle Download PDF

Info

Publication number
WO2021259252A1
WO2021259252A1 PCT/CN2021/101519 CN2021101519W WO2021259252A1 WO 2021259252 A1 WO2021259252 A1 WO 2021259252A1 CN 2021101519 W CN2021101519 W CN 2021101519W WO 2021259252 A1 WO2021259252 A1 WO 2021259252A1
Authority
WO
WIPO (PCT)
Prior art keywords
flight
simulated
simulation
drone
model
Prior art date
Application number
PCT/CN2021/101519
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 深圳市道通智能航空技术股份有限公司
Publication of WO2021259252A1 publication Critical patent/WO2021259252A1/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
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02TCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO TRANSPORTATION
    • Y02T90/00Enabling technologies or technologies with a potential or indirect contribution to GHG emissions mitigation

Definitions

  • the present invention relates to the technical field of drones, in particular to a flight simulation method, device, electronic equipment and drones.
  • Flight Simulator is a very popular and widely used function. It can conveniently provide operators or flying enthusiasts with a quick and convenient way to learn to fly and become familiar with aircraft performance.
  • the flight simulator that provides flight simulation function is realized based on the simulation system of the host computer.
  • a typical implementation method is to provide simulation software containing various aircraft operating data, and then the user downloads the simulation software to a personal terminal such as a computer to install and run, and use an additional remote control handle or similar interactive device to interact with the computer. Connect to realize the flight simulation function.
  • the embodiments of the present invention aim to provide a flight simulation method, device, electronic equipment, and unmanned aerial vehicle, which can solve the shortcomings of the existing flight simulation method.
  • a flight simulation method includes:
  • Real-time monitoring whether there is a mode switching command when the mode switching command is monitored, lock the power device of the drone; transmit the flight control command received by the drone to a preset flight simulation model;
  • the flight simulation model generates simulation data corresponding to the flight control instruction; based on the simulation data, the simulated flight state of the drone under the flight control instruction is displayed.
  • the flight simulation model includes: a flight dynamics model for simulating the flight state of the drone and a sensor model for simulating sensor detection data of the drone;
  • the generating simulation data corresponding to the flight control instruction by the flight simulation model specifically includes:
  • Generating a simulated flight state corresponding to the flight control instruction through the flight dynamics model, and the simulated flight state is represented by several types of simulated state data;
  • the simulated state data includes simulated attitude angle, simulated flight trajectory, and simulated output of the power plant;
  • the simulated detection data includes positioning simulation data, visual simulation data, ultrasonic simulation data, air pressure simulation data, and inertial measurement unit simulation Data and magnetometer simulation data.
  • the transmitting the flight control instructions received by the drone to a preset flight simulation model specifically includes:
  • the control signal is input to the flight simulation model.
  • the generation of several types of simulation state data corresponding to the flight control instruction and used to simulate the flight state of the drone through the flight dynamics model specifically includes:
  • the simulated attitude angle includes a simulated roll angle, a simulated pitch angle, and a simulated yaw angle;
  • the calculating the simulated attitude angle according to the simulated output of the power plant specifically includes:
  • the rotational angular velocity of the roll axis the rotational angular velocity of the pitch axis, the rotational angular velocity of the yaw axis, and the conversion matrix, the simulated roll angle, the simulated pitch angle, and the simulated yaw angle are calculated.
  • the calculating the simulated flight trajectory according to the simulated attitude angle and the simulated output specifically includes:
  • a flight simulation device including:
  • the monitoring module is used to monitor in real time whether there is a mode switching command; the mode switching module is used to lock the power unit of the drone when the mode switching command is monitored; the flight simulation module is used to receive the drone The received flight control command is transmitted to a preset flight simulation model; and the simulation data corresponding to the flight control command is generated by the flight simulation model; the display module is used to display the UAV based on the simulation data The simulated flight state under the flight control instruction.
  • an electronic device including: a processor and a memory communicatively connected with the processor; the memory stores computer program instructions, and the computer program When the instruction is called by the processor, the processor executes the flight simulation method as described above.
  • an unmanned aerial vehicle including:
  • a controller for receiving a mode switching instruction and a flight control instruction from a remote control device, and switching the operation mode of the drone according to the mode switching instruction, the operation mode including a flight mode and a simulation mode;
  • a power device the power device is connected to the controller, and is used to output power that is compatible with the flight control command when the drone is in a flying mode;
  • a flight simulator where the flight simulator is connected to the controller, and is configured to execute the flight simulation method as described above when the drone is in a simulation mode, and show that the drone is in the flight control instruction Flight simulation status under.
  • the drone when the drone is activated, it is in the flight mode; when the mode switching instruction is monitored, the operation mode of the drone is switched from the flight mode to the simulation mode.
  • the flight simulation method of the embodiment of the present invention integrates the flight simulation function on the drone without affecting the normal use of the drone by setting a variety of working mode switching methods. Users can use it directly on the drone without relying on other hardware devices, it is convenient to use and low in cost, and it has a good application prospect.
  • FIG. 1 is a schematic diagram of an application scenario of a flight simulation method according to an embodiment of the present invention
  • Figure 2a is a structural block diagram of an unmanned aerial vehicle provided by an embodiment of the present invention.
  • Figure 2b is a schematic diagram of a flight simulation model provided by an embodiment of the present invention.
  • Figure 2c is a schematic diagram of a flow chart of operating mode switching of a drone provided by an embodiment of the present invention.
  • Figure 3 is a schematic diagram of a flight simulation device provided by an embodiment of the present invention.
  • FIG. 5 is a flowchart of a method for calculating simulation state data provided by an embodiment of the present invention.
  • Fig. 6 is a schematic diagram of a position coordinate calculation process provided by an embodiment of the present invention.
  • FIG. 7 is a schematic diagram of the result of an electronic device provided by an embodiment of the present invention.
  • Flight simulation refers to the use of software programs and/or hardware equipment to reproduce real flight scenes and realistically restore various flight operations to achieve learning to fly or experience flight, etc.
  • Fig. 1 is an application scenario of a flight simulation method provided by an embodiment of the present invention. As shown in FIG. 1, in this application scenario, a drone 10, a remote control device 20, a smart terminal 30, and a wireless network 40 are included.
  • the drone 10 may be an unmanned aerial vehicle driven by any type of power, including but not limited to a four-axis drone, a fixed-wing aircraft, and a helicopter model. It can be equipped with the corresponding volume or power according to the needs of the actual situation, so as to provide the load capacity, flight speed and flight mileage that can meet the needs of use.
  • one or more functional modules may be added to the UAV 10 to enable the UAV to implement corresponding functions and meet the use requirements in different scenarios, including but not limited to various sensor devices, such as aerial cameras.
  • the functional modules carried on the drone it can be installed and fixed on the drone through a fixed bracket such as a pan/tilt, and controlled by the drone 10 to perform image collection tasks.
  • the remote control device 20 is used in conjunction with the drone 10 and is on the user side, and is an interactive device for the user or operator to issue flight control instructions and feed back relevant flight information of the drone 10.
  • the remote control device 20 may be provided with one or more interactive devices, including but not limited to joysticks, keys, and touch screens.
  • the smart terminal 30 may be any type of smart device used to establish a communication connection with the drone, such as a mobile phone, a tablet computer, or a smart remote control.
  • the smart terminal 30 may be equipped with one or more different user interaction devices to collect user instructions or display and feedback information to the user.
  • buttons, display screens, touch screens, and speakers are examples of interactive devices.
  • the smart terminal 30 may be equipped with a touch display screen, through which the user's remote control instructions for the drone are received and the image information obtained by the aerial camera is displayed to the user through the touch display screen.
  • the unmanned aerial vehicle 10 and the remote control device 20 or the smart terminal 30 may also be integrated with existing image visual processing technologies to further provide more intelligent services.
  • the drone 10 can collect images through an aerial camera, and then the smart terminal 30 analyzes the operation gestures in the image, and finally realizes the user's gesture control of the drone 10.
  • the smart terminal 30 can be used in conjunction with the remote control device 20 at the same time, or can be used alone.
  • the wireless network 40 may be a wireless communication network based on any type of data transmission principle for establishing a data transmission channel between two nodes, such as a Bluetooth network located in a specific signal frequency band, a WiFi network, a wireless cellular network, or a combination thereof.
  • FIG. 1 is only for exemplary description. Those skilled in the art can add or subtract one or more of the devices according to actual needs, and are not limited to those shown in FIG. 1.
  • FIG. 2a is a structural block diagram of the unmanned aerial vehicle 10 provided by an embodiment of the present invention.
  • the drone 10 may include a controller 110, a power device 120, and a flight simulator 130.
  • the controller 110 is the core of the flight control of the drone 10. It has the ability of logical operation, can execute a series of operation steps based on the internally stored computer program and output corresponding instruction information, which is used to control the drone 10 so that it can respond to the instructions of the operator.
  • the power unit 120 is a driving component used to provide flight power for the drone. It is controlled by the controller 110, and outputs appropriate power according to the command information of the controller 110.
  • the power plant can be constructed based on any type of power source.
  • the power device 120 may be constructed based on electricity, and consist of a battery that provides power, an electric motor that converts electrical energy into power output, and a propeller that changes the output power into aircraft lift.
  • the flight simulator 130 is built-in and integrated in the UAV 10 to provide functional modules for simulating flight functions.
  • a number of simulation models adapted to the operating parameters of the UAV 10 are preset in the flight simulator 130, so as to generate and show the user a simulated flight state under a specific flight control instruction.
  • the drone 10 may further include several sensor devices 140 to meet different usage requirements.
  • the sensor equipment includes, but is not limited to, barometers, GPS positioning systems, visual acquisition equipment, ultrasound equipment, inertial measurement units, magnetometers, etc.
  • the flight simulator 130 also has a built-in sensor model corresponding to the sensor device of the drone 10 to simulate and generate the same type of sensor data as in the real flight process.
  • Figure 2b is a schematic structural diagram of a preset simulation model provided by an embodiment of the present invention.
  • the simulation model used in the flight simulator 130 may include: a flight dynamics model and a sensor model.
  • the flight dynamics model includes a motor dynamics model 131, a flight rotation dynamics model 132, and a flight translation dynamics model 133.
  • the sensor model may include a GPS model 134, a vision model 135, an ultrasound model 136, a barometer model 137, an inertial measurement unit (IMU) model 138, and a magnetometer model 139.
  • IMU inertial measurement unit
  • the input of the motor dynamics model 131 is the control signal (PWM signal), and the output is the motor output.
  • PWM signal the control signal
  • the motor dynamics model 131 specifically uses the transfer function shown in the following formula (1) to simulate the output of the motor under a specific PWM signal:
  • L(s) is the force output by the motor
  • pwm(s) is the input PWM control signal
  • K is the gain
  • s is the Laplace operator
  • is the time constant of the motor.
  • the input of the flight rotation dynamics model 132 is the output of the motor, and the output is the attitude angle of the UAV.
  • the flight rotation dynamics model 132 can specifically obtain the attitude angle through real-time iterative calculations through the mathematical models shown in the following equations (2-1) and (2-2):
  • ⁇ , ⁇ , ⁇ are roll angle, pitch angle and yaw angle
  • ⁇ x , ⁇ y , ⁇ z are the three-axis rotation angular velocity of the drone
  • M x , M y , M z are the drone
  • the three-axis control torque of, matrix A is expressed by the following formula (2-3):
  • the three-axis control torque of the unmanned aerial vehicle can be calculated from the speed difference of multiple different motors in the power plant. Specifically, the three-axis control torque can be calculated by the following formula (2-4):
  • M is the distribution matrix
  • L is the force arm vector
  • F is the pulling force vector of the motor.
  • the input of the flight translational dynamics model 133 is the pull force and attitude angle of the motor.
  • the three-axis acceleration of the UAV in the body coordinate system is calculated by equation (3-2). After the three-axis acceleration is integrated
  • the three-axis speed in the body coordinate system can be obtained.
  • the three-axis speed in the airframe coordinate system can be converted to the three-axis speed in the ground coordinate system through equation (3-1), and after integrating it, the position coordinates of the drone in the ground coordinate system can be output.
  • the flight translational dynamics model 133 specifically calculates the position coordinates of the UAV through the following formulas (3-1) to (3-2):
  • x, y, z are the position coordinates of the drone in the ground coordinate system (referred to as the O system in this embodiment);
  • Vx, Vy, Vz are the speed of the drone in the O system;
  • V xG , V yG , V zG are the speeds in the body coordinate system (referred to as the G system in this embodiment, that is, x points forward along the nose, y points to the right perpendicular to the nose in the horizontal plane, and z vertically downwards);
  • T is the sum of the pulling force of the UAV motor, and m is the mass of the aircraft.
  • the inputs of the GPS model 134 are the speed and position of the drone calculated by the flight dynamics model simulation, the initial altitude input by the user, and the GPS noise.
  • the output of the GPS model 134 includes data such as position, altitude, latitude and longitude, and signal quality.
  • the GPS model can be specifically composed of the following equations (4-1) to (4-5):
  • h GPS -z+h sea +w hGPS (4-3)
  • w v(.) GPS is the GPS speed simulation noise
  • sAcc is the GPS speed accuracy factor
  • w hGPS is the GPS height simulation noise
  • h sea is the initial altitude of the aircraft
  • hAcc is the GPS altitude accuracy factor
  • f(x,y) is the function that converts the UAV's position to latitude and longitude, which can be called directly from the standard function library.
  • the input of the visual model 135 is the speed of the UAV, the measured value of ultrasonic height and the visual noise calculated by the simulation and calculation of the travel dynamics model.
  • the output of the visual model 135 includes the speed and its signal quality.
  • the visual model 135 is specifically composed of the following formulas (5-1) to (5-2):
  • w v(.)VIO is the visual analog noise
  • q VIO is the visual signal quality
  • the input of the ultrasonic model 136 includes the speed of the drone and the ultrasonic noise calculated by the flight dynamics model simulation, and the output is the ultrasonic height measurement value.
  • the ultrasound model 136 is specifically composed of the following formula (6-1):
  • w sonar is ultrasonic noise
  • h sonar is ultrasonic measurement height.
  • the input of the barometer model 137 includes the position of the drone calculated by the travel dynamics model, the initial altitude input by the user, and the ultrasonic height calculated by the ultrasonic model.
  • the simulated barometer noise can be further considered, and the simulated altitude is output.
  • the barometer model 137 can be composed of the following formula (7-1):
  • w baro1 and w baro2 are the noises of the barometer at different heights
  • h baro is the barometer to measure the altitude.
  • the inertial measurement unit (IMU) model 138 needs to extract speed and angular velocity information from the flight dynamics model, and take into account the gyroscope, accelerometer noise, and gyroscope and accelerometer offsets, and output inertial measurements accordingly.
  • the analog measurement value of the unit (IMU) is the analog measurement value of the unit (IMU).
  • the inertial measurement unit (IMU) model can be composed of the following equations (8-1) and (8-2):
  • the corresponding standard magnetic field can be obtained from the global magnetic field distribution standard model.
  • the attitude angle provided by the standard magnetic field, soft magnetic interference, and flight rotation dynamics is used as the input of the magnetometer model 139 to make it calculate the simulated magnetometer measurement value.
  • the magnetometer model 139 is specifically composed of the following formula (9-1):
  • the drone 10 with a preset flight simulator has two different operating modes: a flight mode and a simulation mode.
  • the flight mode is the normal working mode of the UAV 10, which is no different from the general UAV.
  • the controller receives the flight control instructions, and then outputs the corresponding data information to control the power device to output appropriate power, so that the unmanned The aircraft can correctly respond to flight control commands.
  • the simulation mode can provide an operator or user with a flight simulation function, so that they can obtain a simulation operation experience of the UAV 10 for users to learn or try, and avoid a series of problems caused by real machine operation.
  • the switching between the flight mode and the simulation mode is controlled by the mode switching command.
  • the mode switching instruction may be in any form, and one or more operation actions issued by the user.
  • the default operation mode of the drone 10 may be the flight mode. That is, after the drone is activated, it will be in flight mode. Only when the mode switching command is detected, the operation mode is switched to the simulation mode.
  • FIG. 2c is a working process of the UAV 10 provided by an embodiment of the present invention in different working modes. As shown in FIG. 2c, the UAV 10 also includes a monitoring process 150, a mode switching process 160, and a state switching process 170 for monitoring mode switching instructions.
  • the monitoring process 150 is used to send a corresponding pulse signal when the mode switching instruction is monitored.
  • the mode switching process 160 is used to switch the flight mode to the simulation mode when the pulse signal is received.
  • the state switching process 170 is a channel for feeding back sensor information to the controller 110. In the flight mode, it chooses to feed back the data collected by the real sensor, and in the simulation mode, it feeds back the data provided by the sensor model.
  • the working mode of the drone 10 will be in the default flight mode.
  • the flight simulator 130 is in a closed state, and the control signal generated by the controller 110 according to the remote control instruction is transmitted to the power device 120 to drive the drone to fly.
  • the state switching process 170 feeds back the data collected by the real sensors deployed on the drone to the controller 110.
  • the monitoring process 150 When the monitoring process 150 detects the mode switching instruction, it can send a corresponding pulse signal to the mode switching process 160.
  • the mode switching process 160 switches the flight mode to the simulation mode accordingly.
  • the power unit 120 is in the locked state, and the control signal generated by the flight controller 110 according to the remote control command is transmitted to the flight dynamics model of the flight simulator 130, and the flight dynamics model generates relevant simulation data (such as speed, position). And related state information such as attitude angle).
  • the generated simulation data is further provided to each sensor model, and the simulated sensor detection information in the simulated flight state is calculated and fed back to the flight controller 110 through the state switching process 170.
  • FIGS. 2a to 2c the functions performed by one or more functional modules (such as flight controllers and flight simulators) of the UAV 10 shown in FIGS. 2a to 2c can also be moved Or it can be integrated into another functional module.
  • FIG. 2 only exemplarily describes the functional modules of the drone 10 and is not used to limit the functional modules of the drone 10.
  • Fig. 3 is a structural block diagram of a flight simulation device provided by an embodiment of the present invention.
  • the flight simulation device can be executed by the above-mentioned flight simulator.
  • the modules shown in FIG. 3 can be selectively implemented through software, hardware, or a combination of software and hardware according to actual needs.
  • the flight simulation device 300 includes a monitoring module 310, a mode switching module 320, a flight simulation module 330, and a display module 340.
  • the monitoring module 310 is used to monitor in real time whether a mode switching instruction occurs.
  • the mode switching instruction is instruction information used to indicate user needs for switching the operating mode of the drone.
  • the monitoring time period is the time period between after the drone is started and before takeoff.
  • the monitoring module 310 can be implemented in any suitable manner, for example, through an automatic wake-up process.
  • the mode switching module 320 is used to lock the power device of the drone when the mode switching instruction is monitored. "Locking” refers to suspending the operation of the power plant so that it is in a closed state without responding to any data commands.
  • the unmanned aerial vehicle 10 By locking the power unit, the unmanned aerial vehicle 10 can be prevented from taking off in a simulated state and causing adverse consequences. Locking can be achieved in many ways, such as cutting off the power supply, data transmission channels, etc., just by turning off the power unit.
  • the flight simulation module 330 is configured to transmit the flight control instructions received by the drone to a preset flight simulation model, and generate simulation data corresponding to the flight control instructions from the flight simulation model.
  • the "flight simulation model” is established through mathematical operations, etc., to predict the data information related to the flight state generated by the UAV 10 under specific flight control instructions. Based on these simulated data information, the operator or user can restore or simulate the real drone flight scene and flight experience.
  • the specific flight simulation model used can be set in the UAV 10 in advance according to the relevant parameters of the UAV and actual use needs.
  • the flight simulation model may include two categories: flight dynamics model and sensor model. Among them, the flight dynamics model is used to simulate the flight state of the drone, and the sensor model is used to simulate the sensor detection data of the drone.
  • the flight simulation module 330 when the flight simulation module 330 provides simulation data, it first generates a simulated flight state corresponding to the flight control instruction through the flight dynamics model. Then, multiple types of simulated state data representing the simulated flight state are input into one or more of the sensor models. Finally, the sensor model generates several corresponding analog detection data according to the input simulation state data.
  • the sensor model may include a GPS model, a vision model, an ultrasound model, a barometer model, an inertial measurement unit (IMU) model, and a magnetometer model.
  • a GPS model may include a GPS model, a vision model, an ultrasound model, a barometer model, an inertial measurement unit (IMU) model, and a magnetometer model.
  • IMU inertial measurement unit
  • the data information input to the flight simulation model may be the same control signal provided to the power plant. That is, the flight control command from the remote control device can first be converted into a control signal for controlling the power plant.
  • the control signal is provided to the power unit, and when the drone is in the simulation mode, it is provided to the flight simulation model.
  • the display module 340 is a post-processing module. It can display the simulated flight status of the drone under the flight control instruction on the smart terminal 30 or the remote control device 20 based on the simulation data.
  • the specific simulation flight status display form can be designed in advance by the technicians with reference to the real flight scene.
  • the flight simulation device provided by the embodiment of the present invention is integrated in the drone, and provides two different drone operation modes. Therefore, after obtaining the drone, the user only needs to enter the mode switching command to use the flight simulation function, without additional software downloads or purchasing matching simulation interactive equipment, which is simple and convenient to use and low in cost.
  • the application scenario shown in Figure 1 is used in drones as an example.
  • the flight simulation device can also be used in other types of scenes and equipment to improve the convenience of use of the flight simulation device and is not limited to the application in the scene shown in FIG. 1.
  • Fig. 4 is a method flowchart of a flight simulation method provided by an embodiment of the present invention. As shown in Figure 4, the flight simulation method includes the following steps:
  • Monitor in real time whether there is a mode switching instruction.
  • the time period for real-time monitoring is the time period from when the drone is powered on to before takeoff. It can be executed by related functional modules (such as flight control) in the UAV 10.
  • the mode switching instruction may be triggered by the user in any suitable manner, for example, when the user short presses the power button of the drone twice, the mode switching instruction is triggered.
  • the drone can simply include only two modes, flight mode and simulation mode, or more modes can be set as needed.
  • the smart terminal and/or remote control device shown in FIG. 1 can also send relevant prompt information to the operator or user, indicating that the drone is currently in simulation State, reduce the risk of misoperation and facilitate the use of operators or users.
  • the specific prompt message form can be set according to actual needs, including but not limited to voice broadcast, pop-up prompt message box, etc., and only need to be able to serve the purpose of prompting the operator or the user.
  • the flight control instruction refers to the data information used by the user to express the user's operation requirements directly through the remote control device such as the remote controller.
  • the flight control command can also come from other sources (such as a pre-written program), and it only needs to be used to control the UAV.
  • the transmitted flight control command may be first converted into a control signal for controlling the power plant, and then input to the flight simulation model. In this way, when the UAV is in different operating modes, only the object of the control signal transmission needs to be changed.
  • the simulation data is output by the flight simulation model to reflect various data of the flight status of the UAV in the current situation.
  • the specific output type of simulation data is determined by the actual flight simulation model used.
  • the simulated data may include two types of simulated state data used to reflect the flight state and simulated detection data used to provide sensor detection conditions.
  • the simulated state data includes simulated attitude angle, simulated flight trajectory, and simulated output of the power plant.
  • the simulated detection data may include positioning simulation data, visual simulation data, ultrasonic simulation data, air pressure simulation data, inertial measurement unit simulation data, and magnetometer simulation data.
  • the simulated flight status can be specifically displayed in any suitable mode or form, and it only needs to be able to provide as realistic flight scenes as possible.
  • the simulated flight screen of the drone, simulated power data, simulated flight speed, position, and flight direction can be displayed on the smart terminal 20 shown in FIG. 1.
  • the specific processing method for the simulated data can be determined. For example, based on the position information of the drone, the flight picture that can be seen at the corresponding position can be retrieved, or the simulated flight height, speed, etc. can be displayed in the same way as in real flight.
  • the flight simulation method provided by the embodiment of the present invention is integrated on the drone, and the flight simulation function is integrated on the drone without affecting the normal use of the drone. Therefore, the user can directly use the drone without relying on other hardware devices, is convenient to use and low in cost, and has a good application prospect.
  • the calculation process includes:
  • control signals need to be used.
  • the PWM signal can be used as the control signal.
  • Choosing an appropriate dynamic model can calculate the corresponding analog output according to the input control signal, and simulate the output power of the motor in the control signal.
  • “Simulated attitude angle” includes three angles: simulated roll angle, simulated pitch angle, and simulated yaw angle.
  • the simulated motor output calculated based on the control signal can be calculated in the following manner to obtain the simulated attitude angle:
  • the simulated roll angle, simulated pitch angle, and simulated yaw angle are calculated according to the rotational angular velocity of the roll axis, the rotational angular velocity of the pitch axis, and the rotational angular velocity of the yaw axis and the conversion matrix.
  • the UAV's position at different times can be combined to get the UAV's flight trajectory in a certain period of time.
  • the specific calculation process of the drone position coordinates may include the following steps:
  • the simulated acceleration of the drone in the body coordinate system is calculated by the formula (3-2).
  • the simulated acceleration is calculated by the formula (3-2).
  • the first simulated speed is converted into a second simulated speed in the ground coordinate system through equation (3-1).
  • the second simulated speed is obtained the position coordinates of the UAV in the ground coordinate system.
  • FIG. 7 shows a schematic structural diagram of an electronic device according to an embodiment of the present invention, and the specific embodiment of the present invention does not limit the specific implementation of the electronic device.
  • the electronic device may include: a processor (processor) 702, a communication interface (Communications Interface) 704, a memory (memory) 706, and a communication bus 708.
  • processor processor
  • Communication interface Communication Interface
  • memory memory
  • the processor 702, the communication interface 704, and the memory 706 communicate with each other through the communication bus 708.
  • the communication interface 704 is used to communicate with other devices such as network elements such as clients or other servers.
  • the processor 702 is configured to execute a program 710, and specifically can execute relevant steps in the above-mentioned flight simulation method embodiment.
  • the program 710 may include program code, and the program code includes a computer operation instruction.
  • the processor 702 may be a central processing unit CPU, or an Application Specific Integrated Circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present invention.
  • the one or more processors included in the network slicing device may be the same type of processor, such as one or more CPUs, or different types of processors, such as one or more CPUs and one or more ASICs.
  • the memory 706 is used to store the program 710.
  • the memory 706 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), for example, at least one disk memory.
  • the program 710 may be specifically used to enable the processor 702 to execute the flight simulation method in any of the foregoing method embodiments.
  • the computer software may be stored in a computer readable storage medium, and when the program is executed, it may include the processes of the above-mentioned method embodiments.
  • the storage medium can be a magnetic disk, an optical disc, a read-only storage memory or a random storage memory, etc.

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)
  • Control Of Position, Course, Altitude, Or Attitude Of Moving Bodies (AREA)

Abstract

The embodiments of the present invention relate to a flight simulation method and apparatus, an electronic device, and an unmanned aerial vehicle. The method comprises: monitoring in real time whether a mode switching instruction occurs; when the mode switching instruction is detected, locking a power device of an unmanned aerial vehicle; transmitting a flight control instruction received by the unmanned aerial vehicle to a preset flight simulation model; generating simulation data corresponding to the flight control instruction by means of the flight simulation model; and displaying, on the basis of the simulation data, a simulated flight state of the unmanned aerial vehicle under the flight control instruction. By setting multiple working mode switching ways, a flight simulation function is integrated on the unmanned aerial vehicle without affecting the normal use of the unmanned aerial vehicle. A user can directly use said function on the unmanned aerial vehicle without depending on other hardware devices, so that said function is convenient to use and low in implementation cost.

Description

飞行模拟方法、装置、电子设备及无人机Flight simulation method, device, electronic equipment and drone
本申请要求于2020年6月24日递交至中国专利局、申请号为2020105923051、申请名称为“飞行模拟方法、装置、电子设备及无人机”的中国专利申请的优先权,其全部申请内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application filed to the Chinese Patent Office on June 24, 2020 with the application number 2020105923051 and the application titled "Flight Simulation Method, Device, Electronic Equipment, and UAV", all of its application content Incorporated in this application by reference.
【技术领域】【Technical Field】
本发明涉及无人机技术领域,尤其涉及一种飞行模拟方法、装置、电子设备以及无人机。The present invention relates to the technical field of drones, in particular to a flight simulation method, device, electronic equipment and drones.
【背景技术】【Background technique】
“模拟飞行”是目前非常受欢迎,并且得到广泛应用的功能。其可以方便的为操作者或者飞行爱好者等提供快速便捷的学习飞行,熟悉飞行器性能的方式。"Flight Simulator" is a very popular and widely used function. It can conveniently provide operators or flying enthusiasts with a quick and convenient way to learn to fly and become familiar with aircraft performance.
目前提供模拟飞行功能的飞行模拟器是基于上位机的模拟仿真系统实现的。典型的实现方式是提供包含各类的飞行器运行数据的模拟仿真软件,然后由用户下载该模拟仿真软件到电脑等个人终端中安装和运行,并且通过额外购买的遥控手柄或者类似的交互设备与电脑连接,从而实现模拟飞行功能。At present, the flight simulator that provides flight simulation function is realized based on the simulation system of the host computer. A typical implementation method is to provide simulation software containing various aircraft operating data, and then the user downloads the simulation software to a personal terminal such as a computer to install and run, and use an additional remote control handle or similar interactive device to interact with the computer. Connect to realize the flight simulation function.
但是,这样的模拟飞行实现方式需要在电脑等特定的个人终端上运行,而且还需要用户额外购买交互设备,其对用户使用造成不便,实现成本也较高。However, such a simulation flight implementation method needs to run on a specific personal terminal such as a computer, and also requires the user to purchase additional interactive equipment, which causes inconvenience to the user and high implementation cost.
【发明内容】[Summary of the invention]
本发明实施例旨在提供一种飞行模拟方法、装置、电子设备以及无人机,能够解决现有飞行模拟方式所存在的缺陷。The embodiments of the present invention aim to provide a flight simulation method, device, electronic equipment, and unmanned aerial vehicle, which can solve the shortcomings of the existing flight simulation method.
为解决上述技术问题,本发明实施例提供以下技术方案:一种飞行模拟方法,包括:In order to solve the above technical problems, embodiments of the present invention provide the following technical solutions: A flight simulation method includes:
实时监测是否出现模式切换指令;在监测到所述模式切换指令时,锁定 无人机的动力装置;将所述无人机接收到的飞行控制指令传输至预设的飞行模拟模型;通过所述飞行模拟模型生成与所述飞行控制指令对应的模拟数据;基于所述模拟数据,展示所述无人机在所述飞行控制指令下的模拟飞行状态。Real-time monitoring whether there is a mode switching command; when the mode switching command is monitored, lock the power device of the drone; transmit the flight control command received by the drone to a preset flight simulation model; The flight simulation model generates simulation data corresponding to the flight control instruction; based on the simulation data, the simulated flight state of the drone under the flight control instruction is displayed.
可选地,所述飞行模拟模型包括:用于模拟所述无人机的飞行状态的飞行动力学模型以及用于模拟所述无人机的传感器检测数据的传感器模型;Optionally, the flight simulation model includes: a flight dynamics model for simulating the flight state of the drone and a sensor model for simulating sensor detection data of the drone;
所述由所述飞行模拟模型生成与所述飞行控制指令对应的模拟数据,具体包括:The generating simulation data corresponding to the flight control instruction by the flight simulation model specifically includes:
通过所述飞行动力学模型生成与所述飞行控制指令对应的模拟飞行状态,所述模拟飞行状态由若干种模拟状态数据表示;Generating a simulated flight state corresponding to the flight control instruction through the flight dynamics model, and the simulated flight state is represented by several types of simulated state data;
将若干种所述模拟状态输入所述传感器模型;Inputting several kinds of said simulation states into said sensor model;
根据输入的所述模拟状态数据,通过所述传感器模型生成对应的若干种模拟检测数据。According to the input analog state data, several corresponding analog detection data are generated through the sensor model.
可选地,所述模拟状态数据包括模拟姿态角,模拟飞行轨迹以及动力装置的模拟输出;所述模拟检测数据包括定位模拟数据,视觉模拟数据,超声模拟数据,气压模拟数据,惯性测量单元模拟数据以及磁力计模拟数据。Optionally, the simulated state data includes simulated attitude angle, simulated flight trajectory, and simulated output of the power plant; the simulated detection data includes positioning simulation data, visual simulation data, ultrasonic simulation data, air pressure simulation data, and inertial measurement unit simulation Data and magnetometer simulation data.
可选地,所述将所述无人机接收到的飞行控制指令传输至预设的飞行模拟模型,具体包括:Optionally, the transmitting the flight control instructions received by the drone to a preset flight simulation model specifically includes:
将来自遥控设备的飞行控制指令转换为用于控制动力装置的控制信号;Convert flight control commands from remote control equipment into control signals for controlling the power plant;
向所述飞行模拟模型输入所述控制信号。The control signal is input to the flight simulation model.
可选地,所述通过所述飞行动力学模型,生成与所述飞行控制指令对应的,用于模拟所述无人机的飞行状态的若干种模拟状态数据,具体包括:Optionally, the generation of several types of simulation state data corresponding to the flight control instruction and used to simulate the flight state of the drone through the flight dynamics model specifically includes:
根据所述控制信号,计算所述动力装置的模拟输出;Calculating the analog output of the power plant according to the control signal;
根据所述动力装置的模拟输出,计算所述模拟姿态角;Calculating the simulated attitude angle according to the simulated output of the power plant;
根据所述模拟姿态角以及所述模拟输出,计算所述模拟飞行轨迹。Calculate the simulated flight trajectory according to the simulated attitude angle and the simulated output.
可选地,所述模拟姿态角包括模拟滚转角、模拟俯仰角以及模拟偏航角;Optionally, the simulated attitude angle includes a simulated roll angle, a simulated pitch angle, and a simulated yaw angle;
所述根据所述动力装置的模拟输出,计算所述模拟姿态角,具体包括:The calculating the simulated attitude angle according to the simulated output of the power plant specifically includes:
根据所述模拟输出,计算所述无人机的滚转轴控制力矩,俯仰轴控制力矩以及偏转轴控制力矩;According to the simulation output, calculate the control moment of the roll axis, the control moment of the pitch axis, and the control moment of the yaw axis of the UAV;
根据所述滚转轴控制力矩,俯仰轴控制力矩以及偏转轴控制力矩计算所 述滚转轴旋转角速度,俯仰轴旋转角速度以及偏转轴旋转角速度;Calculating the rotational angular velocity of the roll axis, the rotational angular velocity of the pitch axis and the rotational angular velocity of the yaw axis according to the control torque of the roll axis, the control torque of the pitch axis, and the control torque of the yaw axis;
根据所述滚转轴旋转角速度,俯仰轴旋转角速度以及偏转轴旋转角速度和转换矩阵,计算所述模拟滚转角、模拟俯仰角以及模拟偏航角。According to the rotational angular velocity of the roll axis, the rotational angular velocity of the pitch axis, the rotational angular velocity of the yaw axis, and the conversion matrix, the simulated roll angle, the simulated pitch angle, and the simulated yaw angle are calculated.
可选地,所述根据所述模拟姿态角以及所述模拟输出,计算所述模拟飞行轨迹,具体包括:Optionally, the calculating the simulated flight trajectory according to the simulated attitude angle and the simulated output specifically includes:
根据所述模拟姿态角以及所述模拟输出,计算所述无人机在机体坐标系中的模拟加速度;Calculating the simulated acceleration of the drone in the body coordinate system according to the simulated attitude angle and the simulated output;
对所述模拟加速度积分,获得在所述机体坐标系中的第一模拟速度;Integrate the simulated acceleration to obtain the first simulated speed in the body coordinate system;
通过旋转矩阵,将所述第一模拟速度转换为在地面坐标系中的第二模拟速度;Converting the first simulation speed into a second simulation speed in the ground coordinate system through a rotation matrix;
对所述第二模拟速度积分,获得所述无人机在地面坐标系中的位置信息。Integrate the second simulated speed to obtain the position information of the UAV in the ground coordinate system.
为解决上述技术问题,本发明实施例还提供以下技术方案:一种飞行模拟装置,包括:In order to solve the above technical problems, the embodiments of the present invention also provide the following technical solutions: A flight simulation device, including:
监测模块,用于实时监测是否出现模式切换指令;模式切换模块,用于在监测到所述模式切换指令时,锁定无人机的动力装置;飞行模拟模块,用于将所述无人机接收到的飞行控制指令传输至预设的飞行模拟模型;并且由所述飞行模拟模型生成与所述飞行控制指令对应的模拟数据;展示模块,用于基于所述模拟数据,展示所述无人机在所述飞行控制指令下的模拟飞行状态。The monitoring module is used to monitor in real time whether there is a mode switching command; the mode switching module is used to lock the power unit of the drone when the mode switching command is monitored; the flight simulation module is used to receive the drone The received flight control command is transmitted to a preset flight simulation model; and the simulation data corresponding to the flight control command is generated by the flight simulation model; the display module is used to display the UAV based on the simulation data The simulated flight state under the flight control instruction.
为解决上述技术问题,本发明实施例还提供以下技术方案:一种电子设备,包括:处理器以及与所述处理器通信连接的存储器;所述存储器中存储有计算机程序指令,所述计算机程序指令在被所述处理器调用时,以使所述处理器执行如上所述的飞行模拟方法。In order to solve the above technical problems, the embodiments of the present invention also provide the following technical solutions: an electronic device including: a processor and a memory communicatively connected with the processor; the memory stores computer program instructions, and the computer program When the instruction is called by the processor, the processor executes the flight simulation method as described above.
为解决上述技术问题,本发明实施例还提供以下技术方案:一种无人机,包括:In order to solve the above technical problems, the embodiments of the present invention also provide the following technical solutions: an unmanned aerial vehicle, including:
控制器,用于接收模式切换指令以及来自遥控设备的飞行控制指令,并且根据所述模式切换指令,切换所述无人机的运行模式,所述运行模式包括飞行模式和模拟模式;A controller for receiving a mode switching instruction and a flight control instruction from a remote control device, and switching the operation mode of the drone according to the mode switching instruction, the operation mode including a flight mode and a simulation mode;
动力装置,所述动力装置与所述控制器连接,用于在所述无人机处于飞 行模式时,输出与所述飞行控制指令相适配的动力;A power device, the power device is connected to the controller, and is used to output power that is compatible with the flight control command when the drone is in a flying mode;
飞行模拟器,所述飞行模拟器与所述控制器连接,用于在所述无人机处于模拟模式时,执行如上所述的飞行模拟方法,展示所述无人机在所述飞行控制指令下的模拟飞行状态。A flight simulator, where the flight simulator is connected to the controller, and is configured to execute the flight simulation method as described above when the drone is in a simulation mode, and show that the drone is in the flight control instruction Flight simulation status under.
可选地,当所述无人机被启动时,处于飞行模式;当监测到所述模式切换指令时,所述无人机的运行模式从飞行模式切换为模拟模式。Optionally, when the drone is activated, it is in the flight mode; when the mode switching instruction is monitored, the operation mode of the drone is switched from the flight mode to the simulation mode.
与现有技术相比较,本发明实施例的飞行模拟方法通过设置多种工作模式切换的方式,在不影响无人机正常使用的同时将模拟飞行功能整合在无人机上。用户可以在无人机上直接使用而不需要依赖其他的硬件设备,使用便利而且实现成本低廉,具有良好的应用前景。Compared with the prior art, the flight simulation method of the embodiment of the present invention integrates the flight simulation function on the drone without affecting the normal use of the drone by setting a variety of working mode switching methods. Users can use it directly on the drone without relying on other hardware devices, it is convenient to use and low in cost, and it has a good application prospect.
【附图说明】【Explanation of the drawings】
一个或多个实施例通过与之对应的附图中的图片进行示例性说明,这些示例性说明并不构成对实施例的限定,附图中具有相同参考数字标号的元件表示为类似的元件,除非有特别申明,附图中的图不构成比例限制。One or more embodiments are exemplified by the pictures in the corresponding drawings. These exemplified descriptions do not constitute a limitation on the embodiments. The elements with the same reference numerals in the drawings are denoted as similar elements. Unless otherwise stated, the figures in the attached drawings do not constitute a scale limitation.
图1为本发明实施例的飞行模拟方法的应用场景的示意图;FIG. 1 is a schematic diagram of an application scenario of a flight simulation method according to an embodiment of the present invention;
图2a为本发明实施例提供的无人机的结构框图;Figure 2a is a structural block diagram of an unmanned aerial vehicle provided by an embodiment of the present invention;
图2b为本发明实施例提供的飞行模拟模型的示意图;Figure 2b is a schematic diagram of a flight simulation model provided by an embodiment of the present invention;
图2c为本发明实施例提供的无人机的运行模式切换的流程示意图;Figure 2c is a schematic diagram of a flow chart of operating mode switching of a drone provided by an embodiment of the present invention;
图3为本发明实施例提供的飞行模拟装置的示意图;Figure 3 is a schematic diagram of a flight simulation device provided by an embodiment of the present invention;
图4为本发明实施例提供的飞行模拟方法的方法流程图;4 is a method flowchart of a flight simulation method provided by an embodiment of the present invention;
图5为本发明实施例提供的计算模拟状态数据的方法流程图;FIG. 5 is a flowchart of a method for calculating simulation state data provided by an embodiment of the present invention;
图6为本发明实施例提供的位置坐标计算过程的示意图;Fig. 6 is a schematic diagram of a position coordinate calculation process provided by an embodiment of the present invention;
图7为本发明实施例提供的电子设备的结果示意图。FIG. 7 is a schematic diagram of the result of an electronic device provided by an embodiment of the present invention.
【具体实施方式】【detailed description】
为了便于理解本发明,下面结合附图和具体实施例,对本发明进行更详细的说明。需要说明的是,当元件被表述“固定于”另一个元件,它可以直接在另一个元件上、或者其间可以存在一个或多个居中的元件。当一个元件被表述“连接”另一个元件,它可以是直接连接到另一个元件、或者其间可以存在一 个或多个居中的元件。本说明书所使用的术语“上”、“下”、“内”、“外”、“底部”等指示的方位或位置关系为基于附图所示的方位或位置关系,仅是为了便于描述本发明和简化描述,而不是指示或暗示所指的装置或元件必须具有特定的方位、以特定的方位构造和操作,因此不能理解为对本发明的限制。此外,术语“第一”、“第二”“第三”等仅用于描述目的,而不能理解为指示或暗示相对重要性。In order to facilitate the understanding of the present invention, the present invention will be described in more detail below with reference to the accompanying drawings and specific embodiments. It should be noted that when an element is expressed as being "fixed to" another element, it can be directly on the other element, or there can be one or more elements in between. When an element is said to be "connected" to another element, it can be directly connected to the other element, or there may be one or more intervening elements in between. The terms "upper", "lower", "inner", "outer", "bottom", etc. used in this specification indicate the orientation or positional relationship based on the orientation or positional relationship shown in the drawings, and are only used to facilitate the description of the present invention. The invention and simplified description do not indicate or imply that the pointed device or element must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation of the present invention. In addition, the terms "first", "second", "third", etc. are only used for descriptive purposes, and cannot be understood as indicating or implying relative importance.
除非另有定义,本说明书所使用的所有的技术和科学术语与属于本发明的技术领域的技术人员通常理解的含义相同。本说明书中在本发明的说明书中所使用的术语只是为了描述具体的实施例的目的,不是用于限制本发明。本说明书所使用的术语“和/或”包括一个或多个相关的所列项目的任意的和所有的组合。Unless otherwise defined, all technical and scientific terms used in this specification have the same meaning as commonly understood by those skilled in the technical field of the present invention. The terms used in the specification of the present invention in this specification are only for the purpose of describing specific embodiments, and are not used to limit the present invention. The term "and/or" used in this specification includes any and all combinations of one or more related listed items.
此外,下面所描述的本发明不同实施例中所涉及的技术特征只要彼此之间未构成冲突就可以相互结合。In addition, the technical features involved in the different embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.
飞行模拟是指通过软件程序和/或硬件设备的配合,重现真实的飞行场景并逼真的还原各项飞行操作,用以实现学习飞行或者体验飞行等。Flight simulation refers to the use of software programs and/or hardware equipment to reproduce real flight scenes and realistically restore various flight operations to achieve learning to fly or experience flight, etc.
图1为本发明实施例提供的飞行模拟方法的应用场景。如图1所示,在该应用场景中,包括了无人机10、遥控设备20、智能终端30以及无线网络40。Fig. 1 is an application scenario of a flight simulation method provided by an embodiment of the present invention. As shown in FIG. 1, in this application scenario, a drone 10, a remote control device 20, a smart terminal 30, and a wireless network 40 are included.
无人机10可以是以任何类型的动力驱动的无人飞行载具,包括但不限于四轴无人机、固定翼飞行器以及直升机模型等。其可以根据实际情况的需要,具备相应的体积或者动力,从而提供能够满足使用需要的载重能力、飞行速度以及飞行续航里程等。The drone 10 may be an unmanned aerial vehicle driven by any type of power, including but not limited to a four-axis drone, a fixed-wing aircraft, and a helicopter model. It can be equipped with the corresponding volume or power according to the needs of the actual situation, so as to provide the load capacity, flight speed and flight mileage that can meet the needs of use.
当然,无人机10上还可以添加有一种或者多种功能模块,令无人机能够实现相应的功能,满足不同场景下的使用需求,包括但不限于各类传感器设备,例如,航拍相机。其作为无人机上搭载的其中一种功能模块,可以通过云台等安装固定支架,安装固定在无人机上,并受控于无人机10,执行图像采集的任务。Of course, one or more functional modules may be added to the UAV 10 to enable the UAV to implement corresponding functions and meet the use requirements in different scenarios, including but not limited to various sensor devices, such as aerial cameras. As one of the functional modules carried on the drone, it can be installed and fixed on the drone through a fixed bracket such as a pan/tilt, and controlled by the drone 10 to perform image collection tasks.
遥控设备20是与无人机10配套使用的,处于用户侧,用于供用户或者操作者发出飞行控制指令,并反馈无人机10相关飞行信息的交互设备。遥控设备20可以设置有一种或者多种交互装置,包括但不限于摇杆、按键以及触 摸屏等。The remote control device 20 is used in conjunction with the drone 10 and is on the user side, and is an interactive device for the user or operator to issue flight control instructions and feed back relevant flight information of the drone 10. The remote control device 20 may be provided with one or more interactive devices, including but not limited to joysticks, keys, and touch screens.
智能终端30可以是任何类型,用以与无人机建立通信连接的智能设备,例如手机、平板电脑或者智能遥控器等。该智能终端30可以装配有一种或者多种不同的用户交互装置,用以采集用户指令或者向用户展示和反馈信息。The smart terminal 30 may be any type of smart device used to establish a communication connection with the drone, such as a mobile phone, a tablet computer, or a smart remote control. The smart terminal 30 may be equipped with one or more different user interaction devices to collect user instructions or display and feedback information to the user.
这些交互装置包括但不限于:按键、显示屏、触摸屏以及扬声器。例如,智能终端30可以装配有触控显示屏,通过该触控显示屏接收用户对无人机的遥控指令并通过触控显示屏向用户展示由航拍相机获得的图像信息。These interactive devices include but are not limited to: buttons, display screens, touch screens, and speakers. For example, the smart terminal 30 may be equipped with a touch display screen, through which the user's remote control instructions for the drone are received and the image information obtained by the aerial camera is displayed to the user through the touch display screen.
在一些实施例中,无人机10与遥控设备20或者智能终端30之间还可以融合现有的图像视觉处理技术,进一步的提供更智能化的服务。例如无人机10可以通过航拍相机采集图像,然后由智能终端30对图像中的操作手势进行解析,最终实现用户对于无人机10的手势控制。当然,根据实际情况的需要,智能终端30可以和遥控设备20同时配合使用,也可以单独使用。In some embodiments, the unmanned aerial vehicle 10 and the remote control device 20 or the smart terminal 30 may also be integrated with existing image visual processing technologies to further provide more intelligent services. For example, the drone 10 can collect images through an aerial camera, and then the smart terminal 30 analyzes the operation gestures in the image, and finally realizes the user's gesture control of the drone 10. Of course, according to actual needs, the smart terminal 30 can be used in conjunction with the remote control device 20 at the same time, or can be used alone.
无线网络40可以是基于任何类型的数据传输原理,用于建立两个节点之间的数据传输信道的无线通信网络,例如位于特定信号频段的蓝牙网络、WiFi网络、无线蜂窝网络或者其结合。The wireless network 40 may be a wireless communication network based on any type of data transmission principle for establishing a data transmission channel between two nodes, such as a Bluetooth network located in a specific signal frequency band, a WiFi network, a wireless cellular network, or a combination thereof.
应当说明的是,图1所示的应用场景仅用于示例性说明。本领域技术人员可以根据实际情况的需要,添加或者减省其中的一个或者多个设备,而不限于图1所示。It should be noted that the application scenario shown in FIG. 1 is only for exemplary description. Those skilled in the art can add or subtract one or more of the devices according to actual needs, and are not limited to those shown in FIG. 1.
图2a为本发明实施例提供的无人机10的结构框图。如图2a所示,该无人机10可以包括:控制器110,动力装置120以及飞行模拟器130。FIG. 2a is a structural block diagram of the unmanned aerial vehicle 10 provided by an embodiment of the present invention. As shown in FIG. 2a, the drone 10 may include a controller 110, a power device 120, and a flight simulator 130.
其中,控制器110是无人机10的飞行控制核心。其具有逻辑运算能力,能够基于内部存储的计算机程序执行一系列的运算步骤并输出对应的指令信息,用于控制无人机10,使其能够响应操作者的指令。Among them, the controller 110 is the core of the flight control of the drone 10. It has the ability of logical operation, can execute a series of operation steps based on the internally stored computer program and output corresponding instruction information, which is used to control the drone 10 so that it can respond to the instructions of the operator.
动力装置120是用于为无人机提供飞行动力的驱动组件。其受控于控制器110,根据控制器110的指令信息输出合适的动力。该动力装置具体可以基于任何类型动力源而构建。The power unit 120 is a driving component used to provide flight power for the drone. It is controlled by the controller 110, and outputs appropriate power according to the command information of the controller 110. The power plant can be constructed based on any type of power source.
典型的,该动力装置120可以是基于电力而构建,由提供电源的电池,将电能转换为动力输出的电动机以及将输出动力改变为飞机升力的螺旋桨等组成。Typically, the power device 120 may be constructed based on electricity, and consist of a battery that provides power, an electric motor that converts electrical energy into power output, and a propeller that changes the output power into aircraft lift.
飞行模拟器130是内置整合在无人机10中的,用于提供模拟飞行功能的 功能模块。在飞行模拟器130内预先设置有若干与无人机10的运行参数相适配的模拟模型,从而生成并向用户展示在特定飞行控制指令下的模拟飞行状态。The flight simulator 130 is built-in and integrated in the UAV 10 to provide functional modules for simulating flight functions. A number of simulation models adapted to the operating parameters of the UAV 10 are preset in the flight simulator 130, so as to generate and show the user a simulated flight state under a specific flight control instruction.
在一些实施例中,为满足稳定操作的需要,如图2a所示,无人机10还可以包括若干传感器设备140,用以满足不同的使用需求。所述传感器设备包括但不限于气压计、GPS定位系统,视觉采集设备,超声设备、惯性测量单元以及磁力计等。In some embodiments, to meet the needs of stable operation, as shown in FIG. 2a, the drone 10 may further include several sensor devices 140 to meet different usage requirements. The sensor equipment includes, but is not limited to, barometers, GPS positioning systems, visual acquisition equipment, ultrasound equipment, inertial measurement units, magnetometers, etc.
相对应地,飞行模拟器130也内置有与无人机10的传感器设备相对应的传感器模型,用以模拟生成与真实飞行过程中相同种类的传感器数据。Correspondingly, the flight simulator 130 also has a built-in sensor model corresponding to the sensor device of the drone 10 to simulate and generate the same type of sensor data as in the real flight process.
图2b为本发明实施例提供的预设的模拟模型的结构示意图。如图2b所示,飞行模拟器130中使用的模拟模型可以包括:飞行动力学模型以及传感器模型两种。Figure 2b is a schematic structural diagram of a preset simulation model provided by an embodiment of the present invention. As shown in FIG. 2b, the simulation model used in the flight simulator 130 may include: a flight dynamics model and a sensor model.
其中,飞行动力学模型包括电机动力学模型131,飞行转动动力学模型132以及飞行平动动力学模型133。而传感器模型则可以包括GPS模型134、视觉模型135、超声模型136、气压计模型137、惯性测量单元(IMU)模型138以及磁力计模型139。Among them, the flight dynamics model includes a motor dynamics model 131, a flight rotation dynamics model 132, and a flight translation dynamics model 133. The sensor model may include a GPS model 134, a vision model 135, an ultrasound model 136, a barometer model 137, an inertial measurement unit (IMU) model 138, and a magnetometer model 139.
以下结合图2b,详细描述各个模拟模型的具体实现方式以及输入/输出的数据信息。The specific implementation of each simulation model and the input/output data information will be described in detail below in conjunction with FIG. 2b.
1)关于电机动力学模型131:1) Regarding the motor dynamics model 131:
如图2b所示,电机动力学模型131的输入为控制信号(PWM信号),输出为电机出力。电机动力学模型131具体使用如下算式(1)所示的传递函数模拟电动机在特定PWM信号下的输出:As shown in Fig. 2b, the input of the motor dynamics model 131 is the control signal (PWM signal), and the output is the motor output. The motor dynamics model 131 specifically uses the transfer function shown in the following formula (1) to simulate the output of the motor under a specific PWM signal:
Figure PCTCN2021101519-appb-000001
Figure PCTCN2021101519-appb-000001
其中,L(s)为电动机输出的力,pwm(s)为输入的PWM控制信号,K为增益,s为拉普拉斯算子,τ为电机的时间常数。Among them, L(s) is the force output by the motor, pwm(s) is the input PWM control signal, K is the gain, s is the Laplace operator, and τ is the time constant of the motor.
2)关于飞行转动动力学模型132:2) Regarding the flight rotation dynamics model 132:
如图2b所示,飞行转动动力学模型132的输入为电机的输出,而输出为无人机的姿态角。As shown in Fig. 2b, the input of the flight rotation dynamics model 132 is the output of the motor, and the output is the attitude angle of the UAV.
飞行转动动力学模型132具体可以通过如下算式(2-1)和(2-2)所示的数学模型,通过实时迭代计算获得姿态角:The flight rotation dynamics model 132 can specifically obtain the attitude angle through real-time iterative calculations through the mathematical models shown in the following equations (2-1) and (2-2):
Figure PCTCN2021101519-appb-000002
Figure PCTCN2021101519-appb-000002
Figure PCTCN2021101519-appb-000003
Figure PCTCN2021101519-appb-000003
其中,φ、θ、ψ分别为滚转角、俯仰角和偏航角,ω x、ω y、ω z分别为无人机的三轴旋转角速度,M x、M y、M z为无人机的三轴控制力矩,矩阵A通过如下算式(2-3)表示: Among them, φ, θ, ψ are roll angle, pitch angle and yaw angle, ω x , ω y , ω z are the three-axis rotation angular velocity of the drone, M x , M y , M z are the drone The three-axis control torque of, matrix A is expressed by the following formula (2-3):
Figure PCTCN2021101519-appb-000004
Figure PCTCN2021101519-appb-000004
而无人机的三轴控制力矩可以通过动力装置中多个不同的电机转速差计算获得。具体而言,三轴控制力矩可以通过如下算式(2-4)计算获得:The three-axis control torque of the unmanned aerial vehicle can be calculated from the speed difference of multiple different motors in the power plant. Specifically, the three-axis control torque can be calculated by the following formula (2-4):
Figure PCTCN2021101519-appb-000005
Figure PCTCN2021101519-appb-000005
其中,M为分配矩阵,L为力臂向量,F为电机的拉力向量。Among them, M is the distribution matrix, L is the force arm vector, and F is the pulling force vector of the motor.
3)关于飞行平动动力学模型133:3) Regarding flight translational dynamics model 133:
如图2b所示,飞行平动动力学模型133的输入为电机的拉力和姿态角,通过算式(3-2)计算得到无人机在机体坐标系下的三轴加速度,三轴加速度积分后可以获得机体坐标系下的三轴速度。机体坐标系下的三轴速度可以通过算式(3-1),转换为地面坐标系下的三轴速度,对其进行积分后,即可输出无人机在地面坐标系中的位置坐标。As shown in Figure 2b, the input of the flight translational dynamics model 133 is the pull force and attitude angle of the motor. The three-axis acceleration of the UAV in the body coordinate system is calculated by equation (3-2). After the three-axis acceleration is integrated The three-axis speed in the body coordinate system can be obtained. The three-axis speed in the airframe coordinate system can be converted to the three-axis speed in the ground coordinate system through equation (3-1), and after integrating it, the position coordinates of the drone in the ground coordinate system can be output.
飞行平动动力学模型133具体通过如下所示的算式(3-1)至(3-2)计算获得无人机的位置坐标:The flight translational dynamics model 133 specifically calculates the position coordinates of the UAV through the following formulas (3-1) to (3-2):
Figure PCTCN2021101519-appb-000006
Figure PCTCN2021101519-appb-000006
Figure PCTCN2021101519-appb-000007
Figure PCTCN2021101519-appb-000007
其中,x,y,z为无人机在地面坐标系(在本实施例中称为O系)中的位置坐标;Vx,Vy,Vz为无人机在O系中的速度;V xG,V yG,V zG为机体坐标系(在本实施例中称为G系,即x沿着机头指向前方,y在水平面内垂直机头指向右方,z竖直向下)下的速度;T为无人机电机的拉力总和,m为飞机质量。 Among them, x, y, z are the position coordinates of the drone in the ground coordinate system (referred to as the O system in this embodiment); Vx, Vy, Vz are the speed of the drone in the O system; V xG , V yG , V zG are the speeds in the body coordinate system (referred to as the G system in this embodiment, that is, x points forward along the nose, y points to the right perpendicular to the nose in the horizontal plane, and z vertically downwards); T is the sum of the pulling force of the UAV motor, and m is the mass of the aircraft.
Figure PCTCN2021101519-appb-000008
是从G系转换到O系的旋转矩阵,具体通过如下算式(3-3)表示:
Figure PCTCN2021101519-appb-000008
Is the rotation matrix converted from the G system to the O system, which is specifically expressed by the following formula (3-3):
Figure PCTCN2021101519-appb-000009
Figure PCTCN2021101519-appb-000009
4)关于GPS模型134:4) Regarding GPS model 134:
如图2b所示,GPS模型134的输入为飞行动力学模型模拟计算得出的无人机的速度和位置,用户输入的初始海拔高度以及GPS噪声。GPS模型134的输出包括位置、海拔高度、经纬度以及信号质量等数据。As shown in Fig. 2b, the inputs of the GPS model 134 are the speed and position of the drone calculated by the flight dynamics model simulation, the initial altitude input by the user, and the GPS noise. The output of the GPS model 134 includes data such as position, altitude, latitude and longitude, and signal quality.
GPS模型具体可以由如下所示的算式(4-1)至(4-5)构成:The GPS model can be specifically composed of the following equations (4-1) to (4-5):
Figure PCTCN2021101519-appb-000010
Figure PCTCN2021101519-appb-000010
Figure PCTCN2021101519-appb-000011
Figure PCTCN2021101519-appb-000011
h GPS=-z+h sea+w hGPS   (4-3) h GPS =-z+h sea +w hGPS (4-3)
hAcc=std(w hGPS)  (4-4) hAcc=std(w hGPS ) (4-4)
Figure PCTCN2021101519-appb-000012
Figure PCTCN2021101519-appb-000012
w v(.)GPS为GPS速度模拟噪声,sAcc为GPS的速度精度因子,w hGPS为GPS高度模拟噪声,h sea为飞机初始海拔高度,hAcc为GPS的高度精度因子,
Figure PCTCN2021101519-appb-000013
为飞机当前的经纬度;
Figure PCTCN2021101519-appb-000014
为飞机初始的经纬度;f(x,y)为将无人机位置转 换为经纬度的函数,可以直接从标准函数库中调用。
w v(.) GPS is the GPS speed simulation noise, sAcc is the GPS speed accuracy factor, w hGPS is the GPS height simulation noise, h sea is the initial altitude of the aircraft, hAcc is the GPS altitude accuracy factor,
Figure PCTCN2021101519-appb-000013
Is the current longitude and latitude of the aircraft;
Figure PCTCN2021101519-appb-000014
Is the initial latitude and longitude of the aircraft; f(x,y) is the function that converts the UAV's position to latitude and longitude, which can be called directly from the standard function library.
5)关于视觉模型135:5) Regarding the visual model 135:
如图2b所示,视觉模型135的输入为行动力学模型模拟计算得出的无人机的速度,超声高度测量值以及视觉噪声。视觉模型135的输出则包括速度及其信号质量。As shown in Fig. 2b, the input of the visual model 135 is the speed of the UAV, the measured value of ultrasonic height and the visual noise calculated by the simulation and calculation of the travel dynamics model. The output of the visual model 135 includes the speed and its signal quality.
视觉模型135具体由如下算式(5-1)至(5-2)构成:The visual model 135 is specifically composed of the following formulas (5-1) to (5-2):
Figure PCTCN2021101519-appb-000015
Figure PCTCN2021101519-appb-000015
Figure PCTCN2021101519-appb-000016
Figure PCTCN2021101519-appb-000016
其中,w v(.)VIO为视觉模拟噪声,q VIO为视觉的信号质量。 Among them, w v(.)VIO is the visual analog noise, and q VIO is the visual signal quality.
6)关于超声模型136:6) Regarding the ultrasound model 136:
如图2b所示,超声模型136的输入包括飞行动力学模型模拟计算得出的无人机的速度以及超声波噪声,其输出为超声高度测量值。As shown in FIG. 2b, the input of the ultrasonic model 136 includes the speed of the drone and the ultrasonic noise calculated by the flight dynamics model simulation, and the output is the ultrasonic height measurement value.
超声模型136具体由如下算式(6-1)构成:The ultrasound model 136 is specifically composed of the following formula (6-1):
Figure PCTCN2021101519-appb-000017
Figure PCTCN2021101519-appb-000017
其中,w sonar为超声噪声,h sonar为超声测量高度。 Among them, w sonar is ultrasonic noise, and h sonar is ultrasonic measurement height.
7)关于气压计模型137:7) Regarding the barometer model 137:
如图2b所示,气压计模型137的输入包括行动力学模型模拟计算得出的无人机的位置、用户输入的初始海拔高度以及超声模型计算得出的超声高度。其进行模拟时,还可以进一步考虑模拟的气压计噪声,输出模拟的海拔高度。As shown in FIG. 2b, the input of the barometer model 137 includes the position of the drone calculated by the travel dynamics model, the initial altitude input by the user, and the ultrasonic height calculated by the ultrasonic model. During the simulation, the simulated barometer noise can be further considered, and the simulated altitude is output.
气压计模型137可以由如下算式(7-1)构成:The barometer model 137 can be composed of the following formula (7-1):
Figure PCTCN2021101519-appb-000018
Figure PCTCN2021101519-appb-000018
其中,w baro1和w baro2为气压计不同高度的噪声,h baro为气压计测量海拔高度。 Among them, w baro1 and w baro2 are the noises of the barometer at different heights, and h baro is the barometer to measure the altitude.
8)关于惯性测量单元(IMU)模型138:8) Regarding the inertial measurement unit (IMU) model 138:
如图2b所示,惯性测量单元(IMU)模型138需要从飞行动力学模型中取出速度和角速度信息,并结合考虑陀螺仪、加速度计噪声以及陀螺仪、加速度计偏移,据此输出惯性测量单元(IMU)的模拟测量值。As shown in Figure 2b, the inertial measurement unit (IMU) model 138 needs to extract speed and angular velocity information from the flight dynamics model, and take into account the gyroscope, accelerometer noise, and gyroscope and accelerometer offsets, and output inertial measurements accordingly. The analog measurement value of the unit (IMU).
惯性测量单元(IMU)模型可以由如下算式(8-1)和(8-2)构成:The inertial measurement unit (IMU) model can be composed of the following equations (8-1) and (8-2):
Figure PCTCN2021101519-appb-000019
Figure PCTCN2021101519-appb-000019
Figure PCTCN2021101519-appb-000020
Figure PCTCN2021101519-appb-000020
其中,
Figure PCTCN2021101519-appb-000021
为模拟陀螺仪角速度测量输出,
Figure PCTCN2021101519-appb-000022
为模拟加速度计的加速度测量输出,
Figure PCTCN2021101519-appb-000023
为陀螺仪噪声,
Figure PCTCN2021101519-appb-000024
为陀螺仪bias偏移,
Figure PCTCN2021101519-appb-000025
为加速度计噪声,
Figure PCTCN2021101519-appb-000026
为加速度计bias偏移,
Figure PCTCN2021101519-appb-000027
为机体系下速度的一阶导数。
in,
Figure PCTCN2021101519-appb-000021
For analog gyroscope angular velocity measurement output,
Figure PCTCN2021101519-appb-000022
To simulate the acceleration measurement output of an accelerometer,
Figure PCTCN2021101519-appb-000023
Is the gyro noise,
Figure PCTCN2021101519-appb-000024
Is the bias offset of the gyroscope,
Figure PCTCN2021101519-appb-000025
Is the accelerometer noise,
Figure PCTCN2021101519-appb-000026
Is the accelerometer bias offset,
Figure PCTCN2021101519-appb-000027
Is the first derivative of the velocity in the machine system.
9)关于磁力计模型139:9) Regarding the magnetometer model 139:
如图2b所示,基于GPS模型134输出的经纬度数据信息,可以由全球磁场分布标准模型中获取对应的标准磁场。该标准磁场、软磁干扰、飞行转动动力学提供的姿态角作为磁力计模型139的输入,使其计算得出模拟的磁力计测量值。As shown in FIG. 2b, based on the latitude and longitude data information output by the GPS model 134, the corresponding standard magnetic field can be obtained from the global magnetic field distribution standard model. The attitude angle provided by the standard magnetic field, soft magnetic interference, and flight rotation dynamics is used as the input of the magnetometer model 139 to make it calculate the simulated magnetometer measurement value.
该磁力计模型139具体由如下算式(9-1)构成:The magnetometer model 139 is specifically composed of the following formula (9-1):
Figure PCTCN2021101519-appb-000028
Figure PCTCN2021101519-appb-000028
其中,
Figure PCTCN2021101519-appb-000029
为当前标准磁场的三轴分量,其可以由国际上公布的全球磁场分布标准模型来确定,只需要输入无人机当前的经纬度
Figure PCTCN2021101519-appb-000030
即可;
Figure PCTCN2021101519-appb-000031
为模拟磁力计的测量输出值,
Figure PCTCN2021101519-appb-000032
为软磁干扰,
Figure PCTCN2021101519-appb-000033
为硬磁干扰。
in,
Figure PCTCN2021101519-appb-000029
It is the three-axis component of the current standard magnetic field, which can be determined by the internationally published standard model of global magnetic field distribution. It only needs to input the current longitude and latitude of the UAV
Figure PCTCN2021101519-appb-000030
Can
Figure PCTCN2021101519-appb-000031
Is the measured output value of the analog magnetometer,
Figure PCTCN2021101519-appb-000032
Is soft magnetic interference,
Figure PCTCN2021101519-appb-000033
It is hard magnetic interference.
Figure PCTCN2021101519-appb-000034
为O坐标系到B坐标(即机体坐标系)的转换矩阵,通过如下算式(9-2)表示:
Figure PCTCN2021101519-appb-000034
It is the conversion matrix from the O coordinate system to the B coordinate (ie, the body coordinate system), expressed by the following formula (9-2):
Figure PCTCN2021101519-appb-000035
Figure PCTCN2021101519-appb-000035
在实际使用过程中,内置有预设的飞行模拟器的无人机10具有飞行模式和模拟模式两种不同的运行模式。In actual use, the drone 10 with a preset flight simulator has two different operating modes: a flight mode and a simulation mode.
其中,飞行模式是无人机10的正常工作模式,与一般的无人机使用无异,均由控制器接收飞行控制指令,然后输出相应的数据信息控制动力装置输出合适的动力,令无人机能够正确的响应飞行控制指令。Among them, the flight mode is the normal working mode of the UAV 10, which is no different from the general UAV. The controller receives the flight control instructions, and then outputs the corresponding data information to control the power device to output appropriate power, so that the unmanned The aircraft can correctly respond to flight control commands.
而模拟模式则可以为操作者或者用户提供模拟飞行的功能,使其能够获得对无人机10的仿真操作体验,供用户学习或者试用,避免真机操作带来的一系列问题。The simulation mode can provide an operator or user with a flight simulation function, so that they can obtain a simulation operation experience of the UAV 10 for users to learn or try, and avoid a series of problems caused by real machine operation.
飞行模式和模拟模式之间的切换由模式切换指令来控制。模式切换指令具体可以是任何形式的,由用户发出的一个或者多个操作动作。The switching between the flight mode and the simulation mode is controlled by the mode switching command. The mode switching instruction may be in any form, and one or more operation actions issued by the user.
在一些实施例中,无人机10默认的运行模式可以为飞行模式。亦即,在无人机被启动以后,将处于飞行模式。只有当监测到出现模式切换指令时,才将运行模式切换至模拟模式。In some embodiments, the default operation mode of the drone 10 may be the flight mode. That is, after the drone is activated, it will be in flight mode. Only when the mode switching command is detected, the operation mode is switched to the simulation mode.
图2c为本发明实施例提供的无人机10在不同工作模式下的工作过程。如图2c所示,在无人机10中还包括一个用于对模式切换指令进行监测的监听进程150,模式切换进程160以及状态切换进程170。FIG. 2c is a working process of the UAV 10 provided by an embodiment of the present invention in different working modes. As shown in FIG. 2c, the UAV 10 also includes a monitoring process 150, a mode switching process 160, and a state switching process 170 for monitoring mode switching instructions.
其中,监听进程150用于在监听到模式切换指令时,发出相应的脉冲信号。模式切换进程160用于在接收到脉冲信号时,将飞行模式切换至模拟模式。状态切换进程170是向控制器110反馈传感器信息的通道,其在飞行模式时,选择反馈真实传感器采集的数据,而在模拟模式下,则反馈传感器模型提供的数据。Wherein, the monitoring process 150 is used to send a corresponding pulse signal when the mode switching instruction is monitored. The mode switching process 160 is used to switch the flight mode to the simulation mode when the pulse signal is received. The state switching process 170 is a channel for feeding back sensor information to the controller 110. In the flight mode, it chooses to feed back the data collected by the real sensor, and in the simulation mode, it feeds back the data provided by the sensor model.
在无人机10上电后,监听进程150在没有监听到模式切换指令时,无人机10的工作模式将处于默认的飞行模式。After the drone 10 is powered on, when the monitoring process 150 does not monitor the mode switching instruction, the working mode of the drone 10 will be in the default flight mode.
此时,飞行模拟器130处于关闭的状态,控制器110根据遥控指令生成的控制信号传输至动力装置120,驱动无人机飞行。状态切换进程170则将部署在无人机上的真实传感器采集的数据反馈至控制器110。At this time, the flight simulator 130 is in a closed state, and the control signal generated by the controller 110 according to the remote control instruction is transmitted to the power device 120 to drive the drone to fly. The state switching process 170 feeds back the data collected by the real sensors deployed on the drone to the controller 110.
而当监听进程150监测到模式切换指令后,可以向模式切换进程160发送相应的脉冲信号。模式切换进程160据此将飞行模式切换至模拟模式。When the monitoring process 150 detects the mode switching instruction, it can send a corresponding pulse signal to the mode switching process 160. The mode switching process 160 switches the flight mode to the simulation mode accordingly.
此时,动力装置120则处于锁定状态,飞行控制器110根据遥控指令生成的控制信号传输至飞行模拟器130的飞行动力学模型中,飞行动力学模型据此生成相关模拟数据(如速度、位置以及姿态角等相关状态信息)。At this time, the power unit 120 is in the locked state, and the control signal generated by the flight controller 110 according to the remote control command is transmitted to the flight dynamics model of the flight simulator 130, and the flight dynamics model generates relevant simulation data (such as speed, position). And related state information such as attitude angle).
生成的模拟数据进一步的被提供至各个传感器模型,计算得出在该模拟飞行状态下的模拟传感器检测信息并通过状态切换进程170向飞行控制器110反馈。The generated simulation data is further provided to each sensor model, and the simulated sensor detection information in the simulated flight state is calculated and fed back to the flight controller 110 through the state switching process 170.
应当说明的是,在不矛盾的情况下,图2a至图2c所示的无人机10的一个或者多个功能模组(如飞行控制器和飞行模拟器)所执行的功能也可以被移动或者整合到另一个功能模组中实现。图2中仅对所述无人机10的功能模块进行示例性描述,而不用于限制无人机10所具有的功能模组。It should be noted that, provided that there is no contradiction, the functions performed by one or more functional modules (such as flight controllers and flight simulators) of the UAV 10 shown in FIGS. 2a to 2c can also be moved Or it can be integrated into another functional module. FIG. 2 only exemplarily describes the functional modules of the drone 10 and is not used to limit the functional modules of the drone 10.
图3为本发明实施例提供的飞行模拟装置的结构框图。该飞行模拟装置可以由上述的飞行模拟器所执行。本领域技术人员可以理解的是,图3所示的模块可以根据实际情况的需要,选择性的通过软件、硬件或者软件和硬件相结合的方式来实现。Fig. 3 is a structural block diagram of a flight simulation device provided by an embodiment of the present invention. The flight simulation device can be executed by the above-mentioned flight simulator. Those skilled in the art can understand that the modules shown in FIG. 3 can be selectively implemented through software, hardware, or a combination of software and hardware according to actual needs.
如图3所示,该飞行模拟装置300包括:监测模块310、模式切换模块 320、飞行模拟模块330以及展示模块340。As shown in FIG. 3, the flight simulation device 300 includes a monitoring module 310, a mode switching module 320, a flight simulation module 330, and a display module 340.
其中,监测模块310用于实时监测是否出现模式切换指令。模式切换指令是用于表示切换无人机的运行模式的用户需求的指令信息。其监测的时间段是在无人机启动后,起飞前之间的时间段。监测模块310具体可以通过任何合适的方式实现,例如通过自动唤醒的进程来实现。Among them, the monitoring module 310 is used to monitor in real time whether a mode switching instruction occurs. The mode switching instruction is instruction information used to indicate user needs for switching the operating mode of the drone. The monitoring time period is the time period between after the drone is started and before takeoff. The monitoring module 310 can be implemented in any suitable manner, for example, through an automatic wake-up process.
模式切换模块320用于在监测到所述模式切换指令时,锁定无人机的动力装置。“锁定”是指暂停动力装置的运行,使其处于关闭状态而不响应任何的数据指令。The mode switching module 320 is used to lock the power device of the drone when the mode switching instruction is monitored. "Locking" refers to suspending the operation of the power plant so that it is in a closed state without responding to any data commands.
通过对动力装置的锁定可以保持无人机10不会在模拟状态下错误的起飞而造成的不利后果。锁定可以通过多种方式实现,例如切断电源供应,数据传输通道等,只需要使动力装置处于关闭状态即可。By locking the power unit, the unmanned aerial vehicle 10 can be prevented from taking off in a simulated state and causing adverse consequences. Locking can be achieved in many ways, such as cutting off the power supply, data transmission channels, etc., just by turning off the power unit.
飞行模拟模块330用于将所述无人机接收到的飞行控制指令传输至预设的飞行模拟模型,并且由所述飞行模拟模型生成与所述飞行控制指令对应的模拟数据。The flight simulation module 330 is configured to transmit the flight control instructions received by the drone to a preset flight simulation model, and generate simulation data corresponding to the flight control instructions from the flight simulation model.
“飞行模拟模型”是通过数学运算等建立的,用以预测无人机10在特定飞行控制指令下所产生的,与飞行状态相关的数据信息。基于这些模拟的数据信息可以为操作者或者用户还原或者模拟真实的无人机飞行场景和飞行感受。The "flight simulation model" is established through mathematical operations, etc., to predict the data information related to the flight state generated by the UAV 10 under specific flight control instructions. Based on these simulated data information, the operator or user can restore or simulate the real drone flight scene and flight experience.
具体采用的飞行模拟模型可以根据无人机的相关参数和实际使用需要而预先在无人机10内设置。The specific flight simulation model used can be set in the UAV 10 in advance according to the relevant parameters of the UAV and actual use needs.
在一些实施例中,所述飞行模拟模型可以包括飞行动力学模型以及传感器模型两大类。其中,飞行动力学模型用于模拟所述无人机的飞行状态,而传感器模型则用于模拟所述无人机的传感器检测数据。In some embodiments, the flight simulation model may include two categories: flight dynamics model and sensor model. Among them, the flight dynamics model is used to simulate the flight state of the drone, and the sensor model is used to simulate the sensor detection data of the drone.
相对应地,飞行模拟模块330在提供模拟数据时,首先通过所述飞行动力学模型生成与所述飞行控制指令对应的模拟飞行状态。然后,再将多种表示所述模拟飞行状态的模拟状态数据输入到一个或者多个所述传感器模型中。最后,由所述传感器模型根据输入的所述模拟状态数据,生成对应的若干种模拟检测数据。Correspondingly, when the flight simulation module 330 provides simulation data, it first generates a simulated flight state corresponding to the flight control instruction through the flight dynamics model. Then, multiple types of simulated state data representing the simulated flight state are input into one or more of the sensor models. Finally, the sensor model generates several corresponding analog detection data according to the input simulation state data.
例如,如图2b所示,所述传感器模型可以包括GPS模型、视觉模型、超 声模型、气压计模型、惯性测量单元(IMU)模型以及磁力计模型。For example, as shown in Fig. 2b, the sensor model may include a GPS model, a vision model, an ultrasound model, a barometer model, an inertial measurement unit (IMU) model, and a magnetometer model.
在另一些实施例中,向飞行模拟模型输入的数据信息可以是与提供给动力装置相同的控制信号。亦即,来自遥控设备的飞行控制指令可以先被转换为用于控制动力装置的控制信号。当无人机处于飞行模式时,控制信号被提供至动力装置,而当无人机处于模拟模式时,则被提供至飞行模拟模型。In other embodiments, the data information input to the flight simulation model may be the same control signal provided to the power plant. That is, the flight control command from the remote control device can first be converted into a control signal for controlling the power plant. When the drone is in flight mode, the control signal is provided to the power unit, and when the drone is in the simulation mode, it is provided to the flight simulation model.
展示模块340是后处理模块。其可以基于所述模拟数据,在智能终端30或者遥控设备20上展示所述无人机在所述飞行控制指令下的模拟飞行状态。具体的模拟飞行状态展示形式可以预先由技术人员参考真实的飞行场景而设计。The display module 340 is a post-processing module. It can display the simulated flight status of the drone under the flight control instruction on the smart terminal 30 or the remote control device 20 based on the simulation data. The specific simulation flight status display form can be designed in advance by the technicians with reference to the real flight scene.
本发明实施例提供的飞行模拟装置整合在无人机中,提供两种不同的无人机运行模式。因此,在获得了无人机以后,用户只需要输入模式切换指令即可使用飞行模拟功能,不需要额外的软件下载或者购置配套的模拟交互设备,使用简单便捷而且实现成本低。The flight simulation device provided by the embodiment of the present invention is integrated in the drone, and provides two different drone operation modes. Therefore, after obtaining the drone, the user only needs to enter the mode switching command to use the flight simulation function, without additional software downloads or purchasing matching simulation interactive equipment, which is simple and convenient to use and low in cost.
另外,对于无人机编程爱好者和用于教学的用户而言,可以直接将编辑好的相关控制程序烧录到无人机中,通过模拟模式进行无人机的模拟飞行并采集试飞数据,从而有效的减少了直接使用无人机试飞可能存在的危险。In addition, for drone programming enthusiasts and users who are used for teaching, you can directly burn the edited related control programs into the drone, and perform the simulated flight of the drone through the simulation mode and collect the test flight data. Thereby effectively reducing the possible dangers of direct use of drones for flight test.
虽然,图1所示的应用场景中以应用在无人机为例。但是,本领域技术人员可以理解的是,该飞行模拟装置还可以在其它类型的场景和设备中使用,以提高飞行模拟装置的使用便利性而不限于在图1所示的场景中应用。Although, the application scenario shown in Figure 1 is used in drones as an example. However, those skilled in the art can understand that the flight simulation device can also be used in other types of scenes and equipment to improve the convenience of use of the flight simulation device and is not limited to the application in the scene shown in FIG. 1.
基于图3所示的飞行模拟装置,本发明实施例还提供了一种飞行模拟方法。图4为本发明实施例提供的飞行模拟方法的方法流程图。如图4所示,该飞行模拟方法包括如下步骤:Based on the flight simulation device shown in FIG. 3, an embodiment of the present invention also provides a flight simulation method. Fig. 4 is a method flowchart of a flight simulation method provided by an embodiment of the present invention. As shown in Figure 4, the flight simulation method includes the following steps:
410、实时监测是否出现模式切换指令。410. Monitor in real time whether there is a mode switching instruction.
其中,实时监测的时间段是无人机上电启动至起飞前的时间段。其可以由无人机10内相关的功能模块(如飞控)所执行。模式切换指令可以采用任何合适的方式由用户触发,例如当用户短按无人机的电源键两下时,触发模式切换指令。Among them, the time period for real-time monitoring is the time period from when the drone is powered on to before takeoff. It can be executed by related functional modules (such as flight control) in the UAV 10. The mode switching instruction may be triggered by the user in any suitable manner, for example, when the user short presses the power button of the drone twice, the mode switching instruction is triggered.
420、在监测到所述模式切换指令时,锁定无人机的动力装置。420. Lock the power device of the drone when the mode switching instruction is detected.
其中,通过对动力装置的锁定,可以保证无人机不会在模拟飞行的情况 下不会起飞或者电机转动,以确保安全性。无人机既可以简单的只包括飞行模式和模拟模式两种,也可以根据需要设置更多的模式。Among them, by locking the power unit, it can be ensured that the drone will not take off or the motor will rotate during simulated flight to ensure safety. The drone can simply include only two modes, flight mode and simulation mode, or more modes can be set as needed.
在较佳的实施例中,当出现模式切换指令后,还可以在图1所示的智能终端和/或遥控设备中向操作者或者用户发出相关的提示信息,提示无人机当前已经处于模拟状态,降低误操作的风险并便于操作者或者用户的使用。In a preferred embodiment, when the mode switching instruction appears, the smart terminal and/or remote control device shown in FIG. 1 can also send relevant prompt information to the operator or user, indicating that the drone is currently in simulation State, reduce the risk of misoperation and facilitate the use of operators or users.
具体的提示消息形式可以根据实际情况的需要而设定,包括但不限于声音播报,弹出提示信息框等,只需要能够起到提示操作者或者用户的目的即可。The specific prompt message form can be set according to actual needs, including but not limited to voice broadcast, pop-up prompt message box, etc., and only need to be able to serve the purpose of prompting the operator or the user.
430、将所述无人机接收到的飞行控制指令传输至预设的飞行模拟模型。430. Transmit the flight control instruction received by the drone to a preset flight simulation model.
其中,飞行控制指令是指用户直通过遥控器等遥控设备,用于表示用户的操作需求的数据信息。当然,飞行控制指令也可以有其他的来源(如预先编写的程序),只需要是用于控制无人机即可。Among them, the flight control instruction refers to the data information used by the user to express the user's operation requirements directly through the remote control device such as the remote controller. Of course, the flight control command can also come from other sources (such as a pre-written program), and it only needs to be used to control the UAV.
在一些实施例中,传输的飞行控制指令可以先转换为用于控制动力装置的控制信号,然后再输入至所述飞行模拟模型。这样的,当无人机处于不同的运行模式时,只需改变控制信号传输的对象即可。In some embodiments, the transmitted flight control command may be first converted into a control signal for controlling the power plant, and then input to the flight simulation model. In this way, when the UAV is in different operating modes, only the object of the control signal transmission needs to be changed.
440、通过所述飞行模拟模型生成与所述飞行控制指令对应的模拟数据。440. Generate simulation data corresponding to the flight control instruction through the flight simulation model.
其中,模拟数据是由飞行模拟模型输出的,用以反映无人机在当前情况下的飞行状态的各种数据。具体输出的模拟数据种类由实际使用的飞行模拟模型所决定。Among them, the simulation data is output by the flight simulation model to reflect various data of the flight status of the UAV in the current situation. The specific output type of simulation data is determined by the actual flight simulation model used.
在一些实施例中,所述模拟数据可以包括用以反映飞行状态的模拟状态数据以及用以提供传感器检测情况的模拟检测数据两类。In some embodiments, the simulated data may include two types of simulated state data used to reflect the flight state and simulated detection data used to provide sensor detection conditions.
具体的,所述模拟状态数据包括模拟姿态角,模拟飞行轨迹以及动力装置的模拟输出。而所述模拟检测数据则可以包括定位模拟数据,视觉模拟数据,超声模拟数据,气压模拟数据,惯性测量单元模拟数据以及磁力计模拟数据。Specifically, the simulated state data includes simulated attitude angle, simulated flight trajectory, and simulated output of the power plant. The simulated detection data may include positioning simulation data, visual simulation data, ultrasonic simulation data, air pressure simulation data, inertial measurement unit simulation data, and magnetometer simulation data.
450、基于所述模拟数据,展示所述无人机在所述飞行控制指令下的模拟飞行状态。450. Based on the simulation data, display the simulated flight state of the drone under the flight control instruction.
其中,模拟飞行状态具体可以通过任何合适的模式或者形式进行展示,只需要能够尽可能的提供逼真的飞行场景。例如,可以在图1所示的智能终 端20上展示无人机的模拟飞行画面、模拟的电量数据以及模拟的飞行速度、位置以及飞行方向等。Among them, the simulated flight status can be specifically displayed in any suitable mode or form, and it only needs to be able to provide as realistic flight scenes as possible. For example, the simulated flight screen of the drone, simulated power data, simulated flight speed, position, and flight direction can be displayed on the smart terminal 20 shown in FIG. 1.
基于所需要展示的模拟飞行状态,可以决定对模拟数据的具体处理方式。例如可以基于无人机的位置信息,调取在对应位置可以看到的飞行画面,或者是将模拟得到的飞行高度、速度等以真实飞行时相同的展示方式进行展示。Based on the simulated flight status that needs to be displayed, the specific processing method for the simulated data can be determined. For example, based on the position information of the drone, the flight picture that can be seen at the corresponding position can be retrieved, or the simulated flight height, speed, etc. can be displayed in the same way as in real flight.
本发明实施例提供的模拟飞行方法,整合在无人机上,在不影响无人机正常使用的同时将模拟飞行功能整合在无人机上。因此,用户可以在无人机上直接使用而不需要依赖其他的硬件设备,使用便利而且实现成本低廉,具有良好的应用前景。The flight simulation method provided by the embodiment of the present invention is integrated on the drone, and the flight simulation function is integrated on the drone without affecting the normal use of the drone. Therefore, the user can directly use the drone without relying on other hardware devices, is convenient to use and low in cost, and has a good application prospect.
以所述模拟状态数据包括模拟姿态角,模拟飞行轨迹以及动力装置的模拟输出为例,详细描述模拟状态数据的具体计算过程。如图5所示,计算过程包括:Taking the simulated state data including simulated attitude angle, simulated flight trajectory, and simulated output of the power plant as an example, the specific calculation process of the simulated state data is described in detail. As shown in Figure 5, the calculation process includes:
510、根据所述控制信号,计算所述动力装置的模拟输出。510. Calculate the analog output of the power plant according to the control signal.
基于不同的动力装置,需要使用相应的控制信号。例如,对于动力装置是电动机时,可以使用PWM信号作为控制信号。选择使用合适的动力学模型即可根据输入的控制信号,即可计算获得对应的模拟输出,模拟电动机在该控制信号的输出动力。Based on different power devices, corresponding control signals need to be used. For example, when the power plant is an electric motor, the PWM signal can be used as the control signal. Choosing an appropriate dynamic model can calculate the corresponding analog output according to the input control signal, and simulate the output power of the motor in the control signal.
520、根据所述动力装置的模拟输出,计算所述模拟姿态角。520. Calculate the simulated attitude angle according to the simulated output of the power plant.
“模拟姿态角”包括模拟滚转角、模拟俯仰角以及模拟偏航角三个角度。"Simulated attitude angle" includes three angles: simulated roll angle, simulated pitch angle, and simulated yaw angle.
在一些实施例中,基于控制信号计算得出的模拟电机输出,可以通过如下方式计算得到模拟姿态角:In some embodiments, the simulated motor output calculated based on the control signal can be calculated in the following manner to obtain the simulated attitude angle:
首先,根据所述模拟输出,计算所述无人机的滚转轴控制力矩,俯仰轴控制力矩以及偏转轴控制力矩。First, according to the simulation output, calculate the roll axis control moment, pitch axis control moment, and yaw axis control moment of the UAV.
其次,根据所述滚转轴控制力矩,俯仰轴控制力矩以及偏转轴控制力矩计算所述滚转轴旋转角速度,俯仰轴旋转角速度以及偏转轴旋转角速度。Secondly, calculate the rotational angular velocity of the roll axis, the rotational angular velocity of the pitch axis and the rotational angular velocity of the yaw axis according to the control torque of the roll axis, the control torque of the pitch axis, and the control moment of the yaw axis.
最后,根据所述滚转轴旋转角速度,俯仰轴旋转角速度以及偏转轴旋转角速度和转换矩阵,计算所述模拟滚转角、模拟俯仰角以及模拟偏航角。Finally, the simulated roll angle, simulated pitch angle, and simulated yaw angle are calculated according to the rotational angular velocity of the roll axis, the rotational angular velocity of the pitch axis, and the rotational angular velocity of the yaw axis and the conversion matrix.
530、根据所述模拟姿态角以及所述模拟输出,计算所述模拟飞行轨迹。530. Calculate the simulated flight trajectory according to the simulated attitude angle and the simulated output.
通过实时迭代计算得到的,在不同时刻的无人机位置进行组合即可得到无人机在一定时间段中的飞行轨迹。Obtained by real-time iterative calculations, the UAV's position at different times can be combined to get the UAV's flight trajectory in a certain period of time.
在一些实施例中,如图6所示,无人机位置坐标的具体计算过程可以包括如下步骤:In some embodiments, as shown in FIG. 6, the specific calculation process of the drone position coordinates may include the following steps:
首先,根据所述模拟姿态角以及模拟的电机拉力,通过算式(3-2)计算所述无人机在机体坐标系中的模拟加速度。其次,对所述模拟加速度积分,获得在所述机体坐标系中的第一模拟速度。再次,利用旋转矩阵(如算式(3-3)所示),通过算式(3-1)将所述第一模拟速度转换为在地面坐标系中的第二模拟速度。最后,对所述第二模拟速度积分,获得所述无人机在地面坐标系中的位置坐标。First, according to the simulated attitude angle and the simulated motor tension, the simulated acceleration of the drone in the body coordinate system is calculated by the formula (3-2). Secondly, integrate the simulated acceleration to obtain the first simulated speed in the body coordinate system. Again, using a rotation matrix (as shown in equation (3-3)), the first simulated speed is converted into a second simulated speed in the ground coordinate system through equation (3-1). Finally, integrate the second simulated speed to obtain the position coordinates of the UAV in the ground coordinate system.
图7示出了本发明实施例的电子设备的结构示意图,本发明具体实施例并不对电子设备的具体实现做限定。FIG. 7 shows a schematic structural diagram of an electronic device according to an embodiment of the present invention, and the specific embodiment of the present invention does not limit the specific implementation of the electronic device.
如图7所示,该电子设备可以包括:处理器(processor)702、通信接口(Communications Interface)704、存储器(memory)706、以及通信总线708。As shown in FIG. 7, the electronic device may include: a processor (processor) 702, a communication interface (Communications Interface) 704, a memory (memory) 706, and a communication bus 708.
其中:处理器702、通信接口704、以及存储器706通过通信总线708完成相互间的通信。通信接口704,用于与其它设备比如客户端或其它服务器等的网元通信。处理器702,用于执行程序710,具体可以执行上述飞行模拟方法实施例中的相关步骤。Wherein: the processor 702, the communication interface 704, and the memory 706 communicate with each other through the communication bus 708. The communication interface 704 is used to communicate with other devices such as network elements such as clients or other servers. The processor 702 is configured to execute a program 710, and specifically can execute relevant steps in the above-mentioned flight simulation method embodiment.
具体地,程序710可以包括程序代码,该程序代码包括计算机操作指令。Specifically, the program 710 may include program code, and the program code includes a computer operation instruction.
处理器702可能是中央处理器CPU,或者是特定集成电路ASIC(Application Specific Integrated Circuit),或者是被配置成实施本发明实施例的一个或多个集成电路。网络切片设备包括的一个或多个处理器,可以是同一类型的处理器,如一个或多个CPU;也可以是不同类型的处理器,如一个或多个CPU以及一个或多个ASIC。The processor 702 may be a central processing unit CPU, or an Application Specific Integrated Circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present invention. The one or more processors included in the network slicing device may be the same type of processor, such as one or more CPUs, or different types of processors, such as one or more CPUs and one or more ASICs.
存储器706,用于存放程序710。存储器706可能包含高速RAM存储器,也可能还包括非易失性存储器(non-volatile memory),例如至少一个磁盘存储器。The memory 706 is used to store the program 710. The memory 706 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), for example, at least one disk memory.
程序710具体可以用于使得处理器702执行上述任意方法实施例中的飞行模拟方法。The program 710 may be specifically used to enable the processor 702 to execute the flight simulation method in any of the foregoing method embodiments.
本领域技术人员应该还可以进一步意识到,结合本文中所公开的实施例描述的示例性的飞信模拟方法的各个步骤,能够以电子硬件、计算机软件或者二者的结合来实现,为了清楚地说明硬件和软件的可互换性,在上述说明 中已经按照功能一般性地描述了各示例的组成及步骤。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。Those skilled in the art should be further aware that the steps of the exemplary Fetion simulation method described in the embodiments disclosed herein can be implemented by electronic hardware, computer software, or a combination of the two, in order to clearly illustrate For the interchangeability of hardware and software, the composition and steps of each example have been generally described in accordance with the function in the above description. Whether these functions are executed by hardware or software depends on the specific application and design constraint conditions of the technical solution.
本领域技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。所述的计算机软件可存储于计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体或随机存储记忆体等。Those skilled in the art can use different methods for each specific application to implement the described functions, but such implementation should not be considered as going beyond the scope of the present invention. The computer software may be stored in a computer readable storage medium, and when the program is executed, it may include the processes of the above-mentioned method embodiments. Wherein, the storage medium can be a magnetic disk, an optical disc, a read-only storage memory or a random storage memory, etc.
最后应说明的是:以上实施例仅用以说明本发明的技术方案,而非对其限制;在本发明的思路下,以上实施例或者不同实施例中的技术特征之间也可以进行组合,步骤可以以任意顺序实现,并存在如上所述的本发明的不同方面的许多其它变化,为了简明,它们没有在细节中提供;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的范围。Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, not to limit them; under the idea of the present invention, the technical features of the above embodiments or different embodiments can also be combined. The steps can be implemented in any order, and there are many other variations in the different aspects of the present invention as described above. For the sake of brevity, they are not provided in details; although the present invention has been described in detail with reference to the foregoing embodiments, the ordinary person in the art The technical personnel should understand that: they can still modify the technical solutions recorded in the foregoing embodiments, or equivalently replace some of the technical features; and these modifications or substitutions do not make the essence of the corresponding technical solutions deviate from the implementations of the present invention Examples of the scope of technical solutions.

Claims (11)

  1. 一种飞行模拟方法,其特征在于,包括:A flight simulation method, characterized in that it comprises:
    实时监测是否出现模式切换指令;Real-time monitoring whether there is a mode switching command;
    在监测到所述模式切换指令时,锁定无人机的动力装置;When the mode switching instruction is detected, lock the power unit of the drone;
    将所述无人机接收到的飞行控制指令传输至预设的飞行模拟模型;Transmitting the flight control instructions received by the drone to a preset flight simulation model;
    通过所述飞行模拟模型生成与所述飞行控制指令对应的模拟数据;Generating simulation data corresponding to the flight control instruction through the flight simulation model;
    基于所述模拟数据,展示所述无人机在所述飞行控制指令下的模拟飞行状态。Based on the simulation data, the simulated flight status of the drone under the flight control instruction is displayed.
  2. 根据权利要求1所述的方法,其特征在于,所述飞行模拟模型包括:用于模拟所述无人机的飞行状态的飞行动力学模型以及用于模拟所述无人机的传感器检测数据的传感器模型;The method according to claim 1, wherein the flight simulation model comprises: a flight dynamics model used to simulate the flight state of the drone, and a flight dynamics model used to simulate sensor detection data of the drone Sensor model
    所述由所述飞行模拟模型生成与所述飞行控制指令对应的模拟数据,具体包括:The generating simulation data corresponding to the flight control instruction by the flight simulation model specifically includes:
    通过所述飞行动力学模型生成与所述飞行控制指令对应的模拟飞行状态,所述模拟飞行状态由若干种模拟状态数据表示;Generating a simulated flight state corresponding to the flight control instruction through the flight dynamics model, and the simulated flight state is represented by several types of simulated state data;
    将若干种所述模拟状态输入所述传感器模型;Inputting several kinds of said simulation states into said sensor model;
    根据输入的所述模拟状态数据,通过所述传感器模型生成对应的若干种模拟检测数据。According to the input analog state data, several corresponding analog detection data are generated through the sensor model.
  3. 根据权利要求2所述的方法,其特征在于,所述模拟状态数据包括模拟姿态角,模拟飞行轨迹以及动力装置的模拟输出;The method according to claim 2, wherein the simulated state data includes simulated attitude angle, simulated flight trajectory, and simulated output of a power plant;
    所述模拟检测数据包括定位模拟数据,视觉模拟数据,超声模拟数据,气压模拟数据,惯性测量单元模拟数据以及磁力计模拟数据。The simulated detection data includes positioning simulation data, visual simulation data, ultrasonic simulation data, atmospheric pressure simulation data, inertial measurement unit simulation data, and magnetometer simulation data.
  4. 根据权利要求3所述的方法,其特征在于,所述将所述无人机接收到的飞行控制指令传输至预设的飞行模拟模型,具体包括:The method according to claim 3, wherein the transmitting the flight control instructions received by the drone to a preset flight simulation model specifically comprises:
    将来自遥控设备的飞行控制指令转换为用于控制动力装置的控制信号;Convert flight control commands from remote control equipment into control signals for controlling the power plant;
    向所述飞行模拟模型输入所述控制信号。The control signal is input to the flight simulation model.
  5. 根据权利要求4所述的方法,其特征在于,所述通过所述飞行动力学模型,生成与所述飞行控制指令对应的,用于模拟所述无人机的飞行状态的若干种模拟状态数据,具体包括:The method according to claim 4, wherein the flight dynamics model is used to generate several kinds of simulation state data corresponding to the flight control instructions for simulating the flight state of the drone , Specifically including:
    根据所述控制信号,计算所述动力装置的模拟输出;Calculating the analog output of the power plant according to the control signal;
    根据所述动力装置的模拟输出,计算所述模拟姿态角;Calculating the simulated attitude angle according to the simulated output of the power plant;
    根据所述模拟姿态角以及所述模拟输出,计算所述模拟飞行轨迹。Calculate the simulated flight trajectory according to the simulated attitude angle and the simulated output.
  6. 根据权利要求5所述的方法,其特征在于,所述模拟姿态角包括模拟滚转角、模拟俯仰角以及模拟偏航角;The method according to claim 5, wherein the simulated attitude angle includes a simulated roll angle, a simulated pitch angle, and a simulated yaw angle;
    所述根据所述动力装置的模拟输出,计算所述模拟姿态角,具体包括:The calculating the simulated attitude angle according to the simulated output of the power plant specifically includes:
    根据所述模拟输出,计算所述无人机的滚转轴控制力矩,俯仰轴控制力矩以及偏转轴控制力矩;According to the simulation output, calculate the control moment of the roll axis, the control moment of the pitch axis, and the control moment of the yaw axis of the UAV;
    根据所述滚转轴控制力矩,俯仰轴控制力矩以及偏转轴控制力矩计算所述滚转轴旋转角速度,俯仰轴旋转角速度以及偏转轴旋转角速度;Calculating the rotational angular velocity of the roll axis, the rotational angular velocity of the pitch axis, and the rotational angular velocity of the yaw axis according to the control torque of the roll axis, the control torque of the pitch axis, and the control moment of the yaw axis;
    根据所述滚转轴旋转角速度,俯仰轴旋转角速度以及偏转轴旋转角速度和转换矩阵,计算所述模拟滚转角、模拟俯仰角以及模拟偏航角。The simulated roll angle, simulated pitch angle, and simulated yaw angle are calculated according to the rotational angular velocity of the roll axis, the rotational angular velocity of the pitch axis, the rotational angular velocity of the yaw axis, and the conversion matrix.
  7. 根据权利要求5所述的方法,其特征在于,所述根据所述模拟姿态角以及所述模拟输出,计算所述模拟飞行轨迹,具体包括:The method according to claim 5, wherein the calculating the simulated flight trajectory according to the simulated attitude angle and the simulated output specifically comprises:
    根据所述模拟姿态角以及所述模拟输出,计算所述无人机在机体坐标系中的模拟加速度;Calculating the simulated acceleration of the drone in the body coordinate system according to the simulated attitude angle and the simulated output;
    对所述模拟加速度积分,获得在所述机体坐标系中的第一模拟速度;Integrate the simulated acceleration to obtain the first simulated speed in the body coordinate system;
    通过旋转矩阵,将所述第一模拟速度转换为在地面坐标系中的第二模拟速度;Converting the first simulation speed into a second simulation speed in the ground coordinate system through a rotation matrix;
    对所述第二模拟速度积分,获得所述无人机在地面坐标系中的位置信息。Integrate the second simulated speed to obtain the position information of the UAV in the ground coordinate system.
  8. 一种飞行模拟装置,其特征在于,包括:A flight simulation device, characterized in that it comprises:
    监测模块,用于实时监测是否出现模式切换指令;Monitoring module, used for real-time monitoring whether there is a mode switching instruction;
    模式切换模块,用于在监测到所述模式切换指令时,锁定无人机的动力装置;The mode switching module is used to lock the power device of the drone when the mode switching instruction is monitored;
    飞行模拟模块,用于将所述无人机接收到的飞行控制指令传输至预设的飞行模拟模型;并且由所述飞行模拟模型生成与所述飞行控制指令对应的模拟数据;The flight simulation module is used to transmit the flight control instructions received by the drone to a preset flight simulation model; and the flight simulation model generates simulation data corresponding to the flight control instructions;
    展示模块,用于基于所述模拟数据,展示所述无人机在所述飞行控制指令下的模拟飞行状态。The display module is configured to display the simulated flight status of the drone under the flight control instruction based on the simulation data.
  9. 一种电子设备,其特征在于,包括:处理器以及与所述处理器通信连接的存储器;An electronic device, characterized by comprising: a processor and a memory communicatively connected with the processor;
    所述存储器中存储有计算机程序指令,所述计算机程序指令在被所述处理器调用时,以使所述处理器执行如权利要求1-7任一项所述的飞行模拟方法。Computer program instructions are stored in the memory, and when the computer program instructions are called by the processor, the processor executes the flight simulation method according to any one of claims 1-7.
  10. 一种无人机,其特征在于,包括:An unmanned aerial vehicle, characterized in that it includes:
    控制器,用于接收模式切换指令以及来自遥控设备的飞行控制指令,并且根据所述模式切换指令,切换所述无人机的运行模式,所述运行模式包括飞行模式和模拟模式;A controller for receiving a mode switching instruction and a flight control instruction from a remote control device, and switching the operation mode of the drone according to the mode switching instruction, the operation mode including a flight mode and a simulation mode;
    动力装置,所述动力装置与所述控制器连接,用于在所述无人机处于飞行模式时,输出与所述飞行控制指令相适配的动力;A power device, which is connected to the controller, and is used to output power that is compatible with the flight control command when the UAV is in a flight mode;
    飞行模拟器,所述飞行模拟器与所述控制器连接,用于在所述无人机处于模拟模式时,执行如权利要求1-7任一项所述的飞行模拟方法,展示所述无人机在所述飞行控制指令下的模拟飞行状态。A flight simulator, the flight simulator is connected to the controller, and is configured to execute the flight simulation method according to any one of claims 1-7 when the drone is in a simulation mode, and display the flight simulation method. The simulated flight state of the man-machine under the flight control instruction.
  11. 根据权利要求10所述的无人机,其特征在于,当所述无人机被启动时,处于飞行模式;当监测到所述模式切换指令时,所述无人机的运行模式从飞行模式切换为模拟模式。The UAV according to claim 10, wherein when the UAV is activated, it is in flight mode; when the mode switching instruction is detected, the operation mode of the UAV changes from the flight mode Switch to simulation mode.
PCT/CN2021/101519 2020-06-24 2021-06-22 Flight simulation method and apparatus, electronic device, and unmanned aerial vehicle WO2021259252A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010592305.1 2020-06-24
CN202010592305.1A CN111694376B (en) 2020-06-24 2020-06-24 Flight simulation method and device, electronic equipment and unmanned aerial vehicle

Publications (1)

Publication Number Publication Date
WO2021259252A1 true WO2021259252A1 (en) 2021-12-30

Family

ID=72483523

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/101519 WO2021259252A1 (en) 2020-06-24 2021-06-22 Flight simulation method and apparatus, electronic device, and unmanned aerial vehicle

Country Status (2)

Country Link
CN (1) CN111694376B (en)
WO (1) WO2021259252A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114355965A (en) * 2022-03-21 2022-04-15 华中科技大学 Control system of fixed-wing unmanned aerial vehicle and fixed-wing unmanned aerial vehicle equipment
CN114518107A (en) * 2022-02-16 2022-05-20 中国地质大学(北京) Wireless synchronous control system based on unmanned aerial vehicle remote control seismic source

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111694376B (en) * 2020-06-24 2023-11-17 深圳市道通智能航空技术股份有限公司 Flight simulation method and device, electronic equipment and unmanned aerial vehicle
CN114038269A (en) * 2021-11-05 2022-02-11 成都工业学院 Training management method based on simulated flight of unmanned aerial vehicle and electronic equipment
CN114326441B (en) * 2021-12-31 2023-07-28 北京世冠金洋科技发展有限公司 Flight control simulation test method and flight control module
CN116700070B (en) * 2023-05-17 2024-01-30 北京锐士装备科技有限公司 Safety supervision method and system for flight state of unmanned aerial vehicle

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016001381A (en) * 2014-06-11 2016-01-07 国立大学法人 東京大学 Information processor, information processing method, program and recording medium
CN106716272A (en) * 2014-09-30 2017-05-24 深圳市大疆创新科技有限公司 Systems and methods for flight simulation
CN108401449A (en) * 2017-03-31 2018-08-14 深圳市大疆创新科技有限公司 Flight simulation method, device based on Fusion and equipment
CN110383186A (en) * 2018-05-30 2019-10-25 深圳市大疆创新科技有限公司 A kind of emulation mode and device of unmanned plane
CN111694376A (en) * 2020-06-24 2020-09-22 深圳市道通智能航空技术有限公司 Flight simulation method and device, electronic equipment and unmanned aerial vehicle

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106682361A (en) * 2017-01-13 2017-05-17 沈阳航空航天大学 System and method for simulating flight tracks of unmanned aerial vehicles on basis of GPS (global positioning system) simulation
CN109062078A (en) * 2018-08-13 2018-12-21 中国科学院长春光学精密机械与物理研究所 VTOL fixed-wing system for flight control computer simulation test platform
CN110223565B (en) * 2019-06-25 2022-02-22 深圳市道通智能航空技术股份有限公司 Flight simulation method, device, equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016001381A (en) * 2014-06-11 2016-01-07 国立大学法人 東京大学 Information processor, information processing method, program and recording medium
CN106716272A (en) * 2014-09-30 2017-05-24 深圳市大疆创新科技有限公司 Systems and methods for flight simulation
CN108401449A (en) * 2017-03-31 2018-08-14 深圳市大疆创新科技有限公司 Flight simulation method, device based on Fusion and equipment
CN110383186A (en) * 2018-05-30 2019-10-25 深圳市大疆创新科技有限公司 A kind of emulation mode and device of unmanned plane
CN111694376A (en) * 2020-06-24 2020-09-22 深圳市道通智能航空技术有限公司 Flight simulation method and device, electronic equipment and unmanned aerial vehicle

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114518107A (en) * 2022-02-16 2022-05-20 中国地质大学(北京) Wireless synchronous control system based on unmanned aerial vehicle remote control seismic source
CN114518107B (en) * 2022-02-16 2023-05-23 中国地质大学(北京) Wireless synchronous control system based on unmanned aerial vehicle remote control seismic source
CN114355965A (en) * 2022-03-21 2022-04-15 华中科技大学 Control system of fixed-wing unmanned aerial vehicle and fixed-wing unmanned aerial vehicle equipment

Also Published As

Publication number Publication date
CN111694376A (en) 2020-09-22
CN111694376B (en) 2023-11-17

Similar Documents

Publication Publication Date Title
WO2021259252A1 (en) Flight simulation method and apparatus, electronic device, and unmanned aerial vehicle
US11233943B2 (en) Multi-gimbal assembly
JP6228679B2 (en) Gimbal and gimbal simulation system
US11572196B2 (en) Methods and systems for movement control of flying devices
WO2021258327A1 (en) Unmanned aerial vehicle visual semi-physical simulation system and simulation method thereof
WO2021008628A1 (en) Aircraft control method and aircraft
US20140008496A1 (en) Using handheld device to control flying object
CN108496121B (en) Unmanned aerial vehicle simulated flight system, method, equipment and machine readable storage medium
WO2018095158A1 (en) Flight control method, apparatus and system for use in aircraft
WO2016138690A1 (en) Motion sensing flight control system based on smart terminal and terminal equipment
US20210333807A1 (en) Method and system for controlling aircraft
JP2011511736A (en) A method of maneuvering a rotary wing drone with automatic hovering flight stabilization
WO2018187916A1 (en) Cradle head servo control method and control device
JP2013144539A (en) Method for intuitive piloting of drone by means of remote control
JP2017500650A (en) System and method for data recording and analysis
EP3399380B1 (en) Headless control method
WO2017166723A1 (en) Unmanned aerial vehicle system and flight control method thereof
CN109891347A (en) For simulating the method and system of loose impediment state
CN204287973U (en) flight camera
US11467572B2 (en) Moving object operation system, operation signal transmission system, moving object operation method, program, and recording medium
WO2021251441A1 (en) Method, system, and program
US20220187828A1 (en) Information processing device, information processing method, and program
WO2018020853A1 (en) Mobile body control system, control signal transmission system, mobile body control method, program, and recording medium
WO2023025202A1 (en) Control method and apparatus for direction of gimbal, and terminal
WO2023193604A1 (en) Route task online planning method and related apparatus

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: 21829554

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: 21829554

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205 DATED 12.05.2023)

122 Ep: pct application non-entry in european phase

Ref document number: 21829554

Country of ref document: EP

Kind code of ref document: A1