WO2019223271A1 - Correction method and device for yaw of aircraft, and aircraft - Google Patents

Correction method and device for yaw of aircraft, and aircraft Download PDF

Info

Publication number
WO2019223271A1
WO2019223271A1 PCT/CN2018/116719 CN2018116719W WO2019223271A1 WO 2019223271 A1 WO2019223271 A1 WO 2019223271A1 CN 2018116719 W CN2018116719 W CN 2018116719W WO 2019223271 A1 WO2019223271 A1 WO 2019223271A1
Authority
WO
WIPO (PCT)
Prior art keywords
angular velocity
yaw
aircraft
angle
gimbal
Prior art date
Application number
PCT/CN2018/116719
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 WO2019223271A1 publication Critical patent/WO2019223271A1/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/08Control of attitude, i.e. control of roll, pitch, or yaw
    • G05D1/0808Control of attitude, i.e. control of roll, pitch, or yaw specially adapted for aircraft
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05DSYSTEMS FOR CONTROLLING OR REGULATING NON-ELECTRIC VARIABLES
    • G05D1/00Control of position, course, altitude or attitude of land, water, air or space vehicles, e.g. using automatic pilots
    • G05D1/10Simultaneous control of position or course in three dimensions
    • G05D1/101Simultaneous control of position or course in three dimensions specially adapted for aircraft

Definitions

  • Embodiments of the present invention relate to the technical field of aircraft, and in particular, to a method for correcting a yaw angle of an aircraft, a device for correcting a yaw angle of an aircraft, and an aircraft.
  • UAV unmanned aerial vehicles
  • UAVs unmanned aerial vehicles
  • UAVs unmanned aerial vehicles
  • UAVs unmanned aerial vehicles
  • UAV yaw angle is an important parameter in controlling the attitude of the UAV (such as front, rear, left, right, up, down, etc.), that is, the correct estimation of the yaw angle of the UAV is particularly important for the attitude control of the UAV.
  • the UAV may not be able to fly in a preset direction or trajectory, and in the worst case it may be unstable and cause a bomber. Therefore, how to improve the accuracy of the yaw angle estimation is of great significance.
  • the yaw angle of an aircraft (such as UAV) is usually obtained based on data collected by a magnetometer, but the yaw angle obtained by this method is easily affected by external factors, especially when the magnetometer is in a strong magnetic interference environment.
  • the magnetometer data may be seriously wrong, leading to a large deviation in the yaw angle estimation, and the accuracy of the yaw angle estimation of the aircraft is low.
  • Embodiments of the present invention provide an aircraft yaw angle correction method and device, and an aircraft, which can effectively improve the accuracy of estimating the aircraft yaw angle.
  • an embodiment of the present invention provides a method for correcting a yaw angle of an aircraft.
  • the aircraft is connected with a gimbal.
  • the gimbal includes a gimbal base, a gimbal motor connected to the gimbal base, and
  • the shooting device connected to the PTZ motor, the method includes:
  • the yaw angular velocity of the aircraft is a first yaw angular velocity
  • the yaw of the aircraft is based on the first yaw angular velocity and the second yaw angular velocity.
  • the heading angle is corrected to obtain a corrected yaw angle of the aircraft.
  • the preset threshold is determined by whether the aircraft receives a yaw operation instruction.
  • the preset threshold is determined by whether the aircraft receives a yaw operation instruction, and includes:
  • the preset threshold is a first preset threshold
  • the preset threshold is a second preset threshold.
  • the according to the first yaw angular velocity and the Said second yaw angular velocity and correcting the yaw angle of the aircraft include:
  • the yaw angle compensation value ⁇ p is:
  • t 0 is the time corresponding to the initial attitude information of the aircraft
  • ⁇ T is the period for correcting the yaw angle of the aircraft
  • the yaw angle ⁇ ′ p of the aircraft after the correction is:
  • ⁇ ′ p ⁇ p + ⁇ p
  • ⁇ p is the yaw angle of the aircraft, and ⁇ p is the yaw angle compensation value.
  • the obtaining the angular velocity of the gimbal base includes:
  • determining the angular velocity of the gimbal motor according to the angle of the gimbal motor includes:
  • the angular velocity of the gimbal motor is calculated by a second-order discrete nonlinear tracking differentiator.
  • the expression of the second-order discrete nonlinear tracking differentiator is:
  • r 1 (k + 1) r 1 (k) + T ⁇ r 2 (k)
  • r 2 (k + 1) r 2 (k) + T ⁇ fst (r 1 (k) -P (k), r 2 (k), ⁇ , h)
  • T is a sampling period for obtaining the angle of the gimbal motor
  • r 1 (k) is a value determined by P (k) for tracking P (k) by the second-order discrete nonlinear tracking differentiator
  • r 2 (k) is a derivative of P (k)
  • k + 1 is the first
  • fst () is the highest speed control function
  • is a parameter located at the third position of the highest speed control function
  • h is a parameter located at the fourth position of the fastest control function.
  • determining the angular velocity of the gimbal base according to the angular velocity of the gimbal motor, the angle of the gimbal motor, and the angular velocity of the photographing device includes:
  • the calculation formula of the rotation transformation matrix is:
  • D is the rotation transformation matrix
  • ( ⁇ , ⁇ , ⁇ ) is the angle of the gimbal motor
  • is the roll angle in the angle of the gimbal motor
  • is the pitch in the angle of the gimbal motor.
  • Angle, ⁇ is the yaw angle among the angles of the gimbal motor.
  • the calculation formula of the angular velocity of the gimbal base is:
  • D is the rotation transformation matrix
  • r 2 is the angular velocity of the gimbal motor.
  • the present invention also provides an aircraft yaw angle correction device.
  • the aircraft is connected with a gimbal.
  • the gimbal includes a gimbal base, a gimbal motor connected to the gimbal base, and
  • the shooting device connected to the PTZ motor, the device includes:
  • An initial attitude information acquisition module configured to obtain initial attitude information of the aircraft, wherein the initial attitude information of the aircraft includes an initial angular velocity of the aircraft;
  • yaw angular velocity of the aircraft Configured to obtain a yaw angular velocity of the aircraft according to an initial angular velocity of the aircraft, wherein the yaw angular velocity of the aircraft is a first yaw angular velocity;
  • the base angular velocity obtaining module is configured to obtain the angular velocity of the gimbal base and to obtain the yaw angular velocity of the gimbal base according to the angular velocity of the gimbal base, wherein the The yaw angular velocity is the second yaw angular velocity;
  • a comparison module configured to compare the first yaw angular velocity with the second yaw angular velocity
  • a correction module configured to: when the comparison module determines that a difference between the first yaw angular velocity and the second yaw angular velocity is greater than or equal to a preset threshold, according to the first yaw angular velocity and the second yaw Angular velocity, correcting the yaw angle of the aircraft to obtain a corrected yaw angle of the aircraft.
  • the device further includes a preset threshold determination module, configured to determine the preset threshold according to whether the aircraft receives a yaw operation instruction.
  • the preset threshold determination module is specifically configured to:
  • the preset threshold is a second preset threshold.
  • the correction module when the difference between the first yaw angular velocity and the second yaw angular velocity is greater than or equal to a preset threshold, the correction module is based on the first yaw angular velocity and the Said second yaw angular velocity and correcting the yaw angle of the aircraft include:
  • the yaw angle compensation value ⁇ p is:
  • t 0 is the time corresponding to the initial attitude information of the aircraft
  • ⁇ T is the period for correcting the yaw angle of the aircraft
  • the yaw angle ⁇ ′ p of the aircraft after the correction is:
  • ⁇ ′ p ⁇ p + ⁇ p
  • ⁇ p is the yaw angle of the aircraft, and ⁇ p is the yaw angle compensation value.
  • the base angular velocity obtaining module is specifically configured to:
  • the base angular velocity acquisition module determining the angular velocity of the pan / tilt motor according to the angle of the pan / tilt motor includes:
  • the angular velocity of the gimbal motor is calculated by a second-order discrete nonlinear tracking differentiator.
  • the expression of the second-order discrete nonlinear tracking differentiator is:
  • r 1 (k + 1) r 1 (k) + T ⁇ r 2 (k)
  • r 2 (k + 1) r 2 (k) + T ⁇ fst (r 1 (k) -P (k), r 2 (k), ⁇ , h)
  • T is a sampling period for obtaining the angle of the gimbal motor
  • r 1 (k) is a value determined by P (k) for tracking P (k) by the second-order discrete nonlinear tracking differentiator
  • r 2 (k) is a derivative of P (k)
  • k + 1 is the first
  • fst () is the highest speed control function
  • is a parameter located at the third position of the highest speed control function
  • h is a parameter located at the fourth position of the fastest control function.
  • the base angular velocity obtaining module determines the angular velocity of the gimbal base according to the angular velocity of the gimbal motor, the angle of the gimbal motor, and the angular velocity of the photographing device.
  • the calculation formula of the rotation transformation matrix is:
  • D is the rotation transformation matrix
  • ( ⁇ , ⁇ , ⁇ ) is the angle of the gimbal motor
  • is the roll angle in the angle of the gimbal motor
  • is the pitch in the angle of the gimbal motor.
  • Angle, ⁇ is the yaw angle among the angles of the gimbal motor.
  • the calculation formula of the angular velocity of the gimbal base is:
  • D is the rotation transformation matrix
  • r 2 is the angular velocity of the gimbal motor.
  • the present invention also provides an aircraft including:
  • a machine arm connected to the fuselage
  • a power unit provided on the machine arm
  • At least one processor provided in the fuselage.
  • a memory connected in communication with the at least one processor; wherein,
  • the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor, so that the at least one processor can execute the aircraft yaw angle correction method described above.
  • the difference between the yaw angular velocity in the initial angular velocity of the aircraft and the yaw angular velocity in the angular velocity of the gimbal base is used to correct the yaw angle in the initial angle of the aircraft, which can effectively improve the estimated aircraft yaw The accuracy of the heading angle.
  • This estimation method can avoid the interference of external factors, that is, it has high estimation accuracy under the environment of weak GPS signal and strong magnetic interference, thereby effectively improving the safety and stability of the aircraft flight.
  • FIG. 1 is a schematic flowchart of an aircraft yaw angle correction method according to an embodiment of the present invention
  • FIG. 2 is a schematic diagram of a position setting of an attitude sensor component according to an embodiment of the present invention
  • FIG. 3 is a schematic diagram of an aircraft yaw angle correction device according to an embodiment of the present invention.
  • FIG. 4 is a schematic diagram of an aircraft hardware structure provided by an embodiment of the present invention.
  • FIG. 5 is a connection block diagram of an aircraft provided by an embodiment of the present invention.
  • FIG. 6 is a schematic diagram of the power plant in FIG. 5.
  • the method for correcting the yaw angle of an aircraft can be applied to various movable objects driven by a motor or a motor, including but not limited to an aircraft, a robot, and the like.
  • the aircraft may include an unmanned aerial vehicle (UAV), an unmanned aerial vehicle, and the like. Take UAV as an example for illustration.
  • UAV includes a fuselage, a boom connected to the fuselage, a controller, and a power unit.
  • the controller is connected to a power device, and the power device is installed on the arm and is used to provide flying power for the aircraft.
  • the controller is configured to execute the above-mentioned yaw angle correction method of the aircraft to correct the yaw angle of the aircraft, and generate a control instruction according to the corrected yaw angle of the aircraft, and send the control instruction to the ESC of the power unit (electronic Governor).
  • the ESC controls the drive motor of the power unit through this control instruction.
  • the controller is configured to execute the yaw angle correction method of the aircraft to correct the yaw angle of the aircraft, and send the corrected yaw angle of the aircraft to the ESC, and the ESC generates a control instruction based on the corrected yaw angle of the aircraft,
  • the driving motor of the power unit is controlled by the control instruction.
  • An unmanned aerial vehicle may include one or more arms that extend radially from the fuselage.
  • the connection between the arm and the fuselage may be an integral connection or a fixed connection.
  • the controller is configured to execute the above-mentioned yaw angle correction method of the aircraft to correct the yaw angle of the aircraft, and generate a control instruction according to the corrected yaw angle of the aircraft, and send the control instruction to the ESC of the power unit so that the ESC passes
  • the control instruction controls a drive motor of the power unit.
  • the controller is a device with certain logic processing capabilities, such as a control chip, a single-chip microcomputer, and a Microcontroller Unit (MCU).
  • Power unit includes: ESC, drive motor and propeller.
  • the ESC is located inside the arm or body.
  • the ESC is connected to the controller and the drive motor respectively.
  • the ESC is electrically connected to the driving motor and is used to control the driving motor.
  • the driving motor is installed on the arm, and the rotating shaft of the driving motor is connected to the propeller.
  • the propeller generates a force that moves the UAV under the driving of a drive motor, for example, a lift force or a thrust force that moves the UAV.
  • the full name of the ESC is electronic speed governor, which adjusts the speed of the driving motor of the UAV according to the control signal.
  • the controller is the execution subject that executes the yaw angle correction method of the aircraft, and the ESC controls the driving motor based on the control command generated by the corrected yaw angle of the aircraft.
  • the principle of ESC controlling the driving motor is roughly as follows:
  • the driving motor is an open-loop control element that converts electrical pulse signals into angular displacement or linear displacement. Under non-overload conditions, the speed and stop position of the drive motor depend only on the frequency and number of pulse signals, and are not affected by the load change.
  • the driver When the driver receives a pulse signal, it drives the drive motor of the power unit Rotate a fixed angle in the set direction, and its rotation runs at a fixed angle. Therefore, the ESC can control the amount of angular displacement by controlling the number of pulses, thereby achieving the purpose of accurate positioning; at the same time, the speed and acceleration of the driving motor can be controlled by controlling the pulse frequency, thereby achieving the purpose of speed regulation.
  • the main functions of UAV are aerial photography, real-time image transmission, and detection of high-risk areas.
  • a camera component is connected to the UAV.
  • the UAV and the camera component are connected through a connection structure, such as a vibration reduction ball. This camera module is used to obtain the shooting picture during the aerial photography of UAV.
  • the camera component includes: a gimbal and a shooting device.
  • the gimbal is connected to the UAV.
  • the photographing device is mounted on the pan / tilt head.
  • the photographing device may be an image acquisition device for acquiring images.
  • the photographing device includes, but is not limited to, a camera, a video camera, a camera, a scanner, a camera phone, and the like.
  • the pan / tilt is used to carry a photographing device, so as to fix the photographing device, or adjust the posture of the photographing device (for example, change the height, inclination, and / or direction of the photographing device), and keep the photographing device in a set posture. on.
  • the pan / tilt is mainly used to keep the shooting device in a set posture stably, prevent the shooting screen of the shooting device from shaking, and ensure the stability of the shooting screen.
  • the gimbal includes: gimbal motor and gimbal base.
  • the gimbal motor is installed on the gimbal base.
  • the controller of the aircraft can also control the PTZ motor through the ESC of the power unit. Specifically, the controller of the aircraft is connected to the ESC, and the ESC is electrically connected to the PTZ motor.
  • the controller of the aircraft generates the PTZ motor control instructions. Adjust the PTZ motor control instruction to control the PTZ motor.
  • the gimbal base is connected to the body of the UAV, and is used to fix the camera module on the body of the UAV.
  • the gimbal motor is connected to the gimbal base and camera.
  • the gimbal can be a multi-axis gimbal.
  • the PTZ motor can drive the rotation of the shooting device, so as to meet the horizontal rotation and tilting angle adjustment of the shooting shaft. Manually remotely control the rotation of the PTZ motor or use the program to rotate the motor automatically, so as to achieve all-round scanning monitoring;
  • the disturbance of the shooting device is cancelled in real time by the rotation of the gimbal motor to prevent the shooting device from shaking and ensure the stability of the shooting picture.
  • the photographing device is mounted on the pan / tilt head, and an inertial measurement unit is provided on the photographing device, and the inertial measurement unit is configured to acquire attitude information of the photographing device.
  • the yaw angle of the UAV is an important parameter in controlling the attitude of the UAV, and the driving motor needs to be controlled based on the yaw angle of the UAV.
  • the yaw angle of the UAV is obtained in real time through the controller of the aircraft, and the necessary attitude information is provided for the attitude control of the UAV. That is, the correct estimation of the yaw angle of the UAV is particularly important for the attitude control of the UAV. If the yaw angle of the UAV is incorrectly estimated, the UAV cannot fly in a preset direction or trajectory in the light, and may be unstable due to the bomber.
  • the yaw angle of the UAV is usually obtained based on the data collected by the magnetometer.
  • the yaw angle obtained by this method is easily affected by external factors.
  • the magnetometer data may be Severe errors lead to a large deviation in the yaw angle estimation, and the accuracy of the yaw angle estimation of the aircraft is low.
  • an external GPS module In order to improve the accuracy of the yaw angle estimation of the UAV, it is common to use an external GPS module to estimate a yaw angle based on the GPS to correct the yaw angle value based on a magnetometer.
  • the GPS signal may be unstable sometimes, so that in some cases, the yaw angle estimated by the magnetometer cannot be effectively corrected even if there is a deviation. That is, using an external GPS module to correct the yaw angle of the UAV can improve the accuracy of the yaw angle estimation of the aircraft to a certain extent, but the effect is not good, especially when the GPS signal is weak, using the external GPS The module failed to perform effective course correction.
  • the main purpose of the embodiments of the present invention is to provide an aircraft yaw angle correction method, device and aircraft, which can correct the aircraft yaw angle based on the attitude information provided by the gimbal, and effectively improve the estimated aircraft yaw angle. Accuracy, thereby improving the safety and stability of aircraft flight.
  • the idea of the present invention is: first, an attitude sensor component is provided on the aircraft, and the initial attitude information of the aircraft is collected through the attitude sensor component, and the attitude sensor component sends the attitude sensor component to the controller of the aircraft to Make the controller of the aircraft obtain the initial attitude information of the aircraft, wherein the initial attitude information of the aircraft includes the initial angular velocity of the aircraft and the initial angle of the aircraft; then, the controller of the aircraft acquires the angular velocity of the gimbal base; then , The controller of the aircraft can compare the obtained yaw angular velocity in the initial angular velocity of the aircraft with the yaw angular velocity in the angular velocity of the gimbal base; finally, based on the comparison result, the aircraft controller's The heading angle is corrected.
  • the initial angle of the aircraft is calculated based on the difference. To correct the yaw angle in Yaw angle of the aircraft.
  • the difference between the yaw angular velocity in the initial angular velocity of the aircraft and the yaw angular velocity in the angular velocity of the gimbal base is used to correct the yaw angle in the initial angle of the aircraft, which can effectively improve the estimated aircraft yaw The accuracy of the heading angle.
  • This estimation method can avoid the interference of external factors, that is, it has high estimation accuracy under the environment of weak GPS signal and strong magnetic interference, thereby effectively improving the safety and stability of the aircraft flight.
  • FIG. 1 is a schematic flowchart of an aircraft yaw angle correction method according to an embodiment of the present invention.
  • the yaw correction method of the aircraft may be executed by various electronic devices with certain logic processing capabilities, such as an aircraft, a control chip, and the like.
  • the aircraft may include a drone, an unmanned ship, and the like.
  • the following electronic devices are described using an aircraft as an example.
  • the aircraft is connected with a gimbal.
  • the gimbal includes a gimbal motor and a gimbal base.
  • the gimbal can be a multi-axis gimbal, such as a two-axis gimbal and a three-axis gimbal.
  • the following three-axis gimbal is used as an example. Instructions.
  • the aircraft is provided with an attitude sensor assembly.
  • attitude sensor assembly For the description of the specific structure of the aircraft and the gimbal, reference may be made to the above description, and therefore, it will not be repeated here.
  • the yaw angle correction method of the aircraft includes:
  • Obtaining the initial attitude information of the aircraft by the aircraft specifically includes: first acquiring the initial attitude information by an attitude sensor component provided on the aircraft, and sending the initial attitude information to the aircraft, so that the aircraft obtains the initial attitude information.
  • the initial attitude information of the aircraft includes the initial angular velocity of the aircraft and the initial angle of the aircraft.
  • the attitude sensor component includes: a magnetometer, a first Inertial Measurement Unit (IMU), a GPS (Global Positioning System), and the like.
  • the magnetometer can be used to collect the initial angle of the aircraft, and the first inertial measurement unit can be used to collect the initial angular velocity of the aircraft.
  • FIG. 2 includes four coordinate systems: an aircraft coordinate system, a gimbal base coordinate system, a gimbal motor coordinate system, and a photographing device coordinate system.
  • the top of the aircraft is the fuselage of the aircraft.
  • the attitude sensor assembly is located on the fuselage.
  • the bottom of the aircraft's fuselage and the closest to the fuselage is the gimbal base.
  • a vibrating ball (not shown) is connected.
  • a gimbal motor is located at the lower end of the gimbal base, and a photographing device is positioned at the bottom.
  • the photographing device is provided with a second inertial measurement unit for collecting the angular velocity of the photographing device.
  • the gimbal base and the camera are connected by a three-axis motor in the ZXY Euler angle sequence, that is, from top to bottom, the yaw axis Yaw (Z axis), the roll axis Roll (X axis), and the pitch axis Pitch ( Y axis) three motor shafts.
  • the Inertial Measurement Unit is a device that measures the three-axis attitude angle (or angular rate) and acceleration of an object.
  • the IMU is a six-axis IMU.
  • one IMU contains three single-axis accelerometers and three single-axis gyroscopes.
  • the accelerometer detects the acceleration signals of the object in the carrier coordinate system independently of the three axes
  • the gyroscope detects the relative Navigating the angular velocity signal of the coordinate system, measuring the angular velocity and acceleration of the object in three-dimensional space, and using this solution to calculate the attitude of the object.
  • the six-axis IMU can detect its own angle information in the inertial system.
  • the first inertial measurement unit provided on the aircraft acquires the initial angular velocity of the aircraft, and the initial angular velocity of the aircraft can be used as a vector.
  • Means the initial angular velocity of the aircraft Represented as the coordinate vector of the angular velocity of the aircraft relative to the inertial system in the aircraft coordinate system, the initial angular velocity of the aircraft includes: the initial roll angular velocity of the aircraft, the initial pitch angular velocity of the aircraft, and the initial yaw angular velocity of the aircraft.
  • the second inertial measurement unit provided on the photographing device acquires the angular velocity of the photographing device, and the angular velocity of the photographing device can be obtained by using a vector Indicates the angular velocity of the camera Expressed as the coordinate vector of the angular velocity of the imaging device relative to the inertial system in the imaging device coordinate system. among them, Indicates the roll angular velocity of the camera, Indicates the pitch angular velocity of the camera, Expressed as the yaw rate of the camera.
  • the inertial system also known as the inertial coordinate system, the inertial reference system, the geodetic coordinate system, or the world coordinate system. Since the unmanned aerial vehicle can be placed at any position, a reference coordinate is selected to describe the The position of each part and use it to describe the position of any object in the environment. This coordinate system is called the inertial system.
  • Magnetometers also called geomagnetism and magnetic sensors, can be used to test the strength and direction of magnetic fields and locate the orientation of equipment. Based on the advantages of low price, light weight, and compact structure of the magnetometer, it is widely used in the collection of aircraft angles.
  • the initial angle of the aircraft is obtained through magnetometer acquisition.
  • the initial angle of the aircraft can be represented by a vector ( ⁇ p , ⁇ p , ⁇ p ), that is, the initial angle of the aircraft ( ⁇ p , ⁇ p , ⁇ p ) is expressed as the relative of the aircraft.
  • ⁇ p represents the initial roll angle of the aircraft
  • ⁇ p represents the initial pitch angular velocity of the aircraft
  • ⁇ p represents the initial yaw angle of the aircraft
  • the initial angular velocity of the aircraft is Then the yaw rate of the aircraft, that is, the first yaw rate is
  • the quaternion is used to describe the attitude of the aircraft, the gimbal base, the gimbal motor, and the shooting device.
  • the root cause of the universal joint lock phenomenon is that the rotation matrix is sequentially performed. It is assumed that the rotation is about the x-axis, then the y-axis, and finally the z-axis. This causes the object to actually rotate around its own coordinate system.
  • the x-axis rotation is not the x-axis rotation of the inertial frame.
  • the performance is that under an Euler angle (x1, y1, z1), changing the value of x1, the object will rotate around the x-axis of the object's own coordinate system, instead of the x-axis of the world's inertial system. Finally, when the x-axis of the object is rotated to coincide with the z-axis of the inertial system, the x1 and z1 rotation results of the Euler angle are the same, and one dimension is lost. This is the universal joint lock phenomenon.
  • the system that uses three quantities to represent the orientation of the three-dimensional space will have the problem of the gimbal lock phenomenon, and the description by the quaternion can effectively avoid the gimbal lock phenomenon.
  • the attitude of the camera relative to the inertial coordinate system is four
  • the quaternion is q ic
  • Obtaining the angular velocity of the gimbal base by the aircraft specifically includes: acquiring the angle of the gimbal motor; determining the angular velocity of the gimbal motor according to the angle of the gimbal motor; and acquiring the angular velocity of the photographing device, the The angular velocity of the photographing device is acquired by the inertial measurement unit; the angular velocity of the base of the gimbal is determined according to the angular velocity of the gimbal motor, the angle of the gimbal motor, and the angular velocity of the photographing device.
  • the specific process of the aircraft according to the angle of the gimbal motor may be: setting a linear Hall sensor on the gimbal motor, acquiring the angle of the gimbal motor through the linear hall sensor, and sending the angle of the gimbal motor to the aircraft So that the aircraft can obtain the angle of the gimbal motor.
  • determining the angular velocity of the pan / tilt motor according to the angle of the pan / tilt motor includes: taking the angle of the pan / tilt motor as an input, and calculating the pan / tilt motor through a second-order discrete nonlinear tracking differentiator. Angular velocity.
  • r 1 (k + 1) r 1 (k) + T ⁇ r 2 (k)
  • r 2 (k + 1) r 2 (k) + T ⁇ fst (r 1 (k) -P (k), r 2 (k), ⁇ , h)
  • P (k) [ ⁇ (k) ⁇ (k) ⁇ (k) ]
  • T is the angle of the gimbal motor at time k
  • r 1 (k) is the value determined by P (k) for tracking P (k) by the second-order discrete nonlinear tracking differentiator
  • r 2 (k) is the derivative of P (k)
  • k + 1 is the value corresponding to the k + 1th time
  • fst () is the highest speed control function
  • is the third parameter in the highest speed control function
  • is used to determine Tracking speed
  • h is the fourth parameter in the highest speed control function.
  • the fastest control function also known as the fast control function, is the optimal control function that can complete the prescribed control action in the shortest time.
  • x 1 is a parameter at the first position of the fastest control function
  • x 2 is a parameter at the fourth position of the fastest control function
  • is a parameter at the third position of the fastest control function
  • sgn () is the step function
  • a is the operation parameter of the step function
  • y x 1 + T ⁇ x 2 is the third operation parameter of the fastest control function
  • It is the fourth operation parameter of the fastest control function.
  • the function implemented by the second-order discrete nonlinear tracking differentiator is to track P (k) through r 1 (k), to obtain the differential r 2 (k) of P (k), and the differential of P (k) is P derivative of (k)
  • the aircraft determining the angular velocity of the gimbal base according to the angular velocity of the gimbal motor, the angle of the gimbal motor, and the angular velocity of the photographing device specifically includes: determining a rotation transformation matrix according to the angle of the gimbal motor
  • the rotation transformation matrix is a rotation matrix of a gimbal base coordinate system to a gimbal motor coordinate system; the gimbal is determined according to an angular velocity of the gimbal motor, the rotation transformation matrix, and an angular velocity of the photographing device.
  • the angular velocity of the base specifically includes: determining a rotation transformation matrix according to the angle of the gimbal motor
  • the rotation transformation matrix is a rotation matrix of a gimbal base coordinate system to a gimbal motor coordinate system; the gimbal is determined according to an angular velocity of the gimbal motor, the rotation transformation matrix, and an angular velocity of the photographing device.
  • the rotation transformation matrix D is determined according to the angle ( ⁇ , ⁇ , ⁇ ) of the motor. Specifically, let R z ( ⁇ ), R x ( ⁇ ), and R y ( ⁇ ) be unit rotation arrays rotating around the Z, X, and Y axes, respectively. According to the basic principles of inertial navigation, their R z ( ⁇ ), R The values of x ( ⁇ ) and R y ( ⁇ ) are as follows:
  • D is the rotation transformation matrix
  • ( ⁇ , ⁇ , ⁇ ) is the angle of the motor
  • is the roll angle in the angle of the gimbal motor
  • is the pitch in the angle of the gimbal motor
  • Angle, ⁇ is the yaw angle among the angles of the gimbal motor.
  • the formula for calculating the angular velocity of the gimbal base is:
  • the angular velocity of the gimbal base includes the roll angular velocity of the gimbal base, the pitch angular velocity of the gimbal base, and the yaw angular velocity of the gimbal base.
  • Represents the initial roll angular velocity of the aircraft Represents the initial pitch angular velocity of the aircraft, Expressed as the initial yaw rate of the aircraft.
  • the angular velocity of the gimbal base is Then the yaw angular velocity of the gimbal base, that is, the second yaw angular velocity is
  • the aircraft is determined according to the first yaw angular velocity and the second yaw angular velocity.
  • the yaw angle of the aircraft is corrected to obtain a corrected yaw angle of the aircraft.
  • the preset threshold is determined by whether the aircraft receives a yaw operation instruction. Specifically, the preset threshold determined by whether the aircraft receives a yaw operation instruction includes:
  • the preset threshold is a first preset threshold
  • the preset threshold is a second preset threshold, wherein the second preset threshold is smaller than the first preset threshold.
  • the yaw angle of the gimbal base moves in real time following the yaw angle of the aircraft, that is, the second yaw angular velocity With first yaw rate It is almost synchronous.
  • represents a preset threshold.
  • ⁇ 1 represents a first preset threshold.
  • ⁇ 2 represents a second preset threshold.
  • the second preset threshold ⁇ 2 is smaller than the first preset threshold ⁇ 1 .
  • represents a difference between the first yaw angular velocity and the second yaw angular velocity, and ⁇ ⁇ ⁇ , it can be judged that the magnetometer is disturbed. At this time, the aircraft needs to be corrected.
  • the aircraft is based on the first yaw angular velocity With the second yaw angular velocity
  • the yaw angle ⁇ p in the initial angle of the aircraft is modified to obtain a corrected yaw angle ⁇ ′ p of the aircraft.
  • Correcting the yaw angle ⁇ p in the initial angle of the aircraft includes: according to the first yaw angular velocity With the second yaw angular velocity To obtain a yaw angle compensation value ⁇ p ; correct the yaw angle ⁇ p in the initial angle of the aircraft according to the yaw angle compensation value ⁇ p .
  • the calculation formula for the yaw angle compensation value based on the difference between the first yaw angular velocity and the second yaw angular velocity is:
  • ⁇ p is the yaw angle compensation value
  • t 0 is the time corresponding to obtaining the initial attitude information of the aircraft
  • ⁇ T is the period for correcting the yaw angle in the initial angle of the aircraft.
  • ⁇ T 5T, that is, yaw angle correction is performed once every 5 sampling intervals, Is the first yaw angular velocity, Is the second yaw angular velocity.
  • ⁇ ′ p ⁇ p + ⁇ p
  • ⁇ ′ p is a modified yaw angle
  • ⁇ p is a yaw angle in an initial angle of the aircraft
  • ⁇ p is a yaw angle compensation value
  • the yaw angle in the initial angle of the aircraft is corrected by the difference between the yaw angular speed in the initial angular speed of the aircraft and the yaw angular speed in the angular speed of the gimbal base, which can effectively improve The accuracy of estimating the yaw angle of the aircraft.
  • This estimation method can avoid the interference of external factors, that is, it has a high estimation accuracy under the environment of weak GPS signals and strong magnetic interference, thereby effectively improving the safety and flight of the aircraft. stability.
  • FIG. 3 is a schematic diagram of an aircraft yaw angle correction device according to an embodiment of the present invention.
  • the aircraft yaw correction device 30 may be configured in various electronic devices, such as an aircraft and a control chip.
  • the aircraft may include an unmanned aerial vehicle, an unmanned ship, and the like. The following electronic devices are described using an aircraft as an example.
  • the aircraft is connected with a gimbal.
  • the gimbal includes a gimbal base, a gimbal motor connected to the gimbal base, and a camera device connected to the gimbal motor.
  • the gimbal can be a multi-axis gimbal, such as a two-axis gimbal. PTZ and 3-axis PTZ. The following three-axis PTZ is used as an example.
  • the aircraft is provided with an attitude sensor assembly. For the description of the specific structure of the aircraft and the gimbal, reference may be made to the above description, and therefore, it will not be repeated here.
  • the aircraft yaw correction device 30 includes:
  • An initial attitude information acquisition module 301 is configured to obtain initial attitude information of the aircraft and to obtain a yaw angular velocity of the aircraft according to an initial angular velocity of the aircraft, wherein the yaw angular velocity of the aircraft is a first yaw Angular velocity.
  • Obtaining the initial attitude information of the aircraft by the initial attitude information acquisition module 301 specifically includes: first acquiring initial attitude information by an attitude sensor component provided on the aircraft, and sending the initial attitude information to the initial attitude information acquisition module 301,
  • the initial posture information acquisition module 301 acquires the initial posture information.
  • the initial attitude information of the aircraft includes the initial angular velocity of the aircraft and the initial angle of the aircraft.
  • the first yaw angular velocity may be further obtained.
  • the initial angular velocity of the aircraft is Then the first yaw angular velocity is
  • the base angular velocity obtaining module 302 is configured to obtain the angular velocity of the gimbal base and obtain the yaw angular velocity of the gimbal base according to the angular velocity of the gimbal base, wherein the gimbal base
  • the yaw angular velocity is the second yaw angular velocity.
  • the angular velocity of the gimbal base is Then the second yaw angular velocity is
  • the pedestal angular velocity acquisition module 302 acquiring the angular velocity of the PTZ base specifically includes: acquiring the angle of the PTZ motor; determining the angular velocity of the PTZ motor according to the angle of the PTZ motor; The angular velocity of the photographing device is acquired by the inertial measurement unit; the angular velocity of the gimbal base is determined according to the angular velocity of the gimbal motor, the angle of the gimbal motor, and the angular velocity of the photographing device. Angular velocity.
  • the specific process of the base angular velocity acquisition module 302 according to the angle of the gimbal motor may be: setting a linear Hall sensor on the gimbal motor, acquiring the angle of the gimbal motor through the linear hall sensor, and integrating the gimbal motor The angle is sent to the base angular velocity acquisition module 302, so that the base angular velocity acquisition module 302 can obtain the angle of the gimbal motor.
  • the speed measurement element is not directly set on the PTZ motor, and the angular velocity of the PTZ motor cannot be directly measured. Therefore, in the embodiment of the present invention, in order to obtain the angular velocity of the gimbal motor, since the angle of the gimbal motor can be acquired by a linear Hall sensor, the angular velocity of the gimbal motor can be obtained by using a differentiator.
  • the base angular velocity acquisition module 302 determines the angular velocity of the pan / tilt motor according to the angle of the pan / tilt motor including: using the angle of the pan / tilt motor as an input, and calculating through a second-order discrete nonlinear tracking differentiator. Get the angular velocity of the gimbal motor.
  • r 1 (k + 1) r 1 (k) + T ⁇ r 2 (k)
  • r 2 (k + 1) r 2 (k) + T ⁇ fst (r 1 (k) -P (k), r 2 (k), ⁇ , h)
  • P (k) [ ⁇ (k) ⁇ (k) ⁇ (k) ]
  • T is the angle of the gimbal motor at time k
  • r 1 (k) is the value determined by P (k) for tracking P (k) by the second-order discrete nonlinear tracking differentiator
  • r 2 (k) is the derivative of P (k)
  • k + 1 is the value corresponding to the k + 1th time
  • fst () is the highest speed control function
  • is the third parameter in the highest speed control function
  • is used to determine Tracking speed
  • h is the fourth parameter in the highest speed control function.
  • the function implemented by the second-order discrete nonlinear tracking differentiator is to track P (k) through r 1 (k), to obtain the differential r 2 (k) of P (k), and the differential of P (k) is P derivative of (k)
  • the base angular velocity acquisition module 302 determines the angular velocity of the gimbal base according to the angular velocity of the gimbal motor, the angle of the gimbal motor, and the angular velocity of the photographing device, and specifically includes: The angle determines a rotation transformation matrix, the rotation transformation matrix being a rotation matrix of a gimbal base coordinate system to a gimbal motor coordinate system; according to the angular velocity of the gimbal motor, the rotation transformation matrix, and the angular velocity of the photographing device, Determine the angular velocity of the gimbal base.
  • the calculation formula of the base angular velocity obtaining module 302 to determine the rotation transformation matrix according to the angle of the gimbal motor is:
  • D is the rotation transformation matrix
  • ( ⁇ , ⁇ , ⁇ ) is the angle of the motor
  • is the roll angle in the angle of the gimbal motor
  • is the pitch in the angle of the gimbal motor
  • Angle, ⁇ is the yaw angle among the angles of the gimbal motor.
  • the base angular velocity acquisition module 302 is based on the angular velocity r 2 of the gimbal motor, the rotation transformation matrix D, and the angular velocity of the photographing device.
  • Determine the angular velocity of the gimbal base Specifically, the formula for calculating the angular velocity of the pedestal angular velocity obtaining module 302 is:
  • the comparison module 303 is configured to compare the first yaw angular velocity with the second yaw angular velocity.
  • the first yaw angular velocity is compared by the comparison module 303 With second yaw rate By comparison, you can determine the size relationship between the two, the difference between the two, and so on.
  • a correction module 304 is configured to, when a difference between the first yaw angular velocity and the second yaw angular velocity is greater than or equal to a preset threshold, according to the first yaw angular velocity and the second yaw angular velocity, Correct the yaw angle of the aircraft to obtain a corrected yaw angle of the aircraft.
  • a preset threshold determination module 305 is configured to determine the preset threshold according to a determination as to whether the aircraft has received a yaw operation instruction.
  • the preset threshold determination module 305 is specifically configured to: when the aircraft receives a yaw operation instruction, determine that the preset threshold is a first preset threshold; when the aircraft does not receive a yaw operation instruction, It is determined that the preset threshold is a second preset threshold, wherein the second preset threshold is smaller than the first preset threshold.
  • the yaw angle of the gimbal base moves in real time following the yaw angle of the aircraft, that is, the second yaw angular velocity With first yaw rate It is almost synchronous.
  • represents a preset threshold.
  • ⁇ 1 represents a first preset threshold.
  • ⁇ 2 represents a second preset threshold.
  • the second preset threshold ⁇ 2 is smaller than the first preset threshold ⁇ 1 .
  • the correction module 304 needs to correct the yaw angle of the aircraft.
  • the correction module 304 is based on the first yaw angular velocity.
  • the yaw angle ⁇ p in the initial angle of the aircraft is modified to obtain a corrected yaw angle ⁇ ′ p of the aircraft.
  • the correction module 304 is based on the first yaw angular velocity.
  • Correcting the yaw angle ⁇ p in the initial angle of the aircraft includes: according to the first yaw angular velocity With the second yaw angular velocity To obtain a yaw angle compensation value ⁇ p ; correct the yaw angle ⁇ p in the initial angle of the aircraft according to the yaw angle compensation value ⁇ p .
  • the correction module 304 calculates the yaw angle compensation value according to the difference between the first yaw angular velocity and the second yaw angular velocity as:
  • ⁇ p is the yaw angle compensation value
  • t 0 is the time corresponding to obtaining the initial attitude information of the aircraft
  • ⁇ T is the period for correcting the yaw angle in the initial angle of the aircraft.
  • ⁇ T 5T, that is, yaw angle correction is performed once every 5 sampling intervals, Is the first yaw angular velocity, Is the second yaw angular velocity.
  • the correction formula for the yaw angle of the aircraft obtained by the correction module 304 is:
  • ⁇ ′ p ⁇ p + ⁇ p
  • ⁇ ′ p is a modified yaw angle
  • ⁇ p is a yaw angle in an initial angle of the aircraft
  • ⁇ p is a yaw angle compensation value
  • the aircraft yaw angle correction device 30 can execute the aircraft yaw angle correction method provided by the method embodiment, and has corresponding function modules and beneficial effects of the execution method.
  • the aircraft yaw angle correction method provided in the embodiment of the method invention.
  • FIG. 4 is a schematic diagram of an aircraft hardware structure according to an embodiment of the present invention. As shown in FIG. 4, the aircraft 40 includes:
  • One processor 401 is taken as an example in FIG. 4.
  • the processor 401 and the memory 402 may be connected through a bus or other manners. In FIG. 4, the connection through the bus is taken as an example.
  • the memory 402 is a non-volatile computer-readable storage medium, and can be used to store non-volatile software programs, non-volatile computer executable programs, and modules.
  • Program instructions / modules for example, the initial attitude information acquisition module 301, the base angular velocity acquisition module 302, the comparison module 303, the correction module 304, and the preset threshold determination module 405 shown in FIG. 3).
  • the processor 401 executes various functional applications and data processing of the aircraft by running non-volatile software programs, instructions, and units stored in the memory 402, that is, an aircraft yaw angle correction method of the method embodiment is implemented.
  • the memory 402 may include a storage program area and a storage data area, wherein the storage program area may store an operating system and application programs required for at least one function; the storage data area may store data created according to aircraft use, and the like.
  • the memory 402 may include a high-speed random access memory, and may further include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other non-volatile solid-state storage device.
  • the memory 402 may optionally include a memory remotely set relative to the processor 401, and these remote memories may be connected to the aircraft through a network. Examples of the network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
  • the one or more units are stored in the memory 402, and when executed by the one or more processors 401, execute the aircraft yaw angle correction method in the method embodiment, for example, execute the above-described
  • the method steps 101 to 104 in FIG. 1 implement the functions of the modules 301-305 in FIG. 3.
  • the aircraft 40 further includes a power unit 403.
  • the power unit 403 is used to provide flight power for the aircraft.
  • the power unit 403 is connected to the processor 401.
  • the power device 403 includes a driving motor 4031 and an ESC 4032.
  • the ESC 4032 is electrically connected to the driving motor 4031 and is used to control the driving motor 4031. Specifically, the ESC 4032 generates a control instruction based on the corrected yaw angle of the aircraft obtained after the processor 401 executes the aircraft yaw angle correction method, and controls the driving motor 4032 through the control instruction.
  • the aircraft 40 can execute the aircraft yaw angle correction method provided in Embodiment 1 of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
  • the aircraft yaw angle correction method provided in Embodiment 1 of the present invention.
  • An embodiment of the present invention provides a computer program product.
  • the computer program product includes a computer program stored on a non-volatile computer-readable storage medium.
  • the computer program includes program instructions.
  • the program instructions are executed by a computer, At that time, the computer is caused to execute the aircraft yaw angle correction method as described above. For example, steps 101 to 104 of the method in FIG. 1 described above are performed to implement the functions of the modules 301-305 in FIG. 3.
  • An embodiment of the present invention provides a non-volatile computer-readable storage medium.
  • the computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to cause a computer to execute the aircraft yaw as described above.
  • Angle correction method For example, steps 101 to 104 of the method in FIG. 1 described above are performed to implement the functions of the modules 301-305 in FIG. 3.
  • the device embodiments described above are only schematic, and the modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical Modules can be located in one place or distributed to multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the objective of the solution of this embodiment.
  • the embodiments can be implemented by means of software plus a general hardware platform, and of course, they can also be implemented by hardware.
  • Those of ordinary skill in the art can understand that all or part of the processes in the method of the embodiment can be completed by computer program instructions related hardware.
  • the program can be stored in a computer-readable storage medium, and the program is being executed. In this case, the process of the embodiment of each method may be included.
  • the storage medium may be a magnetic disk, an optical disc, a read-only memory (Read-Only Memory, ROM), or a random access memory (Random, Access Memory, RAM).

Landscapes

  • Engineering & Computer Science (AREA)
  • Aviation & Aerospace Engineering (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Studio Devices (AREA)
  • Electric Propulsion And Braking For Vehicles (AREA)

Abstract

A correction method and device for a yaw of an aircraft, and an aircraft. The method comprises: acquiring initial attitude information of an aircraft, the initial attitude information of the aircraft comprising an initial angle of the aircraft (101); acquiring a yaw rate of the aircraft, i.e., a first yaw rate, according to the initial angle of the aircraft (102); acquiring an angular rate of a pan-tilt base (103); acquiring a yaw rate of the pan-tilt base, i.e., a second yaw rate according to the angular rate of the pan-tilt base (104); comparing the first yaw rate with the second yaw rate (105); and when the difference between the first yaw rate and the second yaw rate is larger than or equal to a preset threshold, correcting the yaw of the aircraft according to the first yaw rate and the second yaw rate, so as to obtain the corrected yaw of the aircraft (106). The correction method of a yaw of an aircraft can effectively improve the accuracy of the estimation of a yaw of an aircraft.

Description

飞行器偏航角修正方法、装置及飞行器Method, device for correcting yaw angle of aircraft and aircraft
相关申请的交叉引用Cross-reference to related applications
本申请要求申请号为201810501521.3,申请日为2018年5月23日申请的中国专利申请的优先权,其全部内容通过引用结合于本文。This application claims priority from a Chinese patent application filed with an application number of 201810501521.3 and an application date of May 23, 2018, the entire contents of which are incorporated herein by reference.
技术领域Technical field
本发明实施例涉及飞行器技术领域,尤其涉及一种飞行器偏航角修正方法、飞行器偏航角修正装置,以及飞行器。Embodiments of the present invention relate to the technical field of aircraft, and in particular, to a method for correcting a yaw angle of an aircraft, a device for correcting a yaw angle of an aircraft, and an aircraft.
背景技术Background technique
近年来,飞行器,如无人飞行器(Unmanned Aerial Vehicle,UAV),也称无人机得到了越来越广泛的应用。UAV是一种处在迅速发展中的新概念装备,其具有体积小、重量轻、机动灵活、反应快速、无人驾驶、操作要求低的优点。UAV的各个动作(或姿态)通常是通过控制UAV的动力装置中的多个驱动电机不同转速实现的。其中,UAV偏航角是对UAV的姿态(如前、后、左、右、上、下等飞行姿态)进行控制中的重要参数,也即UAV的偏航角正确估算对UAV的姿态控制尤其重要,若UAV的偏航角估算错误,UAV轻则无法按照预设的方向或轨迹飞行,重则可能失稳以致炸机,因此,如何提高偏航角的估算准确度具有十分重要的意义。In recent years, aircraft, such as unmanned aerial vehicles (UAVs), also known as unmanned aerial vehicles (UAVs), have been used more and more widely. UAV is a new concept equipment under rapid development. It has the advantages of small size, light weight, flexible maneuverability, fast response, unmanned driving, and low operating requirements. The various actions (or attitudes) of UAV are usually realized by controlling different speeds of multiple drive motors in the power unit of UAV. Among them, the UAV yaw angle is an important parameter in controlling the attitude of the UAV (such as front, rear, left, right, up, down, etc.), that is, the correct estimation of the yaw angle of the UAV is particularly important for the attitude control of the UAV. Importantly, if the yaw angle of the UAV is incorrectly estimated, the UAV may not be able to fly in a preset direction or trajectory, and in the worst case it may be unstable and cause a bomber. Therefore, how to improve the accuracy of the yaw angle estimation is of great significance.
目前通常是基于磁力计采集的数据得到飞行器(如UAV等)的偏航角,但采用该方法得到偏航角很容易受到外界因素的影响,尤其是当磁力计处于强磁干扰环境中时,磁力计的数据可能严重错误,导致偏航角的估算出现较大的偏差,飞行器的偏航角的估算准确度低。At present, the yaw angle of an aircraft (such as UAV) is usually obtained based on data collected by a magnetometer, but the yaw angle obtained by this method is easily affected by external factors, especially when the magnetometer is in a strong magnetic interference environment. The magnetometer data may be seriously wrong, leading to a large deviation in the yaw angle estimation, and the accuracy of the yaw angle estimation of the aircraft is low.
发明内容Summary of the Invention
本发明实施例提供一种飞行器偏航角修正方法、装置及飞行器,可以有效的提高估算飞行器偏航角的准确度。Embodiments of the present invention provide an aircraft yaw angle correction method and device, and an aircraft, which can effectively improve the accuracy of estimating the aircraft yaw angle.
本发明实施例公开了如下技术方案:The embodiments of the present invention disclose the following technical solutions:
第一方面,本发明实施例提供了一种飞行器偏航角修正方法,所述飞行器连接有云台,所述云台包括云台基座、与所述云台基座相连的云台电机以及与所述云台电机相连的拍摄装置,所述方法包括:According to a first aspect, an embodiment of the present invention provides a method for correcting a yaw angle of an aircraft. The aircraft is connected with a gimbal. The gimbal includes a gimbal base, a gimbal motor connected to the gimbal base, and The shooting device connected to the PTZ motor, the method includes:
获取所述飞行器的初始姿态信息,所述飞行器的初始姿态信息包括飞行器的初始角速度;Acquiring initial attitude information of the aircraft, where the initial attitude information of the aircraft includes an initial angular velocity of the aircraft;
根据所述飞行器的初始角速度,获取所述飞行器的偏航角速度,其中,所述飞行器的偏航角速度为第一偏航角速度;Obtaining the yaw angular velocity of the aircraft according to the initial angular velocity of the aircraft, wherein the yaw angular velocity of the aircraft is a first yaw angular velocity;
获取所述云台基座的角速度;Obtaining the angular velocity of the gimbal base;
根据所述云台基座的角速度,获取所述云台基座的偏航角速度,其中,所述云台基座的偏航角速度为第二偏航角速度;Obtaining the yaw angular velocity of the gimbal base according to the angular velocity of the gimbal base, wherein the yaw angular velocity of the gimbal base is a second yaw angular velocity;
比较所述第一偏航角速度和所述第二偏航角速度;Comparing the first yaw angular velocity with the second yaw angular velocity;
当所述第一偏航角速度与所述第二偏航角速度的差值大于或等于预设阈值时,根据所述第一偏航角速度与所述第二偏航角速度,对所述飞行器的偏航角进行修正,以得到修正后的所述飞行器的偏航角。When the difference between the first yaw angular velocity and the second yaw angular velocity is greater than or equal to a preset threshold, the yaw of the aircraft is based on the first yaw angular velocity and the second yaw angular velocity. The heading angle is corrected to obtain a corrected yaw angle of the aircraft.
在本发明的一实施例中,所述预设阈值由所述飞行器是否收到偏航操作指令所确定。In an embodiment of the present invention, the preset threshold is determined by whether the aircraft receives a yaw operation instruction.
在本发明的一实施例中,所述预设阈值由所述飞行器是否收到偏航操作指令所确定,包括:In an embodiment of the present invention, the preset threshold is determined by whether the aircraft receives a yaw operation instruction, and includes:
当所述飞行器收到偏航操作指令时,所述预设阈值为第一预设阈值;When the aircraft receives a yaw operation instruction, the preset threshold is a first preset threshold;
当所述飞行器未收到偏航操作指令时,所述预设阈值为第二预设阈值。When the aircraft does not receive a yaw operation instruction, the preset threshold is a second preset threshold.
在本发明的一实施例中,所述当所述第一偏航角速度与所述第二偏航角速度的差值大于或等于预设阈值时,所述根据所述第一偏航角速度 与所述第二偏航角速度,对所述飞行器的偏航角进行修正,包括:In an embodiment of the present invention, when a difference between the first yaw angular velocity and the second yaw angular velocity is greater than or equal to a preset threshold, the according to the first yaw angular velocity and the Said second yaw angular velocity and correcting the yaw angle of the aircraft include:
根据所述第一偏航角速度与所述第二偏航角速度的差值,得到偏航角补偿值;Obtaining a yaw angle compensation value according to a difference between the first yaw angular velocity and the second yaw angular velocity;
根据所述偏航角补偿值对所述飞行器的偏航角进行修正。Correct the yaw angle of the aircraft according to the yaw angle compensation value.
在本发明的一实施例中,所述偏航角补偿值Δψ p为: In an embodiment of the present invention, the yaw angle compensation value Δψ p is:
Figure PCTCN2018116719-appb-000001
Figure PCTCN2018116719-appb-000001
其中,t 0为获取所述飞行器的初始姿态信息所对应的时间,ΔT为对所述飞行器的偏航角进行修正的周期,
Figure PCTCN2018116719-appb-000002
为所述第一偏航角速度,
Figure PCTCN2018116719-appb-000003
为所述第二偏航角速度。
Where t 0 is the time corresponding to the initial attitude information of the aircraft, and ΔT is the period for correcting the yaw angle of the aircraft,
Figure PCTCN2018116719-appb-000002
Is the first yaw angular velocity,
Figure PCTCN2018116719-appb-000003
Is the second yaw angular velocity.
在本发明的一实施例中,所述修正后的所述飞行器的偏航角ψ′ p为: In an embodiment of the present invention, the yaw angle ψ ′ p of the aircraft after the correction is:
ψ′ p=ψ p+Δψ p ψ ′ p = ψ p + Δψ p
其中,ψ p为所述飞行器的偏航角,Δψ p为所述偏航角补偿值。 Wherein, ψ p is the yaw angle of the aircraft, and Δψ p is the yaw angle compensation value.
在本发明的一实施例中,所述获取所述云台基座的角速度,包括:In an embodiment of the present invention, the obtaining the angular velocity of the gimbal base includes:
获取所述云台电机的角度;Obtaining an angle of the gimbal motor;
根据所述云台电机的角度,确定所述云台电机的角速度;Determining the angular velocity of the gimbal motor according to the angle of the gimbal motor;
获取所述拍摄装置的角速度;Obtaining an angular velocity of the photographing device;
根据所述云台电机的角速度、所述云台电机的角度及所述拍摄装置的角速度,确定所述云台基座的角速度。Determine the angular velocity of the pan-tilt base according to the angular velocity of the pan-tilt motor, the angle of the pan-tilt motor, and the angular velocity of the photographing device.
在本发明的一实施例中,根据所述云台电机的角度,确定所述云台电机的角速度,包括:In an embodiment of the present invention, determining the angular velocity of the gimbal motor according to the angle of the gimbal motor includes:
将所述云台电机的角度作为输入,通过二阶离散非线性跟踪微分器,计算得到所述云台电机的角速度。Taking the angle of the gimbal motor as an input, the angular velocity of the gimbal motor is calculated by a second-order discrete nonlinear tracking differentiator.
在本发明的一实施例中,所述二阶离散非线性跟踪微分器的表达式为:In an embodiment of the present invention, the expression of the second-order discrete nonlinear tracking differentiator is:
r 1(k+1)=r 1(k)+T·r 2(k) r 1 (k + 1) = r 1 (k) + T · r 2 (k)
r 2(k+1)=r 2(k)+T·fst(r 1(k)-Ρ(k),r 2(k),δ,h) r 2 (k + 1) = r 2 (k) + T · fst (r 1 (k) -P (k), r 2 (k), δ, h)
其中,T为获取所述云台电机的角度的采样周期, Ρ(k)=[φ(k) θ(k) ψ(k)] T为第k时刻所述云台电机的角度,r 1(k)为通过所述二阶离散非线性跟踪微分器对Ρ(k)进行跟踪由Ρ(k)所确定的值,r 2(k)为Ρ(k)的导数,k+1为第k+1时刻所对应的值,fst()为最速控制函数,δ为位于最速控制函数的第三位的参数,h为位于最速控制函数的第四位的参数。 Among them, T is a sampling period for obtaining the angle of the gimbal motor, and P (k) = [φ (k) θ (k) ψ (k)] T is the angle of the gimbal motor at the k-th time, r 1 (k) is a value determined by P (k) for tracking P (k) by the second-order discrete nonlinear tracking differentiator, r 2 (k) is a derivative of P (k), and k + 1 is the first The value corresponding to time k + 1, fst () is the highest speed control function, δ is a parameter located at the third position of the highest speed control function, and h is a parameter located at the fourth position of the fastest control function.
在本发明的一实施例中,所述根据所述云台电机的角速度、所述云台电机的角度及所述拍摄装置的角速度,确定所述云台基座的角速度,包括:In an embodiment of the present invention, determining the angular velocity of the gimbal base according to the angular velocity of the gimbal motor, the angle of the gimbal motor, and the angular velocity of the photographing device includes:
根据所述云台电机的角度确定旋转变换矩阵,所述旋转变换矩阵为云台基座坐标系到云台电机坐标系的旋转矩阵;Determining a rotation transformation matrix according to the angle of the gimbal motor, the rotation transformation matrix being a rotation matrix of a gimbal base coordinate system to a gimbal motor coordinate system;
根据所述云台电机的角速度、所述旋转变换矩阵及所述拍摄装置的角速度,确定所述云台基座的角速度。Determine the angular velocity of the pan-tilt base according to the angular velocity of the pan-tilt motor, the rotation transformation matrix, and the angular velocity of the photographing device.
在本发明的一实施例中,所述旋转变换矩阵的计算公式为:In an embodiment of the present invention, the calculation formula of the rotation transformation matrix is:
Figure PCTCN2018116719-appb-000004
Figure PCTCN2018116719-appb-000004
其中,D为旋转变换矩阵;(φ,θ,ψ)为所述云台电机的角度,φ为所述云台电机的角度中的翻滚角,θ为所述云台电机的角度中的俯仰角,ψ为所述云台电机的角度中的偏航角。Where D is the rotation transformation matrix; (φ, θ, ψ) is the angle of the gimbal motor, φ is the roll angle in the angle of the gimbal motor, and θ is the pitch in the angle of the gimbal motor. Angle, ψ is the yaw angle among the angles of the gimbal motor.
在本发明的一实施例中,所述云台基座的角速度的计算公式为:In an embodiment of the present invention, the calculation formula of the angular velocity of the gimbal base is:
Figure PCTCN2018116719-appb-000005
Figure PCTCN2018116719-appb-000005
其中,
Figure PCTCN2018116719-appb-000006
为所述云台基座的角速度,
Figure PCTCN2018116719-appb-000007
为所述拍摄装置的角速度,D为所述旋转变换矩阵,r 2为所述云台电机的角速度。
among them,
Figure PCTCN2018116719-appb-000006
Is the angular velocity of the gimbal base,
Figure PCTCN2018116719-appb-000007
Is the angular velocity of the photographing device, D is the rotation transformation matrix, and r 2 is the angular velocity of the gimbal motor.
第二方面,本发明还提供了一种飞行器偏航角修正装置,所述飞行器连接有云台,所述云台包括云台基座、与所述云台基座相连的云台电机以及与所述云台电机相连的拍摄装置,所述装置包括:According to a second aspect, the present invention also provides an aircraft yaw angle correction device. The aircraft is connected with a gimbal. The gimbal includes a gimbal base, a gimbal motor connected to the gimbal base, and The shooting device connected to the PTZ motor, the device includes:
初始姿态信息获取模块,用于获取所述飞行器的初始姿态信息,其 中,所述飞行器的初始姿态信息包括飞行器的初始角速度;以及An initial attitude information acquisition module, configured to obtain initial attitude information of the aircraft, wherein the initial attitude information of the aircraft includes an initial angular velocity of the aircraft; and
用于根据所述飞行器的初始角速度,获取所述飞行器的偏航角速度,其中所述飞行器的偏航角速度为第一偏航角速度;Configured to obtain a yaw angular velocity of the aircraft according to an initial angular velocity of the aircraft, wherein the yaw angular velocity of the aircraft is a first yaw angular velocity;
基座角速度获取模块,用于获取所述云台基座的角速度和用于根据所述云台基座的角速度获取所述云台基座的偏航角速度,其中,所述云台基座的偏航角速度为第二偏航角速度;The base angular velocity obtaining module is configured to obtain the angular velocity of the gimbal base and to obtain the yaw angular velocity of the gimbal base according to the angular velocity of the gimbal base, wherein the The yaw angular velocity is the second yaw angular velocity;
比较模块,用于比较所述第一偏航角速度与所述第二偏航角速度;A comparison module, configured to compare the first yaw angular velocity with the second yaw angular velocity;
修正模块,用于当比较模块确定所述第一偏航角速度与所述第二偏航角速度的差值大于或等于预设阈值时,根据所述第一偏航角速度与所述第二偏航角速度,对所述飞行器的偏航角进行修正,以得到修正后的所述飞行器的偏航角。A correction module, configured to: when the comparison module determines that a difference between the first yaw angular velocity and the second yaw angular velocity is greater than or equal to a preset threshold, according to the first yaw angular velocity and the second yaw Angular velocity, correcting the yaw angle of the aircraft to obtain a corrected yaw angle of the aircraft.
在本发明的一实施例中,所述装置还包括预设阈值确定模块,用于根据所述飞行器是否收到偏航操作指令,确定所述预设阈值。In an embodiment of the present invention, the device further includes a preset threshold determination module, configured to determine the preset threshold according to whether the aircraft receives a yaw operation instruction.
在本发明的一实施例中,所述预设阈值确定模块具体用于:In an embodiment of the present invention, the preset threshold determination module is specifically configured to:
当所述飞行器收到偏航操作指令时,确定所述预设阈值为第一预设阈值;When the aircraft receives a yaw operation instruction, determine that the preset threshold is a first preset threshold;
当所述飞行器未收到偏航操作指令时,确定所述预设阈值为第二预设阈值。When the aircraft does not receive a yaw operation instruction, it is determined that the preset threshold is a second preset threshold.
在本发明的一实施例中,当所述第一偏航角速度与所述第二偏航角速度的差值大于或等于预设阈值时,所述修正模块根据所述第一偏航角速度与所述第二偏航角速度,对所述飞行器的偏航角进行修正,包括:In an embodiment of the present invention, when the difference between the first yaw angular velocity and the second yaw angular velocity is greater than or equal to a preset threshold, the correction module is based on the first yaw angular velocity and the Said second yaw angular velocity and correcting the yaw angle of the aircraft include:
根据所述第一偏航角速度与所述第二偏航角速度的差值,得到偏航角补偿值;Obtaining a yaw angle compensation value according to a difference between the first yaw angular velocity and the second yaw angular velocity;
根据所述偏航角补偿值对所述飞行器的偏航角进行修正。Correct the yaw angle of the aircraft according to the yaw angle compensation value.
在本发明的一实施例中,所述偏航角补偿值Δψ p为: In an embodiment of the present invention, the yaw angle compensation value Δψ p is:
Figure PCTCN2018116719-appb-000008
Figure PCTCN2018116719-appb-000008
其中,t 0为获取所述飞行器的初始姿态信息所对应的时间,ΔT为 对所述飞行器的偏航角进行修正的周期,
Figure PCTCN2018116719-appb-000009
为所述第一偏航角速度,
Figure PCTCN2018116719-appb-000010
为所述第二偏航角速度。
Where t 0 is the time corresponding to the initial attitude information of the aircraft, and ΔT is the period for correcting the yaw angle of the aircraft,
Figure PCTCN2018116719-appb-000009
Is the first yaw angular velocity,
Figure PCTCN2018116719-appb-000010
Is the second yaw angular velocity.
在本发明的一实施例中,所述修正后的所述飞行器的偏航角ψ′ p为: In an embodiment of the present invention, the yaw angle ψ ′ p of the aircraft after the correction is:
ψ′ p=ψ p+Δψ p ψ ′ p = ψ p + Δψ p
其中,ψ p为所述飞行器的偏航角,Δψ p为所述偏航角补偿值。 Wherein, ψ p is the yaw angle of the aircraft, and Δψ p is the yaw angle compensation value.
在本发明的一实施例中,所述基座角速度获取模块具体用于:In an embodiment of the present invention, the base angular velocity obtaining module is specifically configured to:
获取所述云台电机的角度;Obtaining an angle of the gimbal motor;
根据所述云台电机的角度,确定所述云台电机的角速度;Determining the angular velocity of the gimbal motor according to the angle of the gimbal motor;
获取所述拍摄装置的角速度;Obtaining an angular velocity of the photographing device;
根据所述云台电机的角速度、所述云台电机的角度及所述拍摄装置的角速度,确定所述云台基座的角速度。Determine the angular velocity of the pan-tilt base according to the angular velocity of the pan-tilt motor, the angle of the pan-tilt motor, and the angular velocity of the photographing device.
在本发明的一实施例中,所述基座角速度获取模块根据所述云台电机的角度,确定所述云台电机的角速度,包括:In an embodiment of the present invention, the base angular velocity acquisition module determining the angular velocity of the pan / tilt motor according to the angle of the pan / tilt motor includes:
将所述云台电机的角度作为输入,通过二阶离散非线性跟踪微分器,计算得到所述云台电机的角速度。Taking the angle of the gimbal motor as an input, the angular velocity of the gimbal motor is calculated by a second-order discrete nonlinear tracking differentiator.
在本发明的一实施例中,所述二阶离散非线性跟踪微分器的表达式为:In an embodiment of the present invention, the expression of the second-order discrete nonlinear tracking differentiator is:
r 1(k+1)=r 1(k)+T·r 2(k) r 1 (k + 1) = r 1 (k) + T · r 2 (k)
r 2(k+1)=r 2(k)+T·fst(r 1(k)-Ρ(k),r 2(k),δ,h) r 2 (k + 1) = r 2 (k) + T · fst (r 1 (k) -P (k), r 2 (k), δ, h)
其中,T为获取所述云台电机的角度的采样周期,Ρ( k)=[φ(k) θ(k) ψ(k)] T为第k时刻所述云台电机的角度,r 1(k)为通过所述二阶离散非线性跟踪微分器对Ρ(k)进行跟踪由Ρ(k)所确定的值,r 2(k)为Ρ(k)的导数,k+1为第k+1时刻所对应的值,fst()为最速控制函数,δ为位于最速控制函数的第三位的参数,h为位于最速控制函数的第四位的参数。 Among them, T is a sampling period for obtaining the angle of the gimbal motor, and P ( k ) = [φ (k) θ (k) ψ (k)] T is the angle of the gimbal motor at the k-th time, r 1 (k) is a value determined by P (k) for tracking P (k) by the second-order discrete nonlinear tracking differentiator, r 2 (k) is a derivative of P (k), and k + 1 is the first The value corresponding to time k + 1, fst () is the highest speed control function, δ is a parameter located at the third position of the highest speed control function, and h is a parameter located at the fourth position of the fastest control function.
在本发明的一实施例中,所述基座角速度获取模块根据所述云台电机的角速度、所述云台电机的角度及所述拍摄装置的角速度,确定所述 云台基座的角速度,包括:In an embodiment of the present invention, the base angular velocity obtaining module determines the angular velocity of the gimbal base according to the angular velocity of the gimbal motor, the angle of the gimbal motor, and the angular velocity of the photographing device. include:
根据所述云台电机的角度确定旋转变换矩阵,所述旋转变换矩阵为云台基座坐标系到云台电机坐标系的旋转矩阵;Determining a rotation transformation matrix according to the angle of the gimbal motor, the rotation transformation matrix being a rotation matrix of a gimbal base coordinate system to a gimbal motor coordinate system;
根据所述云台电机的角速度、所述旋转变换矩阵及所述拍摄装置的角速度,确定所述云台基座的角速度。Determine the angular velocity of the pan-tilt base according to the angular velocity of the pan-tilt motor, the rotation transformation matrix, and the angular velocity of the photographing device.
在本发明的一实施例中,所述旋转变换矩阵的计算公式为:In an embodiment of the present invention, the calculation formula of the rotation transformation matrix is:
Figure PCTCN2018116719-appb-000011
Figure PCTCN2018116719-appb-000011
其中,D为旋转变换矩阵;(φ,θ,ψ)为所述云台电机的角度,φ为所述云台电机的角度中的翻滚角,θ为所述云台电机的角度中的俯仰角,ψ为所述云台电机的角度中的偏航角。Where D is the rotation transformation matrix; (φ, θ, ψ) is the angle of the gimbal motor, φ is the roll angle in the angle of the gimbal motor, and θ is the pitch in the angle of the gimbal motor. Angle, ψ is the yaw angle among the angles of the gimbal motor.
在本发明的一实施例中,所述云台基座的角速度的计算公式为:In an embodiment of the present invention, the calculation formula of the angular velocity of the gimbal base is:
Figure PCTCN2018116719-appb-000012
Figure PCTCN2018116719-appb-000012
其中,
Figure PCTCN2018116719-appb-000013
为所述云台基座的角速度,
Figure PCTCN2018116719-appb-000014
为所述拍摄装置的角速度,D为所述旋转变换矩阵,r 2为所述云台电机的角速度。
among them,
Figure PCTCN2018116719-appb-000013
Is the angular velocity of the gimbal base,
Figure PCTCN2018116719-appb-000014
Is the angular velocity of the photographing device, D is the rotation transformation matrix, and r 2 is the angular velocity of the gimbal motor.
第三方面,本发明还提供了一种飞行器包括:According to a third aspect, the present invention also provides an aircraft including:
机身;body;
机臂,与所述机身相连;A machine arm connected to the fuselage;
动力装置,设于所述机臂;A power unit provided on the machine arm;
至少一个处理器,设于所述机身;以及,At least one processor provided in the fuselage; and
与所述至少一个处理器通信连接的存储器;其中,A memory connected in communication with the at least one processor; wherein,
所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行上述所述的飞行器偏航角修正方法。The memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor, so that the at least one processor can execute the aircraft yaw angle correction method described above.
本发明实施例通过飞行器的初始角速度中的偏航角速度与云台基 座的角速度中的偏航角速度的差值,对飞行器的初始角度中的偏航角进行修正,可以有效的提高估算飞行器偏航角的准确度,该估算方法可避免外界因素的干扰,也即在GPS信号弱与强磁干扰环境下,也具有较高的估算准确度,从而有效提高飞行器飞行的安全性与稳定性。In the embodiment of the present invention, the difference between the yaw angular velocity in the initial angular velocity of the aircraft and the yaw angular velocity in the angular velocity of the gimbal base is used to correct the yaw angle in the initial angle of the aircraft, which can effectively improve the estimated aircraft yaw The accuracy of the heading angle. This estimation method can avoid the interference of external factors, that is, it has high estimation accuracy under the environment of weak GPS signal and strong magnetic interference, thereby effectively improving the safety and stability of the aircraft flight.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
一个或多个实施例通过与之对应的附图中的图片进行示例性说明,这些示例性说明并不构成对实施例的限定,附图中具有相同参考数字标号的元件表示为类似的元件,除非有特别申明,附图中的图不构成比例限制。One or more embodiments are exemplified by the pictures in the accompanying drawings. These exemplary descriptions do not constitute a limitation on the embodiments. Elements with the same reference numerals in the drawings are denoted as similar elements. Unless otherwise stated, the drawings in the drawings do not constitute a limitation on scale.
图1是本发明实施例提供的一种飞行器偏航角修正方法的流程示意图;FIG. 1 is a schematic flowchart of an aircraft yaw angle correction method according to an embodiment of the present invention;
图2是本发明实施例提供的姿态传感器组件的位置设置示意图;2 is a schematic diagram of a position setting of an attitude sensor component according to an embodiment of the present invention;
图3是本发明实施例提供的飞行器偏航角修正装置的示意图;3 is a schematic diagram of an aircraft yaw angle correction device according to an embodiment of the present invention;
图4是本发明实施例提供的飞行器硬件结构示意图;4 is a schematic diagram of an aircraft hardware structure provided by an embodiment of the present invention;
图5是本发明实施例提供的飞行器的连接框图;5 is a connection block diagram of an aircraft provided by an embodiment of the present invention;
图6是图5中的动力装置的示意图。FIG. 6 is a schematic diagram of the power plant in FIG. 5.
具体实施方式Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following describes the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are a part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by a person of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.
此外,下面所描述的本发明各个实施方式中所涉及到的技术特征只要彼此之间未构成冲突就可以相互组合。In addition, the technical features involved in the various embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.
本发明实施例提供的飞行器偏航角修正方法可以应用到各种通过电机或马达驱动的可移动物体上,包括但不限于飞行器、机器人等。其 中飞行器可包括无人飞行器(unmanned aerial vehicle,UAV),无人飞船等。现以UAV为例进行说明。UAV包括机身、与机身相连的机臂、控制器和动力装置。控制器与动力装置连接,动力装置安装在所述机臂上,用于为所述飞行器提供飞行动力。具体的,控制器用于执行上述飞行器偏航角修正方法以修正飞行器的偏航角,并根据修正后的飞行器的偏航角生成控制指令,并将该控制指令发送给动力装置的电调(电子调速器),电调通过该控制指令控制动力装置的驱动电机。或者,控制器用于执行飞行器偏航角修正方法以修正飞行器的偏航角,并将修正后的飞行器的偏航角发送至电调,电调根据修正后的飞行器的偏航角生成控制指令,并通过该控制指令控制动力装置的驱动电机。The method for correcting the yaw angle of an aircraft provided by the embodiment of the present invention can be applied to various movable objects driven by a motor or a motor, including but not limited to an aircraft, a robot, and the like. The aircraft may include an unmanned aerial vehicle (UAV), an unmanned aerial vehicle, and the like. Take UAV as an example for illustration. The UAV includes a fuselage, a boom connected to the fuselage, a controller, and a power unit. The controller is connected to a power device, and the power device is installed on the arm and is used to provide flying power for the aircraft. Specifically, the controller is configured to execute the above-mentioned yaw angle correction method of the aircraft to correct the yaw angle of the aircraft, and generate a control instruction according to the corrected yaw angle of the aircraft, and send the control instruction to the ESC of the power unit (electronic Governor). The ESC controls the drive motor of the power unit through this control instruction. Alternatively, the controller is configured to execute the yaw angle correction method of the aircraft to correct the yaw angle of the aircraft, and send the corrected yaw angle of the aircraft to the ESC, and the ESC generates a control instruction based on the corrected yaw angle of the aircraft, The driving motor of the power unit is controlled by the control instruction.
无人飞行器可以包括一个或多个机臂,一个或多个机臂呈辐射状从机身延伸出。机臂与机身的连接可以是一体连接或者固定连接。An unmanned aerial vehicle may include one or more arms that extend radially from the fuselage. The connection between the arm and the fuselage may be an integral connection or a fixed connection.
控制器用于执行上述飞行器偏航角修正方法以修正飞行器的偏航角,并根据修正后的飞行器的偏航角生成控制指令,并将该控制指令发送给动力装置的电调,以便电调通过该控制指令控制动力装置的驱动电机。控制器为具有一定逻辑处理能力的器件,如控制芯片、单片机、微控制单元(Microcontroller Unit,MCU)等。The controller is configured to execute the above-mentioned yaw angle correction method of the aircraft to correct the yaw angle of the aircraft, and generate a control instruction according to the corrected yaw angle of the aircraft, and send the control instruction to the ESC of the power unit so that the ESC passes The control instruction controls a drive motor of the power unit. The controller is a device with certain logic processing capabilities, such as a control chip, a single-chip microcomputer, and a Microcontroller Unit (MCU).
动力装置包括:电调,驱动电机和螺旋桨。电调位于机臂或机身内。电调分别与控制器及驱动电机连接。具体的,电调与驱动电机电连接,用于控制所述驱动电机。驱动电机安装在机臂上,驱动电机的转动轴连接螺旋桨。螺旋桨在驱动电机的驱动下产生使得UAV移动的力,例如,使得UAV移动的升力或者推力。Power unit includes: ESC, drive motor and propeller. The ESC is located inside the arm or body. The ESC is connected to the controller and the drive motor respectively. Specifically, the ESC is electrically connected to the driving motor and is used to control the driving motor. The driving motor is installed on the arm, and the rotating shaft of the driving motor is connected to the propeller. The propeller generates a force that moves the UAV under the driving of a drive motor, for example, a lift force or a thrust force that moves the UAV.
UAV完成各个规定速度、动作(或姿态)是通过电调控制驱动电机以实现的。电调全称电子调速器,根据控制信号调节UAV的驱动电机的转速。其中,控制器为执行飞行器偏航角修正方法的执行主体,电调基于修正后的飞行器的偏航角所生成控制指令来控制驱动电机。电调控制驱动电机的原理大致为:驱动电机是将电脉冲信号转变为角位移或线位 移的开环控制元件。在非超载的情况下,驱动电机的转速、停止的位置只取决于脉冲信号的频率和脉冲数,而不受负载变化的影响,当驱动器接收到一个脉冲信号,它就驱动动力装置的驱动电机按设定的方向转动一个固定的角度,它的旋转是以固定的角度运行的。因此,电调可以通过控制脉冲个数来控制角位移量,从而达到准确定位的目的;同时可以通过控制脉冲频率来控制驱动电机转动的速度和加速度,从而达到调速的目的。UAV completes each of the specified speeds, actions (or attitudes) by controlling the drive motor to achieve this. The full name of the ESC is electronic speed governor, which adjusts the speed of the driving motor of the UAV according to the control signal. Among them, the controller is the execution subject that executes the yaw angle correction method of the aircraft, and the ESC controls the driving motor based on the control command generated by the corrected yaw angle of the aircraft. The principle of ESC controlling the driving motor is roughly as follows: The driving motor is an open-loop control element that converts electrical pulse signals into angular displacement or linear displacement. Under non-overload conditions, the speed and stop position of the drive motor depend only on the frequency and number of pulse signals, and are not affected by the load change. When the driver receives a pulse signal, it drives the drive motor of the power unit Rotate a fixed angle in the set direction, and its rotation runs at a fixed angle. Therefore, the ESC can control the amount of angular displacement by controlling the number of pulses, thereby achieving the purpose of accurate positioning; at the same time, the speed and acceleration of the driving motor can be controlled by controlling the pulse frequency, thereby achieving the purpose of speed regulation.
目前UAV主要功能为航拍、影像实时传输、高危地区探测等。为了实现航拍、影像实时传输、高危地区探测等功能,UAV上会连接有摄像组件。具体的,UAV和摄像组件通过连接结构,如减振球等进行连接。该摄像组件用于在UAV进行航拍的过程中,获取拍摄画面。At present, the main functions of UAV are aerial photography, real-time image transmission, and detection of high-risk areas. In order to realize the functions of aerial photography, real-time image transmission, and detection of high-risk areas, a camera component is connected to the UAV. Specifically, the UAV and the camera component are connected through a connection structure, such as a vibration reduction ball. This camera module is used to obtain the shooting picture during the aerial photography of UAV.
具体的,摄像组件包括:云台及拍摄装置。云台与UAV连接。其中,拍摄装置搭载于所述云台上,拍摄装置可以为图像采集装置,用于采集图像,该拍摄装置包括但不限于:相机、摄影机、摄像头、扫描仪、拍照手机等。云台用于搭载拍摄装置,以实现拍摄装置的固定、或随意调节拍摄装置的姿态(例如,改变拍摄装置的高度、倾角和/或方向)以及使所述拍摄装置稳定保持在设定的姿态上。例如,当UAV进行航拍时,云台主要用于使所述拍摄装置稳定保持在设定的姿态上,防止拍摄装置拍摄画面抖动,保证拍摄画面的稳定。Specifically, the camera component includes: a gimbal and a shooting device. The gimbal is connected to the UAV. The photographing device is mounted on the pan / tilt head. The photographing device may be an image acquisition device for acquiring images. The photographing device includes, but is not limited to, a camera, a video camera, a camera, a scanner, a camera phone, and the like. The pan / tilt is used to carry a photographing device, so as to fix the photographing device, or adjust the posture of the photographing device (for example, change the height, inclination, and / or direction of the photographing device), and keep the photographing device in a set posture. on. For example, when the UAV performs aerial photography, the pan / tilt is mainly used to keep the shooting device in a set posture stably, prevent the shooting screen of the shooting device from shaking, and ensure the stability of the shooting screen.
云台包括:云台电机及云台基座。其中,云台电机安装于云台基座。飞行器的控制器也可通过动力装置的电调来控制云台电机,具体的,飞行器的控制器与电调连接,电调与云台电机电连接,飞行器的控制器生成云台电机控制指令,电调通过云台电机控制指令以控制云台电机。The gimbal includes: gimbal motor and gimbal base. The gimbal motor is installed on the gimbal base. The controller of the aircraft can also control the PTZ motor through the ESC of the power unit. Specifically, the controller of the aircraft is connected to the ESC, and the ESC is electrically connected to the PTZ motor. The controller of the aircraft generates the PTZ motor control instructions. Adjust the PTZ motor control instruction to control the PTZ motor.
云台基座与UAV的机身连接,用于将摄像组件固定安装于UAV的机身上。The gimbal base is connected to the body of the UAV, and is used to fix the camera module on the body of the UAV.
云台电机分别与云台基座及拍摄装置连接。该云台可以为多轴云台,与之适应的,云台电机为多个,也即每个轴设置有一个云台电机。云台 电机一方面可带动拍摄装置的转动,从而满足拍摄转轴的水平旋转和俯仰角度的调节,通过手动远程控制云台电机旋转或利用程序让电机自动旋转,从而达到全方位扫描监控的作用;另一方面,在UAV进行航拍的过程中,通过云台电机的转动实时抵消拍摄装置受到的扰动,防止拍摄装置抖动,保证拍摄画面的稳定。The gimbal motor is connected to the gimbal base and camera. The gimbal can be a multi-axis gimbal. In response to this, there are multiple gimbal motors, that is, one gimbal motor is provided for each axis. On the one hand, the PTZ motor can drive the rotation of the shooting device, so as to meet the horizontal rotation and tilting angle adjustment of the shooting shaft. Manually remotely control the rotation of the PTZ motor or use the program to rotate the motor automatically, so as to achieve all-round scanning monitoring; On the other hand, during the aerial photography of the UAV, the disturbance of the shooting device is cancelled in real time by the rotation of the gimbal motor to prevent the shooting device from shaking and ensure the stability of the shooting picture.
拍摄装置搭载于云台上,拍摄装置上设置有惯性测量单元,该惯性测量单元用于获取拍摄装置的姿态信息。The photographing device is mounted on the pan / tilt head, and an inertial measurement unit is provided on the photographing device, and the inertial measurement unit is configured to acquire attitude information of the photographing device.
在对UAV的姿态进行控制的过程中,UAV的偏航角是对UAV的姿态进行控制中的重要参数,需要基于UAV偏航角,来控制驱动电机。通过飞行器的控制器实时获取UAV的偏航角,为UAV的姿态控制提供必要的姿态信息。也即UAV的偏航角正确估算对UAV的姿态控制尤其重要,若UAV的偏航角估算错误,UAV轻则无法按照预设的方向或轨迹飞行,重则可能失稳以致炸机。In the process of controlling the attitude of the UAV, the yaw angle of the UAV is an important parameter in controlling the attitude of the UAV, and the driving motor needs to be controlled based on the yaw angle of the UAV. The yaw angle of the UAV is obtained in real time through the controller of the aircraft, and the necessary attitude information is provided for the attitude control of the UAV. That is, the correct estimation of the yaw angle of the UAV is particularly important for the attitude control of the UAV. If the yaw angle of the UAV is incorrectly estimated, the UAV cannot fly in a preset direction or trajectory in the light, and may be unstable due to the bomber.
目前通常是基于磁力计采集的数据得到UAV的偏航角,但采用该方法得到偏航角很容易受到外界因素的影响,尤其是当磁力计处于强磁干扰环境中时,磁力计的数据可能严重错误,导致偏航角的估算出现较大的偏差,飞行器的偏航角的估算准确度低。At present, the yaw angle of the UAV is usually obtained based on the data collected by the magnetometer. However, the yaw angle obtained by this method is easily affected by external factors. Especially when the magnetometer is in a strong magnetic interference environment, the magnetometer data may be Severe errors lead to a large deviation in the yaw angle estimation, and the accuracy of the yaw angle estimation of the aircraft is low.
为了提高UAV的偏航角估算的准确性,目前常见的是利用外置的GPS模组,依靠GPS估算出一个偏航角,用以对基于磁力计的偏航角值进行修正。但GPS信号有时可能不稳定,使得在某些情况下,磁力计估算的偏航角即使出现了偏差却得不到有效修正。也即利用外置的GPS模组修正UAV的偏航角虽然一定程度上可以提高飞行器的偏航角的估算准确度,但效果并不好,特别是当GPS信号较弱,利用外置的GPS模组未能起到有效的航向修正作用。In order to improve the accuracy of the yaw angle estimation of the UAV, it is common to use an external GPS module to estimate a yaw angle based on the GPS to correct the yaw angle value based on a magnetometer. However, the GPS signal may be unstable sometimes, so that in some cases, the yaw angle estimated by the magnetometer cannot be effectively corrected even if there is a deviation. That is, using an external GPS module to correct the yaw angle of the UAV can improve the accuracy of the yaw angle estimation of the aircraft to a certain extent, but the effect is not good, especially when the GPS signal is weak, using the external GPS The module failed to perform effective course correction.
因此,基于上述问题,本发明实施例主要目的在于提供一种飞行器偏航角修正方法、装置及飞行器,可以基于云台提供的姿态信息修正飞行器的偏航角,有效的提高估算飞行器偏航角的准确度,从而提高飞行 器飞行的安全性与稳定性。Therefore, based on the above problems, the main purpose of the embodiments of the present invention is to provide an aircraft yaw angle correction method, device and aircraft, which can correct the aircraft yaw angle based on the attitude information provided by the gimbal, and effectively improve the estimated aircraft yaw angle. Accuracy, thereby improving the safety and stability of aircraft flight.
其中,本发明的思路是:首先,飞行器上设置有姿态传感器组件,通过该姿态传感器组件,采集得到飞行器的初始姿态信息,该姿态传感器组件并将该姿态传感器组件发送给飞行器的控制器,以使飞行器的控制器获取得到飞行器的初始姿态信息,其中,所述飞行器的初始姿态信息包括飞行器的初始角速度及飞行器的初始角度;然后,飞行器的控制器获取所述云台基座的角速度;接着,飞行器的控制器便可将获取得到的飞行器的初始角速度中的偏航角速度与云台基座的角速度中的偏航角速度进行比较;最后,基于比较的结果,飞行器的控制器对飞行器的偏航角进行修正,具体的,飞行器的初始角速度中的偏航角速度与云台基座的角速度中的偏航角速度的差值大于或等于预设阈值时,根据该差值,对飞行器的初始角度中的偏航角进行修正,以得到修正后的飞行器的偏航角。Among them, the idea of the present invention is: first, an attitude sensor component is provided on the aircraft, and the initial attitude information of the aircraft is collected through the attitude sensor component, and the attitude sensor component sends the attitude sensor component to the controller of the aircraft to Make the controller of the aircraft obtain the initial attitude information of the aircraft, wherein the initial attitude information of the aircraft includes the initial angular velocity of the aircraft and the initial angle of the aircraft; then, the controller of the aircraft acquires the angular velocity of the gimbal base; then , The controller of the aircraft can compare the obtained yaw angular velocity in the initial angular velocity of the aircraft with the yaw angular velocity in the angular velocity of the gimbal base; finally, based on the comparison result, the aircraft controller's The heading angle is corrected. Specifically, when the difference between the yaw angular velocity in the initial angular velocity of the aircraft and the yaw angular velocity in the angular velocity of the gimbal base is greater than or equal to a preset threshold, the initial angle of the aircraft is calculated based on the difference. To correct the yaw angle in Yaw angle of the aircraft.
本发明实施例通过飞行器的初始角速度中的偏航角速度与云台基座的角速度中的偏航角速度的差值,对飞行器的初始角度中的偏航角进行修正,可以有效的提高估算飞行器偏航角的准确度,该估算方法可避免外界因素的干扰,也即在GPS信号弱与强磁干扰环境下,也具有较高的估算准确度,从而有效提高飞行器飞行的安全性与稳定性。In the embodiment of the present invention, the difference between the yaw angular velocity in the initial angular velocity of the aircraft and the yaw angular velocity in the angular velocity of the gimbal base is used to correct the yaw angle in the initial angle of the aircraft, which can effectively improve the estimated aircraft yaw The accuracy of the heading angle. This estimation method can avoid the interference of external factors, that is, it has high estimation accuracy under the environment of weak GPS signal and strong magnetic interference, thereby effectively improving the safety and stability of the aircraft flight.
下面结合附图,对本发明实施例作进一步阐述。The embodiments of the present invention will be further described below with reference to the accompanying drawings.
实施例1:Example 1:
图1为本发明实施例提供的一种飞行器偏航角修正方法的流程示意图。其中,该飞行器偏航角修正方法可由各种具有一定逻辑处理能力的电子设备执行,如飞行器、控制芯片等,该飞行器可以包括无人机、无人船等。以下电子设备以飞行器为例进行说明。其中,飞行器连接有云台,云台包括云台电机及云台基座,其中,云台可以为多轴云台,如两轴云台、三轴云台,以下三轴云台为例进行说明。飞行器设置有姿态传 感器组件。对于该飞行器及云台的具体结构的描述可以参考上述描述,因此,在此处不作赘述。FIG. 1 is a schematic flowchart of an aircraft yaw angle correction method according to an embodiment of the present invention. The yaw correction method of the aircraft may be executed by various electronic devices with certain logic processing capabilities, such as an aircraft, a control chip, and the like. The aircraft may include a drone, an unmanned ship, and the like. The following electronic devices are described using an aircraft as an example. Among them, the aircraft is connected with a gimbal. The gimbal includes a gimbal motor and a gimbal base. Among them, the gimbal can be a multi-axis gimbal, such as a two-axis gimbal and a three-axis gimbal. The following three-axis gimbal is used as an example. Instructions. The aircraft is provided with an attitude sensor assembly. For the description of the specific structure of the aircraft and the gimbal, reference may be made to the above description, and therefore, it will not be repeated here.
请参照图1,所述飞行器偏航角修正方法包括:Please refer to FIG. 1, the yaw angle correction method of the aircraft includes:
101:获取所述飞行器的初始姿态信息。101: Obtain initial attitude information of the aircraft.
飞行器获取所述飞行器的初始姿态信息具体包括:首先由设置于飞行器上的姿态传感器组件采集得到初始姿态信息,并将该初始姿态信息发送至飞行器,以使飞行器获取得到该初始姿态信息。其中,飞行器的初始姿态信息包括飞行器的初始角速度及飞行器的初始角度。Obtaining the initial attitude information of the aircraft by the aircraft specifically includes: first acquiring the initial attitude information by an attitude sensor component provided on the aircraft, and sending the initial attitude information to the aircraft, so that the aircraft obtains the initial attitude information. The initial attitude information of the aircraft includes the initial angular velocity of the aircraft and the initial angle of the aircraft.
其中,姿态传感器组件包括:磁力计、第一惯性测量单元(Inertial measurement unit,IMU)、GPS(Global Positioning System)等。磁力计可用于采集飞行器的初始角度,第一惯性测量单元可用于采集飞行器的初始角速度。Among them, the attitude sensor component includes: a magnetometer, a first Inertial Measurement Unit (IMU), a GPS (Global Positioning System), and the like. The magnetometer can be used to collect the initial angle of the aircraft, and the first inertial measurement unit can be used to collect the initial angular velocity of the aircraft.
其中,姿态传感器组件的具体设置位置可参考图2所示。其中,图2中包括有4个坐标系:飞行器坐标系、云台基座坐标系、云台电机坐标系及拍摄装置坐标系。在图2中,处于最上端的是飞行器的机身,姿态传感器组件设置于机身上,位于飞行器的机身下端并最接近机身的是云台基座,云台基座与机身通过减振球(图未示)相连,位于云台基座下端的是云台电机,位于最下端的是拍摄装置,拍摄装置上设置有第二惯性测量单元,用于采集拍摄装置的角速度。云台基座与拍摄装置之间通过Z-X-Y欧拉角轴序的三轴电机相连,即从上到下依次是偏航轴Yaw(Z轴)、翻滚轴Roll(X轴)、俯仰轴Pitch(Y轴)三个电机轴。For the specific setting position of the attitude sensor assembly, refer to FIG. 2. Among them, FIG. 2 includes four coordinate systems: an aircraft coordinate system, a gimbal base coordinate system, a gimbal motor coordinate system, and a photographing device coordinate system. In Figure 2, the top of the aircraft is the fuselage of the aircraft. The attitude sensor assembly is located on the fuselage. The bottom of the aircraft's fuselage and the closest to the fuselage is the gimbal base. A vibrating ball (not shown) is connected. A gimbal motor is located at the lower end of the gimbal base, and a photographing device is positioned at the bottom. The photographing device is provided with a second inertial measurement unit for collecting the angular velocity of the photographing device. The gimbal base and the camera are connected by a three-axis motor in the ZXY Euler angle sequence, that is, from top to bottom, the yaw axis Yaw (Z axis), the roll axis Roll (X axis), and the pitch axis Pitch ( Y axis) three motor shafts.
其中,惯性测量单元(Inertial measurement unit,IMU)为一种测量物体三轴姿态角(或角速率)以及加速度的装置。通常的,IMU为六轴的IMU。其中,六轴的IMU中,一个IMU包含了三个单轴的加速度计和三个单轴的陀螺仪,加速度计检测物体在载体坐标系统独立三轴的加速度信号,而陀螺仪检测载体相对于导航坐标系的角速度信号,测量物体在三维空间中的角速度和加速度,并以此解算出物体的姿态。Among them, the Inertial Measurement Unit (IMU) is a device that measures the three-axis attitude angle (or angular rate) and acceleration of an object. Generally, the IMU is a six-axis IMU. Among the six-axis IMUs, one IMU contains three single-axis accelerometers and three single-axis gyroscopes. The accelerometer detects the acceleration signals of the object in the carrier coordinate system independently of the three axes, and the gyroscope detects the relative Navigating the angular velocity signal of the coordinate system, measuring the angular velocity and acceleration of the object in three-dimensional space, and using this solution to calculate the attitude of the object.
通过六轴的IMU可以检测自身在惯性系中的角度信息,具体的,设置于飞行器上的第一惯性测量单元采集得到飞行器的初始角速度,该飞行器的初始角速度可用向量
Figure PCTCN2018116719-appb-000015
表示,也即该飞行器的初始角速度
Figure PCTCN2018116719-appb-000016
表示为飞行器相对于惯性系的角速度在飞行器坐标系下的坐标向量,飞行器的初始角速度包括:飞行器的初始翻滚角速度、飞行器的初始俯仰角速度及飞行器的初始偏航角速度。其中,
Figure PCTCN2018116719-appb-000017
表示飞行器的初始翻滚角速度,
Figure PCTCN2018116719-appb-000018
表示飞行器的初始俯仰角速度,
Figure PCTCN2018116719-appb-000019
表示为飞行器的初始偏航角速度。类似的,设置于拍摄装置上的第二惯性测量单元采集得到拍摄装置的角速度,该拍摄装置的角速度可用向量
Figure PCTCN2018116719-appb-000020
表示,也即该拍摄装置的角速度
Figure PCTCN2018116719-appb-000021
表示为拍摄装置相对于惯性系的角速度在拍摄装置坐标系下的坐标向量。其中,
Figure PCTCN2018116719-appb-000022
表示拍摄装置的翻滚角速度,
Figure PCTCN2018116719-appb-000023
表示拍摄装置的俯仰角速度,
Figure PCTCN2018116719-appb-000024
表示为拍摄装置的偏航角速度。其中,惯性系,又称惯性坐标系、惯性参照系、大地坐标系或世界坐标系,由于无人飞行器可安放在任意位置,在环境中选择一个基准坐标来描述无人飞行器及无人飞行器的各个部件的位置,并用它描述环境中任何物体的位置,该坐标系称为惯性系。
The six-axis IMU can detect its own angle information in the inertial system. Specifically, the first inertial measurement unit provided on the aircraft acquires the initial angular velocity of the aircraft, and the initial angular velocity of the aircraft can be used as a vector.
Figure PCTCN2018116719-appb-000015
Means the initial angular velocity of the aircraft
Figure PCTCN2018116719-appb-000016
Represented as the coordinate vector of the angular velocity of the aircraft relative to the inertial system in the aircraft coordinate system, the initial angular velocity of the aircraft includes: the initial roll angular velocity of the aircraft, the initial pitch angular velocity of the aircraft, and the initial yaw angular velocity of the aircraft. among them,
Figure PCTCN2018116719-appb-000017
Represents the initial roll angular velocity of the aircraft,
Figure PCTCN2018116719-appb-000018
Represents the initial pitch angular velocity of the aircraft,
Figure PCTCN2018116719-appb-000019
Expressed as the initial yaw rate of the aircraft. Similarly, the second inertial measurement unit provided on the photographing device acquires the angular velocity of the photographing device, and the angular velocity of the photographing device can be obtained by using a vector
Figure PCTCN2018116719-appb-000020
Indicates the angular velocity of the camera
Figure PCTCN2018116719-appb-000021
Expressed as the coordinate vector of the angular velocity of the imaging device relative to the inertial system in the imaging device coordinate system. among them,
Figure PCTCN2018116719-appb-000022
Indicates the roll angular velocity of the camera,
Figure PCTCN2018116719-appb-000023
Indicates the pitch angular velocity of the camera,
Figure PCTCN2018116719-appb-000024
Expressed as the yaw rate of the camera. Among them, the inertial system, also known as the inertial coordinate system, the inertial reference system, the geodetic coordinate system, or the world coordinate system. Since the unmanned aerial vehicle can be placed at any position, a reference coordinate is selected to describe the The position of each part and use it to describe the position of any object in the environment. This coordinate system is called the inertial system.
磁力计,也称地磁、磁感器,可用于测试磁场强度和方向,定位设备的方位。基于磁力计价格低、质轻、结构紧凑等优点,被广泛应用于飞行器的角度的采集。通过磁力计采集得到飞行器的初始角度,该飞行器的初始角度可用向量(φ ppp)表示,也即该飞行器的初始角度(φ ppp)表示为飞行器相对于惯性系的角度在飞行器坐标系下的坐标向量,其中,φ p表示飞行器的初始翻滚角度,θ p表示飞行器的初始俯仰角速度,ψ p表示为飞行器的初始偏航角度。 Magnetometers, also called geomagnetism and magnetic sensors, can be used to test the strength and direction of magnetic fields and locate the orientation of equipment. Based on the advantages of low price, light weight, and compact structure of the magnetometer, it is widely used in the collection of aircraft angles. The initial angle of the aircraft is obtained through magnetometer acquisition. The initial angle of the aircraft can be represented by a vector (φ p , θ p , ψ p ), that is, the initial angle of the aircraft (φ p , θ p , ψ p ) is expressed as the relative of the aircraft. The coordinate vector of the angle of the inertial system in the aircraft coordinate system, where φ p represents the initial roll angle of the aircraft, θ p represents the initial pitch angular velocity of the aircraft, and ψ p represents the initial yaw angle of the aircraft.
102、根据所述飞行器的初始角速度,获取所述飞行器的偏航角速度,其中,所述飞行器的偏航角速度为第一偏航角速度。102. Obtain a yaw angular velocity of the aircraft according to an initial angular velocity of the aircraft, wherein the yaw angular velocity of the aircraft is a first yaw angular velocity.
例如,飞行器的初始角速度为
Figure PCTCN2018116719-appb-000025
则所述飞行器的偏航角速度即第一偏航角速度为
Figure PCTCN2018116719-appb-000026
For example, the initial angular velocity of the aircraft is
Figure PCTCN2018116719-appb-000025
Then the yaw rate of the aircraft, that is, the first yaw rate is
Figure PCTCN2018116719-appb-000026
103:获取所述云台基座的角速度。103: Obtain the angular velocity of the gimbal base.
为了避免姿态求解过程中出现万向节锁现象,使用四元数对飞行器、云台基座、云台电机、拍摄装置的姿态进行描述。其中,产生万向节锁现象的根本原因是,旋转矩阵是依次进行的,假设先围绕x轴旋转,再围绕y轴旋转,最后围绕z轴旋转,这就导致物体其实是围绕自己的坐标系的x轴旋转,而不是惯性系的x轴旋转。表现就是,在一个欧拉角(x1,y1,z1)下,改变x1的值,物体会围绕物体自己的坐标系的x轴进行旋转,而不是世界惯性系的x轴进行旋转,最后,当把物体的x轴旋转到与惯性系的z轴重合时,欧垃角的x1和z1旋转结果就都一样了,也就丢失了一个维度,这便是万向节锁现象。概括起来可以这么说,绕着物体坐标系中某一个轴,比如y轴的+(-)90度的某次旋转,使得这次旋转的前一次绕物体坐标系x轴的旋转和这次旋转的后一次绕物体坐标系z轴的旋转的两个旋转轴是一样(一样的意思是指在惯性系中,两次旋转轴是共轴的但方向相反),从而造成一个旋转自由度丢失,也就是万向节锁现象。In order to avoid the phenomenon of gimbal lock during the attitude solution process, the quaternion is used to describe the attitude of the aircraft, the gimbal base, the gimbal motor, and the shooting device. Among them, the root cause of the universal joint lock phenomenon is that the rotation matrix is sequentially performed. It is assumed that the rotation is about the x-axis, then the y-axis, and finally the z-axis. This causes the object to actually rotate around its own coordinate system. The x-axis rotation is not the x-axis rotation of the inertial frame. The performance is that under an Euler angle (x1, y1, z1), changing the value of x1, the object will rotate around the x-axis of the object's own coordinate system, instead of the x-axis of the world's inertial system. Finally, when When the x-axis of the object is rotated to coincide with the z-axis of the inertial system, the x1 and z1 rotation results of the Euler angle are the same, and one dimension is lost. This is the universal joint lock phenomenon. To sum up, it can be said that a certain rotation around an axis of the object coordinate system, such as + (-) 90 degrees of the y axis, makes the previous rotation about the x axis of the object coordinate system and the rotation The two rotation axes of the last rotation around the z-axis of the object coordinate system are the same (the same means that in the inertial system, the two rotation axes are coaxial but opposite directions), resulting in a loss of rotational freedom, That is the gimbal lock phenomenon.
使用三个量来表示三维空间的朝向的系统都会出现万向节锁现象这个问题,而通过四元数进行描述可以有效的避免万向节锁现象。具体的,可以假设飞行器相对于惯性系的姿态四元数为q ip=[q ip0 q ip1 q ip2 q ip3] T,云台基座相对于惯性坐标系的姿态四元数为q ib=[q ib0 q ib1 q ib2 q ib3] T,云台电机相对于惯性坐标系的姿态四元数为q bc=[q bc0 q bc1 q bc2 q bc3] T,拍摄装置相对于惯性坐标系的姿态四元数为q ic=[q ic0 q ic1 q ic2 q ic3] TThe system that uses three quantities to represent the orientation of the three-dimensional space will have the problem of the gimbal lock phenomenon, and the description by the quaternion can effectively avoid the gimbal lock phenomenon. Specifically, it can be assumed that the attitude quaternion of the aircraft relative to the inertial system is q ip = [q ip0 q ip1 q ip2 q ip3 ] T , and the attitude quaternion of the gimbal base relative to the inertial coordinate system is q ib = [ q ib0 q ib1 q ib2 q ib3 ] T , the attitude quaternion of the gimbal motor relative to the inertial coordinate system is q bc = [q bc0 q bc1 q bc2 q bc3 ] T , the attitude of the camera relative to the inertial coordinate system is four The quaternion is q ic = [q ic0 q ic1 q ic2 q ic3 ] T.
飞行器获取所述云台基座的角速度具体包括:获取所述云台电机的角度;根据所述云台电机的角度,确定所述云台电机的角速度;获取所述拍摄装置的角速度,所述拍摄装置的角速度由所述惯性测量单元采集得到;根据所述云台电机的角速度、所述云台电机的角度及所述拍摄装置的角速度,确定所述云台基座的角速度。Obtaining the angular velocity of the gimbal base by the aircraft specifically includes: acquiring the angle of the gimbal motor; determining the angular velocity of the gimbal motor according to the angle of the gimbal motor; and acquiring the angular velocity of the photographing device, the The angular velocity of the photographing device is acquired by the inertial measurement unit; the angular velocity of the base of the gimbal is determined according to the angular velocity of the gimbal motor, the angle of the gimbal motor, and the angular velocity of the photographing device.
其中,飞行器根据所述云台电机的角度具体过程可以为:在云台电机上设置线性霍尔传感器,通过线性霍尔传感器采集得到云台电机的角度,并将该云台电机的角度发送至飞行器,以使飞行器可获取得到该云台电机的角度。The specific process of the aircraft according to the angle of the gimbal motor may be: setting a linear Hall sensor on the gimbal motor, acquiring the angle of the gimbal motor through the linear hall sensor, and sending the angle of the gimbal motor to the aircraft So that the aircraft can obtain the angle of the gimbal motor.
为了节约成本及降低控制云台电机算法的复杂程度,通常云台的云台电机上不会直接设置测速元件,云台电机的角速度无法直接测量。因此,在本发明实施例中,为了得到云台电机的角速度,由于云台电机的角度可以通过线性霍尔传感器采集得到,因此,可以再借助微分器,得到云台电机的角速度。具体的,根据所述云台电机的角度,确定所述云台电机的角速度包括:将所述云台电机的角度作为输入,通过二阶离散非线性跟踪微分器,计算得到所述云台电机的角速度。In order to save costs and reduce the complexity of the algorithm for controlling the PTZ motor, usually the speed measurement element is not directly set on the PTZ motor, and the angular velocity of the PTZ motor cannot be directly measured. Therefore, in the embodiment of the present invention, in order to obtain the angular velocity of the gimbal motor, since the angle of the gimbal motor can be acquired by a linear Hall sensor, the angular velocity of the gimbal motor can be obtained by using a differentiator. Specifically, determining the angular velocity of the pan / tilt motor according to the angle of the pan / tilt motor includes: taking the angle of the pan / tilt motor as an input, and calculating the pan / tilt motor through a second-order discrete nonlinear tracking differentiator. Angular velocity.
其中,所述二阶离散非线性跟踪微分器的表达式为:The expression of the second-order discrete nonlinear tracking differentiator is:
r 1(k+1)=r 1(k)+T·r 2(k) r 1 (k + 1) = r 1 (k) + T · r 2 (k)
r 2(k+1)=r 2(k)+T·fst(r 1(k)-Ρ(k),r 2(k),δ,h) r 2 (k + 1) = r 2 (k) + T · fst (r 1 (k) -P (k), r 2 (k), δ, h)
其中,T为获取所述云台电机的角度的采样周期,也即线性霍尔传感器的采样周期,通常T=0.001s,Ρ(k)=[φ(k) θ(k) ψ(k)] T为第k时刻所述云台电机的角度,r 1(k)为通过所述二阶离散非线性跟踪微分器对Ρ(k)进行跟踪由Ρ(k)所确定的值,r 2(k)为Ρ(k)的导数,k+1为第k+1时刻所对应的值,fst()为最速控制函数,δ为位于最速控制函数的第三位的参数,δ用于确定跟踪速度,h为位于最速控制函数的第四位的参数。其中,最速控制函数,又称快速控制函数,是能以最短时间完成规定控制作用的最优控制函数。 Among them, T is the sampling period for obtaining the angle of the pan / tilt motor, that is, the sampling period of the linear Hall sensor, usually T = 0.001s, P (k) = [φ (k) θ (k) ψ (k) ] T is the angle of the gimbal motor at time k, r 1 (k) is the value determined by P (k) for tracking P (k) by the second-order discrete nonlinear tracking differentiator, r 2 (k) is the derivative of P (k), k + 1 is the value corresponding to the k + 1th time, fst () is the highest speed control function, δ is the third parameter in the highest speed control function, and δ is used to determine Tracking speed, h is the fourth parameter in the highest speed control function. Among them, the fastest control function, also known as the fast control function, is the optimal control function that can complete the prescribed control action in the shortest time.
最速控制函数fst()的表达式为:The expression of the fastest control function fst () is:
Figure PCTCN2018116719-appb-000027
Figure PCTCN2018116719-appb-000027
Figure PCTCN2018116719-appb-000028
Figure PCTCN2018116719-appb-000028
其中,x 1为位于最速控制函数的第一位的参数,x 2为位于最速控制函数的第四位的参数,δ为位于最速控制函数的第三位的参数,δ用于确定跟踪速度,基于在追踪速度和噪声放大的矛盾中取折中,并经过试验分析,取δ=20,h为位于最速控制函数的第四位的参数。 Among them, x 1 is a parameter at the first position of the fastest control function, x 2 is a parameter at the fourth position of the fastest control function, δ is a parameter at the third position of the fastest control function, and δ is used to determine the tracking speed. Based on the trade-off between tracking speed and noise amplification, and after experimental analysis, take δ = 20, h is the fourth parameter of the fastest control function.
sgn()为阶跃函数,a为阶跃函数的运算参数,d=δ·T为最速控制函数的第一运算参数,根据线性霍尔传感器的噪声特性,通常取d=0.5,d 0=T·d为最速控制函数的第二运算参数,y=x 1+T·x 2为最速控制函数的第三运算参数,
Figure PCTCN2018116719-appb-000029
为最速控制函数的第四运算参数。
sgn () is the step function, a is the operation parameter of the step function, and d = δ · T is the first operation parameter of the fastest control function. According to the noise characteristics of the linear Hall sensor, d = 0.5 and d 0 = T · d is the second operation parameter of the fastest control function, and y = x 1 + T · x 2 is the third operation parameter of the fastest control function,
Figure PCTCN2018116719-appb-000029
It is the fourth operation parameter of the fastest control function.
通过二阶离散非线性跟踪微分器,可实现的功能为:The functions that can be achieved by a second-order discrete nonlinear tracking differentiator are:
r 1(k)→Ρ(k) r 1 (k) → P (k)
Figure PCTCN2018116719-appb-000030
Figure PCTCN2018116719-appb-000030
也即,二阶离散非线性跟踪微分器实现的功能为:通过r 1(k)去跟踪Ρ(k),获得Ρ(k)的微分r 2(k),Ρ(k)的微分就是Ρ(k)的导数
Figure PCTCN2018116719-appb-000031
也即云台电机的角速度
Figure PCTCN2018116719-appb-000032
That is, the function implemented by the second-order discrete nonlinear tracking differentiator is to track P (k) through r 1 (k), to obtain the differential r 2 (k) of P (k), and the differential of P (k) is P derivative of (k)
Figure PCTCN2018116719-appb-000031
The angular velocity of the gimbal motor
Figure PCTCN2018116719-appb-000032
飞行器根据所述云台电机的角速度、所述云台电机的角度及所述拍摄装置的角速度,确定所述云台基座的角速度,具体包括:根据所述云台电机的角度确定旋转变换矩阵,所述旋转变换矩阵为云台基座坐标系到云台电机坐标系的旋转矩阵;根据所述云台电机的角速度、所述旋转变换矩阵及所述拍摄装置的角速度,确定所述云台基座的角速度。The aircraft determining the angular velocity of the gimbal base according to the angular velocity of the gimbal motor, the angle of the gimbal motor, and the angular velocity of the photographing device specifically includes: determining a rotation transformation matrix according to the angle of the gimbal motor The rotation transformation matrix is a rotation matrix of a gimbal base coordinate system to a gimbal motor coordinate system; the gimbal is determined according to an angular velocity of the gimbal motor, the rotation transformation matrix, and an angular velocity of the photographing device. The angular velocity of the base.
首先,根据电机的角度(φ,θ,ψ),确定旋转变换矩阵D。具体的,设R z(ψ)、R x(φ)、R y(θ)分别是绕Z、X、Y轴旋转的单位旋转阵,依据惯性导航基本原理,其R z(ψ)、R x(φ)、R y(θ)的值分别如下: First, the rotation transformation matrix D is determined according to the angle (φ, θ, ψ) of the motor. Specifically, let R z (ψ), R x (φ), and R y (θ) be unit rotation arrays rotating around the Z, X, and Y axes, respectively. According to the basic principles of inertial navigation, their R z (ψ), R The values of x (φ) and R y (θ) are as follows:
Figure PCTCN2018116719-appb-000033
Figure PCTCN2018116719-appb-000033
Figure PCTCN2018116719-appb-000034
Figure PCTCN2018116719-appb-000034
Figure PCTCN2018116719-appb-000035
Figure PCTCN2018116719-appb-000035
拍摄装置的角速度、云台电机的角速度与云台基座的角速度三者之间的联系可用如下姿态动力学方程描述:The relationship between the angular velocity of the shooting device, the angular velocity of the gimbal motor and the angular velocity of the gimbal base can be described by the following dynamic equation of attitude:
Figure PCTCN2018116719-appb-000036
Figure PCTCN2018116719-appb-000036
其中,
Figure PCTCN2018116719-appb-000037
为所述云台基座的角速度,
Figure PCTCN2018116719-appb-000038
为所述拍摄装置的角速度,
Figure PCTCN2018116719-appb-000039
为所述云台电机的角速度。
among them,
Figure PCTCN2018116719-appb-000037
Is the angular velocity of the gimbal base,
Figure PCTCN2018116719-appb-000038
Is the angular velocity of the shooting device,
Figure PCTCN2018116719-appb-000039
Is the angular velocity of the gimbal motor.
基于上述等式,得到根据所述云台电机的角度确定旋转变换矩阵的计算公式为:Based on the above equation, the calculation formula for determining the rotation transformation matrix according to the angle of the gimbal motor is:
Figure PCTCN2018116719-appb-000040
Figure PCTCN2018116719-appb-000040
其中,D表示为旋转变换矩阵;(φ,θ,ψ)表示为所述电机的角度,φ为所述云台电机的角度中的翻滚角,θ为所述云台电机的角度中的俯仰角,ψ为所述云台电机的角度中的偏航角。Where D is the rotation transformation matrix; (φ, θ, ψ) is the angle of the motor, φ is the roll angle in the angle of the gimbal motor, and θ is the pitch in the angle of the gimbal motor. Angle, ψ is the yaw angle among the angles of the gimbal motor.
然后,根据所述云台电机的角速度r 2、所述旋转变换矩阵D及所述拍摄装置的角速度
Figure PCTCN2018116719-appb-000041
确定所述云台基座的角速度
Figure PCTCN2018116719-appb-000042
具体的,计算所述云台基座的角速度的公式为:
Then, according to the angular velocity r 2 of the gimbal motor, the rotation transformation matrix D, and the angular velocity of the imaging device
Figure PCTCN2018116719-appb-000041
Determine the angular velocity of the gimbal base
Figure PCTCN2018116719-appb-000042
Specifically, the formula for calculating the angular velocity of the gimbal base is:
Figure PCTCN2018116719-appb-000043
Figure PCTCN2018116719-appb-000043
其中,
Figure PCTCN2018116719-appb-000044
表示云台基座的角速度,云台基座的角速度包括:云台基座的翻滚角速度、云台基座的俯仰角速度及云台基座的偏航角速度。例如,
Figure PCTCN2018116719-appb-000045
则,
Figure PCTCN2018116719-appb-000046
表示飞行器的初始翻滚角速度,
Figure PCTCN2018116719-appb-000047
表示飞行器的初始俯仰角速度,
Figure PCTCN2018116719-appb-000048
表示为飞行器的初始偏航角速度。
among them,
Figure PCTCN2018116719-appb-000044
Represents the angular velocity of the gimbal base. The angular velocity of the gimbal base includes the roll angular velocity of the gimbal base, the pitch angular velocity of the gimbal base, and the yaw angular velocity of the gimbal base. E.g,
Figure PCTCN2018116719-appb-000045
then,
Figure PCTCN2018116719-appb-000046
Represents the initial roll angular velocity of the aircraft,
Figure PCTCN2018116719-appb-000047
Represents the initial pitch angular velocity of the aircraft,
Figure PCTCN2018116719-appb-000048
Expressed as the initial yaw rate of the aircraft.
104:根据所述云台的基座角速度,获取所述云台基座的偏航角速度,其中,所述云台基座的偏航角速度为第二偏航角速度。104: Obtain a yaw angular velocity of the gimbal base according to the angular velocity of the base of the gimbal, wherein the yaw angular velocity of the gimbal base is a second yaw angular velocity.
例如,云台基座的角速度为
Figure PCTCN2018116719-appb-000049
则所述云台基座的偏航角速度即第二偏航角速度为
Figure PCTCN2018116719-appb-000050
For example, the angular velocity of the gimbal base is
Figure PCTCN2018116719-appb-000049
Then the yaw angular velocity of the gimbal base, that is, the second yaw angular velocity is
Figure PCTCN2018116719-appb-000050
105、比较所述第一偏航角速度
Figure PCTCN2018116719-appb-000051
与所述第二偏航角速度
Figure PCTCN2018116719-appb-000052
105. Compare the first yaw angular velocity
Figure PCTCN2018116719-appb-000051
With the second yaw angular velocity
Figure PCTCN2018116719-appb-000052
通过比较第一偏航角速度
Figure PCTCN2018116719-appb-000053
与所述第二偏航角速度
Figure PCTCN2018116719-appb-000054
可以确定两者的大小关系、两者的差值等。
By comparing the first yaw angular velocity
Figure PCTCN2018116719-appb-000053
With the second yaw angular velocity
Figure PCTCN2018116719-appb-000054
You can determine the size relationship between the two, the difference between the two, and so on.
106:当所述第一偏航角速度与所述第二偏航角速度的差值大于或等于预设阈值时,根据所述第一偏航角速度与所述第二偏航角速度,对所述飞行器的偏航角进行修正,以得到修正后的所述飞行器的偏航角。106: When the difference between the first yaw angular velocity and the second yaw angular velocity is greater than or equal to a preset threshold, the aircraft is determined according to the first yaw angular velocity and the second yaw angular velocity. The yaw angle of the aircraft is corrected to obtain a corrected yaw angle of the aircraft.
其中,该预设阈值由飞行器是否收到偏航操作指令所确定。具体的,所述预设阈值由所述飞行器是否收到偏航操作指令所确定包括:The preset threshold is determined by whether the aircraft receives a yaw operation instruction. Specifically, the preset threshold determined by whether the aircraft receives a yaw operation instruction includes:
当飞行器收到偏航操作指令时,所述预设阈值为第一预设阈值;When the aircraft receives a yaw operation instruction, the preset threshold is a first preset threshold;
当飞行器未收到偏航操作指令时,所述预设阈值为第二预设阈值,其中,所述第二预设阈值小于所述第一预设阈值。When the aircraft does not receive a yaw operation instruction, the preset threshold is a second preset threshold, wherein the second preset threshold is smaller than the first preset threshold.
通常在飞行器飞行的过程中,云台基座的偏航角是实时跟随飞行器的偏航角运动而运动的,即第二偏航角速度
Figure PCTCN2018116719-appb-000055
与第一偏航角速度
Figure PCTCN2018116719-appb-000056
是几近同步的,考虑飞行器飞行过程中由于飞控不稳导致的偏航角误转动,
Figure PCTCN2018116719-appb-000057
Figure PCTCN2018116719-appb-000058
满足关系:
Figure PCTCN2018116719-appb-000059
其中,ζ表示预设阈值。当用户的转航向杆时,也即存在偏航操作时,如飞行器接收到由用户进行偏航操作而生成偏航操作指令时,由于飞行器在航向方向有一个加速运动,云台基座虽然试图及时跟上飞行器第偏航角的运动,但总有一个小滞后,因而此时,所述预设阈值为第一预设阈值,如ζ=ζ 1=5。其中,ζ 1表示第一预设阈值。当用户不转航向杆时,也即不存在偏航操作时,飞行器在航向方向没有加速运动,此时云台基座可较为及时的跟随飞行器的航向运动,也即所述预设阈值为第二预设阈值,如ζ=ζ 1=2。其中,ζ 2表示第二预设阈值。并且,所述第二预设阈值ζ 2小于所述第一预设阈值ζ 1
Usually during the flight of the aircraft, the yaw angle of the gimbal base moves in real time following the yaw angle of the aircraft, that is, the second yaw angular velocity
Figure PCTCN2018116719-appb-000055
With first yaw rate
Figure PCTCN2018116719-appb-000056
It is almost synchronous. Considering the yaw angle error rotation caused by unstable flight control during the flight of the aircraft,
Figure PCTCN2018116719-appb-000057
versus
Figure PCTCN2018116719-appb-000058
Satisfaction relationship:
Figure PCTCN2018116719-appb-000059
Among them, ζ represents a preset threshold. When the user turns the course, that is, when there is a yaw operation, such as when the aircraft receives a yaw operation instruction generated by the user's yaw operation, because the aircraft has an acceleration movement in the heading direction, although the gimbal base tries to Keep up with the movement of the aircraft's yaw angle in time, but there is always a small lag, so at this time, the preset threshold is the first preset threshold, such as ζ = ζ 1 = 5. Wherein, ζ 1 represents a first preset threshold. When the user does not turn the heading stick, that is, when there is no yaw operation, the aircraft does not accelerate in the heading direction. At this time, the gimbal base can follow the heading motion of the aircraft in a timely manner, that is, the preset threshold value is Two preset thresholds, such as ζ = ζ 1 = 2. Wherein, ζ 2 represents a second preset threshold. And, the second preset threshold ζ 2 is smaller than the first preset threshold ζ 1 .
如果在某一时刻,飞行器的磁力计受到强干扰且GPS信号较弱,GPS未能起到有效的偏航角修正作用,则飞行器的偏航角估算会突然出错, 结果是使得飞行器产生一个相对云台基座的快速转动,产生一个角速度差值
Figure PCTCN2018116719-appb-000060
其中,η表示所述第一偏航角速度与所述第二偏航角速度的差值,η≥ζ,可判断磁力计受到干扰。此时需要对飞行器进行修正。
If at some point the aircraft ’s magnetometer is subject to strong interference and the GPS signal is weak, GPS fails to perform an effective yaw angle correction. Rapid rotation of the gimbal base produces an angular velocity difference
Figure PCTCN2018116719-appb-000060
Wherein, η represents a difference between the first yaw angular velocity and the second yaw angular velocity, and η ≧ ζ, it can be judged that the magnetometer is disturbed. At this time, the aircraft needs to be corrected.
具体的,当所述第一偏航角速度
Figure PCTCN2018116719-appb-000061
与所述第二偏航角速度
Figure PCTCN2018116719-appb-000062
的差值η大于或等于预设阈值ζ时,飞行器根据所述第一偏航角速度
Figure PCTCN2018116719-appb-000063
与所述第二偏航角速度
Figure PCTCN2018116719-appb-000064
对所述飞行器的初始角度中的偏航角ψ p进行修正,以得到修正后的所述飞行器的偏航角ψ′ p
Specifically, when the first yaw angular velocity
Figure PCTCN2018116719-appb-000061
With the second yaw angular velocity
Figure PCTCN2018116719-appb-000062
When the difference η is greater than or equal to the preset threshold ζ, the aircraft is based on the first yaw angular velocity
Figure PCTCN2018116719-appb-000063
With the second yaw angular velocity
Figure PCTCN2018116719-appb-000064
The yaw angle ψ p in the initial angle of the aircraft is modified to obtain a corrected yaw angle ψ ′ p of the aircraft.
其中,飞行器根据所述第一偏航角速度
Figure PCTCN2018116719-appb-000065
与所述第二偏航角速度
Figure PCTCN2018116719-appb-000066
对所述飞行器的初始角度中的偏航角ψ p进行修正,包括:根据所述第一偏航角速度
Figure PCTCN2018116719-appb-000067
与所述第二偏航角速度
Figure PCTCN2018116719-appb-000068
的差值η,得到偏航角补偿值Δψ p;根据所述偏航角补偿值Δψ p对所述飞行器的初始角度中的偏航角ψ p进行修正。
Wherein, the aircraft is based on the first yaw angular velocity
Figure PCTCN2018116719-appb-000065
With the second yaw angular velocity
Figure PCTCN2018116719-appb-000066
Correcting the yaw angle ψ p in the initial angle of the aircraft includes: according to the first yaw angular velocity
Figure PCTCN2018116719-appb-000067
With the second yaw angular velocity
Figure PCTCN2018116719-appb-000068
To obtain a yaw angle compensation value Δψ p ; correct the yaw angle ψ p in the initial angle of the aircraft according to the yaw angle compensation value Δψ p .
飞行器根据所述第一偏航角速度与所述第二偏航角速度的差值得到偏航角补偿值的计算公式为:The calculation formula for the yaw angle compensation value based on the difference between the first yaw angular velocity and the second yaw angular velocity is:
Figure PCTCN2018116719-appb-000069
Figure PCTCN2018116719-appb-000069
其中,Δψ p为偏航角补偿值,t 0为获取所述飞行器的初始姿态信息所对应的时间,ΔT为对所述飞行器的初始角度中的偏航角进行修正的周期,根据经验,通常ΔT=5T,也即,代表每5个采样间隔的时长进行一次偏航角修正,
Figure PCTCN2018116719-appb-000070
为第一偏航角速度,
Figure PCTCN2018116719-appb-000071
为第二偏航角速度。
Among them, Δψ p is the yaw angle compensation value, t 0 is the time corresponding to obtaining the initial attitude information of the aircraft, and ΔT is the period for correcting the yaw angle in the initial angle of the aircraft. According to experience, usually ΔT = 5T, that is, yaw angle correction is performed once every 5 sampling intervals,
Figure PCTCN2018116719-appb-000070
Is the first yaw angular velocity,
Figure PCTCN2018116719-appb-000071
Is the second yaw angular velocity.
飞行器得到修正后的所述飞行器的偏航角的计算公式为:The calculation formula for the aircraft to obtain the revised yaw angle of the aircraft is:
ψ′ p=ψ p+Δψ p ψ ′ p = ψ p + Δψ p
其中,ψ′ p为修正后的偏航角,ψ p为所述飞行器的初始角度中的偏航角,Δψ p为偏航角补偿值。 Among them, ψ ′ p is a modified yaw angle, ψ p is a yaw angle in an initial angle of the aircraft, and Δψ p is a yaw angle compensation value.
在本发明实施例中,通过飞行器的初始角速度中的偏航角速度与云台基座的角速度中的偏航角速度的差值,对飞行器的初始角度中的偏航角进行修正,可以有效的提高估算飞行器偏航角的准确度,该估算方法 可避免外界因素的干扰,也即在GPS信号弱与强磁干扰环境下,也具有较高的估算准确度,从而有效提高飞行器飞行的安全性与稳定性。In the embodiment of the present invention, the yaw angle in the initial angle of the aircraft is corrected by the difference between the yaw angular speed in the initial angular speed of the aircraft and the yaw angular speed in the angular speed of the gimbal base, which can effectively improve The accuracy of estimating the yaw angle of the aircraft. This estimation method can avoid the interference of external factors, that is, it has a high estimation accuracy under the environment of weak GPS signals and strong magnetic interference, thereby effectively improving the safety and flight of the aircraft. stability.
实施例2:Example 2:
图3为本发明实施例提供的一种飞行器偏航角修正装置示意图。其中,所述飞行器偏航角修正装置30可配置于各种电子设备中,如飞行器、控制芯片等,该飞行器可以包括无人机、无人船等。以下电子设备以飞行器为例进行说明。其中,飞行器连接有云台,云台包括云台基座、与云台基座相连的云台电机以及与云台电机相连的摄像装置,其中,云台可以为多轴云台,如两轴云台、三轴云台,以下三轴云台为例进行说明。飞行器设置有姿态传感器组件。对于该飞行器及云台的具体结构的描述可以参考上述描述,因此,在此处不作赘述。FIG. 3 is a schematic diagram of an aircraft yaw angle correction device according to an embodiment of the present invention. The aircraft yaw correction device 30 may be configured in various electronic devices, such as an aircraft and a control chip. The aircraft may include an unmanned aerial vehicle, an unmanned ship, and the like. The following electronic devices are described using an aircraft as an example. The aircraft is connected with a gimbal. The gimbal includes a gimbal base, a gimbal motor connected to the gimbal base, and a camera device connected to the gimbal motor. The gimbal can be a multi-axis gimbal, such as a two-axis gimbal. PTZ and 3-axis PTZ. The following three-axis PTZ is used as an example. The aircraft is provided with an attitude sensor assembly. For the description of the specific structure of the aircraft and the gimbal, reference may be made to the above description, and therefore, it will not be repeated here.
请参照图3,所述飞行器偏航角修正装置30包括:Referring to FIG. 3, the aircraft yaw correction device 30 includes:
初始姿态信息获取模块301,用于获取所述飞行器的初始姿态信息以及用于根据所述飞行器的初始角速度,获取所述飞行器的偏航角速度,其中所述飞行器的偏航角速度为第一偏航角速度。An initial attitude information acquisition module 301 is configured to obtain initial attitude information of the aircraft and to obtain a yaw angular velocity of the aircraft according to an initial angular velocity of the aircraft, wherein the yaw angular velocity of the aircraft is a first yaw Angular velocity.
初始姿态信息获取模块301获取所述飞行器的初始姿态信息具体包括:首先由设置于飞行器上的姿态传感器组件采集得到初始姿态信息,并将该初始姿态信息发送至初始姿态信息获取模块301,以使初始姿态信息获取模块301获取得到该初始姿态信息。其中,飞行器的初始姿态信息包括飞行器的初始角速度及飞行器的初始角度。获取了飞行器的初始角速度之后,可进一步获取所述第一偏航角速度,例如,飞行器的初始角速度为
Figure PCTCN2018116719-appb-000072
则所述第一偏航角速度为
Figure PCTCN2018116719-appb-000073
Obtaining the initial attitude information of the aircraft by the initial attitude information acquisition module 301 specifically includes: first acquiring initial attitude information by an attitude sensor component provided on the aircraft, and sending the initial attitude information to the initial attitude information acquisition module 301, The initial posture information acquisition module 301 acquires the initial posture information. The initial attitude information of the aircraft includes the initial angular velocity of the aircraft and the initial angle of the aircraft. After obtaining the initial angular velocity of the aircraft, the first yaw angular velocity may be further obtained. For example, the initial angular velocity of the aircraft is
Figure PCTCN2018116719-appb-000072
Then the first yaw angular velocity is
Figure PCTCN2018116719-appb-000073
基座角速度获取模块302,用于获取所述云台基座的角速度和用于根据所述云台基座的角速度获取所述云台基座的偏航角速度,其中,所述云台基座的偏航角速度为第二偏航角速度。云台基座的角速度为
Figure PCTCN2018116719-appb-000074
则所述第二偏航角速度为
Figure PCTCN2018116719-appb-000075
The base angular velocity obtaining module 302 is configured to obtain the angular velocity of the gimbal base and obtain the yaw angular velocity of the gimbal base according to the angular velocity of the gimbal base, wherein the gimbal base The yaw angular velocity is the second yaw angular velocity. The angular velocity of the gimbal base is
Figure PCTCN2018116719-appb-000074
Then the second yaw angular velocity is
Figure PCTCN2018116719-appb-000075
基座角速度获取模块302获取所述云台基座的角速度具体包括:获取所述云台电机的角度;根据所述云台电机的角度,确定所述云台电机的角速度;获取所述拍摄装置的角速度,所述拍摄装置的角速度由所述惯性测量单元采集得到;根据所述云台电机的角速度、所述云台电机的角度及所述拍摄装置的角速度,确定所述云台基座的角速度。The pedestal angular velocity acquisition module 302 acquiring the angular velocity of the PTZ base specifically includes: acquiring the angle of the PTZ motor; determining the angular velocity of the PTZ motor according to the angle of the PTZ motor; The angular velocity of the photographing device is acquired by the inertial measurement unit; the angular velocity of the gimbal base is determined according to the angular velocity of the gimbal motor, the angle of the gimbal motor, and the angular velocity of the photographing device. Angular velocity.
其中,基座角速度获取模块302根据所述云台电机的角度具体过程可以为:在云台电机上设置线性霍尔传感器,通过线性霍尔传感器采集得到云台电机的角度,并将该云台电机的角度发送至基座角速度获取模块302,以使基座角速度获取模块302可获取得到该云台电机的角度。The specific process of the base angular velocity acquisition module 302 according to the angle of the gimbal motor may be: setting a linear Hall sensor on the gimbal motor, acquiring the angle of the gimbal motor through the linear hall sensor, and integrating the gimbal motor The angle is sent to the base angular velocity acquisition module 302, so that the base angular velocity acquisition module 302 can obtain the angle of the gimbal motor.
为了节约成本及降低控制云台电机算法的复杂程度,通常云台的云台电机上不会直接设置测速元件,云台电机的角速度无法直接测量。因此,在本发明实施例中,为了得到云台电机的角速度,由于云台电机的角度可以通过线性霍尔传感器采集得到,因此,可以再借助微分器,得到云台电机的角速度。具体的,基座角速度获取模块302根据所述云台电机的角度,确定所述云台电机的角速度包括:将所述云台电机的角度作为输入,通过二阶离散非线性跟踪微分器,计算得到所述云台电机的角速度。In order to save costs and reduce the complexity of the algorithm for controlling the PTZ motor, usually the speed measurement element is not directly set on the PTZ motor, and the angular velocity of the PTZ motor cannot be directly measured. Therefore, in the embodiment of the present invention, in order to obtain the angular velocity of the gimbal motor, since the angle of the gimbal motor can be acquired by a linear Hall sensor, the angular velocity of the gimbal motor can be obtained by using a differentiator. Specifically, the base angular velocity acquisition module 302 determines the angular velocity of the pan / tilt motor according to the angle of the pan / tilt motor including: using the angle of the pan / tilt motor as an input, and calculating through a second-order discrete nonlinear tracking differentiator. Get the angular velocity of the gimbal motor.
其中,所述二阶离散非线性跟踪微分器的表达式为:The expression of the second-order discrete nonlinear tracking differentiator is:
r 1(k+1)=r 1(k)+T·r 2(k) r 1 (k + 1) = r 1 (k) + T · r 2 (k)
r 2(k+1)=r 2(k)+T·fst(r 1(k)-Ρ(k),r 2(k),δ,h) r 2 (k + 1) = r 2 (k) + T · fst (r 1 (k) -P (k), r 2 (k), δ, h)
其中,T为获取所述云台电机的角度的采样周期,也即线性霍尔传感器的采样周期,通常T=0.001s,Ρ(k)=[φ(k) θ(k) ψ(k)] T为第k时刻所述云台电机的角度,r 1(k)为通过所述二阶离散非线性跟踪微分器对Ρ(k)进行跟踪由Ρ(k)所确定的值,r 2(k)为Ρ(k)的导数,k+1为第k+1时刻所对应的值,fst()为最速控制函数,δ为位于最速控制函数的第三位的参数,δ用于确定跟踪速度,h为位于最速控制函数的第四位的参数。 Among them, T is the sampling period for obtaining the angle of the pan / tilt motor, that is, the sampling period of the linear Hall sensor, usually T = 0.001s, P (k) = [φ (k) θ (k) ψ (k) ] T is the angle of the gimbal motor at time k, r 1 (k) is the value determined by P (k) for tracking P (k) by the second-order discrete nonlinear tracking differentiator, r 2 (k) is the derivative of P (k), k + 1 is the value corresponding to the k + 1th time, fst () is the highest speed control function, δ is the third parameter in the highest speed control function, and δ is used to determine Tracking speed, h is the fourth parameter in the highest speed control function.
通过二阶离散非线性跟踪微分器,可实现的功能为:The functions that can be achieved by a second-order discrete nonlinear tracking differentiator are:
r 1(k)→Ρ(k) r 1 (k) → P (k)
Figure PCTCN2018116719-appb-000076
Figure PCTCN2018116719-appb-000076
也即,二阶离散非线性跟踪微分器实现的功能为:通过r 1(k)去跟踪Ρ(k),获得Ρ(k)的微分r 2(k),Ρ(k)的微分就是Ρ(k)的导数
Figure PCTCN2018116719-appb-000077
也即云台电机的角速度
Figure PCTCN2018116719-appb-000078
That is, the function implemented by the second-order discrete nonlinear tracking differentiator is to track P (k) through r 1 (k), to obtain the differential r 2 (k) of P (k), and the differential of P (k) is P derivative of (k)
Figure PCTCN2018116719-appb-000077
The angular velocity of the gimbal motor
Figure PCTCN2018116719-appb-000078
基座角速度获取模块302根据所述云台电机的角速度、所述云台电机的角度及所述拍摄装置的角速度,确定所述云台基座的角速度,具体包括:根据所述云台电机的角度确定旋转变换矩阵,所述旋转变换矩阵为云台基座坐标系到云台电机坐标系的旋转矩阵;根据所述云台电机的角速度、所述旋转变换矩阵及所述拍摄装置的角速度,确定所述云台基座的角速度。The base angular velocity acquisition module 302 determines the angular velocity of the gimbal base according to the angular velocity of the gimbal motor, the angle of the gimbal motor, and the angular velocity of the photographing device, and specifically includes: The angle determines a rotation transformation matrix, the rotation transformation matrix being a rotation matrix of a gimbal base coordinate system to a gimbal motor coordinate system; according to the angular velocity of the gimbal motor, the rotation transformation matrix, and the angular velocity of the photographing device, Determine the angular velocity of the gimbal base.
其中,基座角速度获取模块302根据所述云台电机的角度确定旋转变换矩阵的计算公式为:The calculation formula of the base angular velocity obtaining module 302 to determine the rotation transformation matrix according to the angle of the gimbal motor is:
Figure PCTCN2018116719-appb-000079
Figure PCTCN2018116719-appb-000079
其中,D表示为旋转变换矩阵;(φ,θ,ψ)表示为所述电机的角度,φ为所述云台电机的角度中的翻滚角,θ为所述云台电机的角度中的俯仰角,ψ为所述云台电机的角度中的偏航角。Where D is the rotation transformation matrix; (φ, θ, ψ) is the angle of the motor, φ is the roll angle in the angle of the gimbal motor, and θ is the pitch in the angle of the gimbal motor. Angle, ψ is the yaw angle among the angles of the gimbal motor.
然后,基座角速度获取模块302根据所述云台电机的角速度r 2、所述旋转变换矩阵D及所述拍摄装置的角速度
Figure PCTCN2018116719-appb-000080
确定所述云台基座的角速度
Figure PCTCN2018116719-appb-000081
具体的,基座角速度获取模块302计算所述云台基座的角速度的公式为:
Then, the base angular velocity acquisition module 302 is based on the angular velocity r 2 of the gimbal motor, the rotation transformation matrix D, and the angular velocity of the photographing device.
Figure PCTCN2018116719-appb-000080
Determine the angular velocity of the gimbal base
Figure PCTCN2018116719-appb-000081
Specifically, the formula for calculating the angular velocity of the pedestal angular velocity obtaining module 302 is:
Figure PCTCN2018116719-appb-000082
Figure PCTCN2018116719-appb-000082
比较模块303,用于将第一偏航角速度与第二偏航角速度进行比较。The comparison module 303 is configured to compare the first yaw angular velocity with the second yaw angular velocity.
通过比较模块303将第一偏航角速度
Figure PCTCN2018116719-appb-000083
与第二偏航角速度
Figure PCTCN2018116719-appb-000084
进行比较,可以确定两者的大小关系、两者的差值等。
The first yaw angular velocity is compared by the comparison module 303
Figure PCTCN2018116719-appb-000083
With second yaw rate
Figure PCTCN2018116719-appb-000084
By comparison, you can determine the size relationship between the two, the difference between the two, and so on.
修正模块304,用于当所述第一偏航角速度与所述第二偏航角速度 的差值大于或等于预设阈值时,根据所述第一偏航角速度与所述第二偏航角速度,对所述飞行器的偏航角进行修正,以得到修正后的所述飞行器的偏航角。A correction module 304 is configured to, when a difference between the first yaw angular velocity and the second yaw angular velocity is greater than or equal to a preset threshold, according to the first yaw angular velocity and the second yaw angular velocity, Correct the yaw angle of the aircraft to obtain a corrected yaw angle of the aircraft.
预设阈值确定模块305,用于根据判断所述飞行器是否接收到偏航操作指令,确定所述预设阈值。A preset threshold determination module 305 is configured to determine the preset threshold according to a determination as to whether the aircraft has received a yaw operation instruction.
其中,预设阈值确定模块305具体用于:当所述飞行器收到偏航操作指令时,确定所述预设阈值为第一预设阈值;当所述飞行器未收到偏航操作指令时,确定所述预设阈值为第二预设阈值,其中,所述第二预设阈值小于所述第一预设阈值。The preset threshold determination module 305 is specifically configured to: when the aircraft receives a yaw operation instruction, determine that the preset threshold is a first preset threshold; when the aircraft does not receive a yaw operation instruction, It is determined that the preset threshold is a second preset threshold, wherein the second preset threshold is smaller than the first preset threshold.
通常在飞行器飞行的过程中,云台基座的偏航角是实时跟随飞行器的偏航角运动而运动的,即第二偏航角速度
Figure PCTCN2018116719-appb-000085
与第一偏航角速度
Figure PCTCN2018116719-appb-000086
是几近同步的,考虑飞行器飞行过程中由于飞控不稳导致的偏航角误转动,
Figure PCTCN2018116719-appb-000087
Figure PCTCN2018116719-appb-000088
满足关系:
Figure PCTCN2018116719-appb-000089
其中,ζ表示预设阈值。当用户的转航向杆时,也即存在偏航操作时,由于飞行器在航向方向有一个加速运动,云台基座虽然试图及时跟上飞行器第偏航角的运动,但总有一个小滞后,因而此时,预设阈值确定模块305将所述预设阈值确定为第一预设阈值,如ζ=ζ 1=5。其中,ζ 1表示第一预设阈值。当用户不转航向杆时,也即不存在偏航操作时,飞行器在航向方向没有加速运动,此时云台基座可较为及时的跟随飞行器的航向运动,也即预设阈值确定模块305将所述预设阈值确定为第二预设阈值,如ζ=ζ 1=2。其中,ζ 2表示第二预设阈值。并且,所述第二预设阈值ζ 2小于所述第一预设阈值ζ 1
Usually during the flight of the aircraft, the yaw angle of the gimbal base moves in real time following the yaw angle of the aircraft, that is, the second yaw angular velocity
Figure PCTCN2018116719-appb-000085
With first yaw rate
Figure PCTCN2018116719-appb-000086
It is almost synchronous. Considering the yaw angle error rotation caused by unstable flight control during the flight of the aircraft,
Figure PCTCN2018116719-appb-000087
versus
Figure PCTCN2018116719-appb-000088
Satisfaction relationship:
Figure PCTCN2018116719-appb-000089
Among them, ζ represents a preset threshold. When the user turns the yaw, that is, when there is a yaw operation, because the aircraft has an acceleration movement in the heading direction, although the gimbal base tries to keep up with the movement of the aircraft's yaw angle, there is always a small lag. Therefore, at this time, the preset threshold determination module 305 determines the preset threshold as the first preset threshold, such as ζ = ζ 1 = 5. Wherein, ζ 1 represents a first preset threshold. When the user does not turn the heading stick, that is, when there is no yaw operation, the aircraft does not accelerate in the heading direction. At this time, the gimbal base can follow the heading motion of the aircraft in a timely manner. The preset threshold is determined as a second preset threshold, such as ζ = ζ 1 = 2. Wherein, ζ 2 represents a second preset threshold. And, the second preset threshold ζ 2 is smaller than the first preset threshold ζ 1 .
如果在某一时刻,飞行器的磁力计受到强干扰且GPS信号较弱,GPS未能起到有效的偏航角修正作用,则飞行器的偏航角估算会突然出错,结果是使得飞行器产生一个相对云台基座的快速转动,产生一个角速度差值
Figure PCTCN2018116719-appb-000090
其中,η表示所述第一偏航角速度与所述第二偏航角速度的差值,η≥ζ,可判断磁力计受到干扰。此时需要修正模块304对飞行器的偏航角进行修正。
If at some point, the aircraft's magnetometer is subject to strong interference and the GPS signal is weak, and GPS fails to perform an effective yaw angle correction, the yaw angle estimation of the aircraft will suddenly be wrong, with the result that the aircraft will generate a relative Rapid rotation of the gimbal base produces an angular velocity difference
Figure PCTCN2018116719-appb-000090
Wherein, η represents a difference between the first yaw angular velocity and the second yaw angular velocity, and η ≧ ζ, it can be judged that the magnetometer is disturbed. At this time, the correction module 304 needs to correct the yaw angle of the aircraft.
具体的,当所述第一偏航角速度
Figure PCTCN2018116719-appb-000091
与所述第二偏航角速度
Figure PCTCN2018116719-appb-000092
的差值η大于或等于预设阈值ζ时,修正模块304根据所述第一偏航角速度
Figure PCTCN2018116719-appb-000093
与所述第二偏航角速度
Figure PCTCN2018116719-appb-000094
对所述飞行器的初始角度中的偏航角ψ p进行修正,以得到修正后的所述飞行器的偏航角ψ′ p
Specifically, when the first yaw angular velocity
Figure PCTCN2018116719-appb-000091
With the second yaw angular velocity
Figure PCTCN2018116719-appb-000092
When the difference η is greater than or equal to the preset threshold ζ, the correction module 304 is based on the first yaw angular velocity.
Figure PCTCN2018116719-appb-000093
With the second yaw angular velocity
Figure PCTCN2018116719-appb-000094
The yaw angle ψ p in the initial angle of the aircraft is modified to obtain a corrected yaw angle ψ ′ p of the aircraft.
其中,修正模块304根据所述第一偏航角速度
Figure PCTCN2018116719-appb-000095
与所述第二偏航角速度
Figure PCTCN2018116719-appb-000096
对所述飞行器的初始角度中的偏航角ψ p进行修正,包括:根据所述第一偏航角速度
Figure PCTCN2018116719-appb-000097
与所述第二偏航角速度
Figure PCTCN2018116719-appb-000098
的差值η,得到偏航角补偿值Δψ p;根据所述偏航角补偿值Δψ p对所述飞行器的初始角度中的偏航角ψ p进行修正。
Wherein, the correction module 304 is based on the first yaw angular velocity.
Figure PCTCN2018116719-appb-000095
With the second yaw angular velocity
Figure PCTCN2018116719-appb-000096
Correcting the yaw angle ψ p in the initial angle of the aircraft includes: according to the first yaw angular velocity
Figure PCTCN2018116719-appb-000097
With the second yaw angular velocity
Figure PCTCN2018116719-appb-000098
To obtain a yaw angle compensation value Δψ p ; correct the yaw angle ψ p in the initial angle of the aircraft according to the yaw angle compensation value Δψ p .
修正模块304根据所述第一偏航角速度与所述第二偏航角速度的差值得到偏航角补偿值的计算公式为:The correction module 304 calculates the yaw angle compensation value according to the difference between the first yaw angular velocity and the second yaw angular velocity as:
Figure PCTCN2018116719-appb-000099
Figure PCTCN2018116719-appb-000099
其中,Δψ p为偏航角补偿值,t 0为获取所述飞行器的初始姿态信息所对应的时间,ΔT为对所述飞行器的初始角度中的偏航角进行修正的周期,根据经验,通常ΔT=5T,也即,代表每5个采样间隔的时长进行一次偏航角修正,
Figure PCTCN2018116719-appb-000100
为第一偏航角速度,
Figure PCTCN2018116719-appb-000101
为第二偏航角速度。
Among them, Δψ p is the yaw angle compensation value, t 0 is the time corresponding to obtaining the initial attitude information of the aircraft, and ΔT is the period for correcting the yaw angle in the initial angle of the aircraft. According to experience, usually ΔT = 5T, that is, yaw angle correction is performed once every 5 sampling intervals,
Figure PCTCN2018116719-appb-000100
Is the first yaw angular velocity,
Figure PCTCN2018116719-appb-000101
Is the second yaw angular velocity.
修正模块304得到修正后的所述飞行器的偏航角的计算公式为:The correction formula for the yaw angle of the aircraft obtained by the correction module 304 is:
ψ′ p=ψ p+Δψ p ψ ′ p = ψ p + Δψ p
其中,ψ′ p为修正后的偏航角,ψ p为所述飞行器的初始角度中的偏航角,Δψ p为偏航角补偿值。 Among them, ψ ′ p is a modified yaw angle, ψ p is a yaw angle in an initial angle of the aircraft, and Δψ p is a yaw angle compensation value.
需要说明的是,在本发明实施例中,所述飞行器偏航角修正装置30可执行方法实施例所提供的飞行器偏航角修正方法,具备执行方法相应的功能模块和有益效果。未在飞行器偏航角修正装置30的实施例中详尽描述的技术细节,可参见方法发明实施例所提供的飞行器偏航角修正方法。It should be noted that, in the embodiment of the present invention, the aircraft yaw angle correction device 30 can execute the aircraft yaw angle correction method provided by the method embodiment, and has corresponding function modules and beneficial effects of the execution method. For technical details that are not described in detail in the embodiment of the aircraft yaw angle correction device 30, reference may be made to the aircraft yaw angle correction method provided in the embodiment of the method invention.
实施例3:Example 3:
图4是本发明实施例提供的飞行器硬件结构示意图,如图4所示,所述飞行器40包括:FIG. 4 is a schematic diagram of an aircraft hardware structure according to an embodiment of the present invention. As shown in FIG. 4, the aircraft 40 includes:
一个或多个处理器401以及存储器402,图4中以一个处理器401为例。One or more processors 401 and a memory 402. One processor 401 is taken as an example in FIG. 4.
处理器401和存储器402可以通过总线或者其他方式连接,图4中以通过总线连接为例。The processor 401 and the memory 402 may be connected through a bus or other manners. In FIG. 4, the connection through the bus is taken as an example.
存储器402作为一种非易失性计算机可读存储介质,可用于存储非易失性软件程序、非易失性计算机可执行程序以及模块,如本发明实施例中的飞行器偏航角修正方法对应的程序指令/模块(例如,附图3所示的初始姿态信息获取模块301、基座角速度获取模块302、比较模块303、修正模块304以及预设阈值确定模块405)。处理器401通过运行存储在存储器402中的非易失性软件程序、指令以及单元,从而执行飞行器的各种功能应用以及数据处理,即实现所述方法实施例的飞行器偏航角修正方法。The memory 402 is a non-volatile computer-readable storage medium, and can be used to store non-volatile software programs, non-volatile computer executable programs, and modules. Program instructions / modules (for example, the initial attitude information acquisition module 301, the base angular velocity acquisition module 302, the comparison module 303, the correction module 304, and the preset threshold determination module 405 shown in FIG. 3). The processor 401 executes various functional applications and data processing of the aircraft by running non-volatile software programs, instructions, and units stored in the memory 402, that is, an aircraft yaw angle correction method of the method embodiment is implemented.
存储器402可以包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需要的应用程序;存储数据区可存储根据飞行器使用所创建的数据等。此外,存储器402可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他非易失性固态存储器件。在一些实施例中,存储器402可选包括相对于处理器401远程设置的存储器,这些远程存储器可以通过网络连接至飞行器。所述网络的实施例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The memory 402 may include a storage program area and a storage data area, wherein the storage program area may store an operating system and application programs required for at least one function; the storage data area may store data created according to aircraft use, and the like. In addition, the memory 402 may include a high-speed random access memory, and may further include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some embodiments, the memory 402 may optionally include a memory remotely set relative to the processor 401, and these remote memories may be connected to the aircraft through a network. Examples of the network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
所述一个或者多个单元存储在所述存储器402中,当被所述一个或者多个处理器401执行时,执行所述方法实施例中的飞行器偏航角修正方法,例如,执行以上描述的图1中的方法步骤101至步骤104,实现图3中的301-305模块的功能。The one or more units are stored in the memory 402, and when executed by the one or more processors 401, execute the aircraft yaw angle correction method in the method embodiment, for example, execute the above-described The method steps 101 to 104 in FIG. 1 implement the functions of the modules 301-305 in FIG. 3.
请参阅图5和图6,所述飞行器40还包括动力装置403,所述动力 装置403用于飞行器提供飞行动力,所述动力装置403与处理器401连接。所述动力装置403包括:驱动电机4031及电调4032,所述电调4032与驱动电机4031电连接,用于控制所述驱动电机4031。具体的,所述电调4032基于处理器401执行上述飞行器偏航角修正方法后得到的修正后的所述飞行器的偏航角,生成控制指令,通过控制指令控制该驱动电机4032。5 and FIG. 6, the aircraft 40 further includes a power unit 403. The power unit 403 is used to provide flight power for the aircraft. The power unit 403 is connected to the processor 401. The power device 403 includes a driving motor 4031 and an ESC 4032. The ESC 4032 is electrically connected to the driving motor 4031 and is used to control the driving motor 4031. Specifically, the ESC 4032 generates a control instruction based on the corrected yaw angle of the aircraft obtained after the processor 401 executes the aircraft yaw angle correction method, and controls the driving motor 4032 through the control instruction.
所述飞行器40可执行本发明实施例1所提供的飞行器偏航角修正方法,具备执行方法相应的功能模块和有益效果。未在飞行器实施例中详尽描述的技术细节,可参见本发明实施例1所提供的飞行器偏航角修正方法。The aircraft 40 can execute the aircraft yaw angle correction method provided in Embodiment 1 of the present invention, and has the corresponding functional modules and beneficial effects of the execution method. For technical details that are not described in detail in the embodiment of the aircraft, reference may be made to the aircraft yaw angle correction method provided in Embodiment 1 of the present invention.
本发明实施例提供了一种计算机程序产品,所述计算机程序产品包括存储在非易失性计算机可读存储介质上的计算机程序,所述计算机程序包括程序指令,当所述程序指令被计算机执行时,使所述计算机执行如上所述的飞行器偏航角修正方法。例如,执行以上描述的图1中的方法步骤101至步骤104,实现图3中的301-305模块的功能。An embodiment of the present invention provides a computer program product. The computer program product includes a computer program stored on a non-volatile computer-readable storage medium. The computer program includes program instructions. When the program instructions are executed by a computer, At that time, the computer is caused to execute the aircraft yaw angle correction method as described above. For example, steps 101 to 104 of the method in FIG. 1 described above are performed to implement the functions of the modules 301-305 in FIG. 3.
本发明实施例提供了一种非易失性计算机可读存储介质,所述计算机可读存储介质存储有计算机可执行指令,所述计算机可执行指令用于使计算机执行如上所述的飞行器偏航角修正方法。例如,执行以上描述的图1中的方法步骤101至步骤104,实现图3中的301-305模块的功能。An embodiment of the present invention provides a non-volatile computer-readable storage medium. The computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to cause a computer to execute the aircraft yaw as described above. Angle correction method. For example, steps 101 to 104 of the method in FIG. 1 described above are performed to implement the functions of the modules 301-305 in FIG. 3.
需要说明的是,以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的模块可以是或者也可以不是物理上分开的,作为模块显示的部件可以是或者也可以不是物理模块,即可以位于一个地方,或者也可以分布到多个网络模块上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。It should be noted that the device embodiments described above are only schematic, and the modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical Modules can be located in one place or distributed to multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the objective of the solution of this embodiment.
通过以上的实施例的描述,本领域普通技术人员可以清楚地了解到 各实施例可借助软件加通用硬件平台的方式来实现,当然也可以通过硬件。本领域普通技术人员可以理解实现所述实施例方法中的全部或部分流程是可以通过计算机程序指令相关的硬件来完成,所述的程序可存储于计算机可读取存储介质中,该程序在执行时,可包括如所述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)或随机存储记忆体(Random Access Memory,RAM)等。Through the description of the above embodiments, those skilled in the art can clearly understand that the embodiments can be implemented by means of software plus a general hardware platform, and of course, they can also be implemented by hardware. Those of ordinary skill in the art can understand that all or part of the processes in the method of the embodiment can be completed by computer program instructions related hardware. The program can be stored in a computer-readable storage medium, and the program is being executed. In this case, the process of the embodiment of each method may be included. The storage medium may be a magnetic disk, an optical disc, a read-only memory (Read-Only Memory, ROM), or a random access memory (Random, Access Memory, RAM).
最后应说明的是:以上实施例仅用以说明本发明的技术方案,而非对其限制;在本发明的思路下,以上实施例或者不同实施例中的技术特征之间也可以进行组合,步骤可以以任意顺序实现,并存在如上所述的本发明的不同方面的许多其它变化,为了简明,它们没有在细节中提供;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的范围。Finally, it should be noted that the above embodiments are only used to describe the technical solution of the present invention, but not limited thereto; under the idea of the present invention, the technical features in the above embodiments or different embodiments can also be combined, The steps can be implemented in any order, and there are many other variations of the different aspects of the invention as described above, for the sake of brevity, they are not provided in the details; although the invention has been described in detail with reference to the foregoing embodiments, it is common in the art The skilled person should understand that it can still modify the technical solutions described in the foregoing embodiments, or equivalently replace some of the technical features; and these modifications or replacements do not deviate from the essence of the corresponding technical solutions from the implementation of the present invention. Examples of technical solutions.

Claims (25)

  1. 一种飞行器偏航角修正方法,其特征在于,所述飞行器连接有云台,所述云台包括云台基座、与所述云台基座相连的云台电机以及与所述云台电机相连的拍摄装置,所述方法包括:An aircraft yaw angle correction method, characterized in that the aircraft is connected with a gimbal, the gimbal comprises a gimbal base, a gimbal motor connected to the gimbal base, and a gimbal motor A connected shooting device, the method includes:
    获取所述飞行器的初始姿态信息,所述飞行器的初始姿态信息包括飞行器的初始角速度;Acquiring initial attitude information of the aircraft, where the initial attitude information of the aircraft includes an initial angular velocity of the aircraft;
    根据所述飞行器的初始角速度,获取所述飞行器的偏航角速度,其中,所述飞行器的偏航角速度为第一偏航角速度;Obtaining the yaw angular velocity of the aircraft according to the initial angular velocity of the aircraft, wherein the yaw angular velocity of the aircraft is a first yaw angular velocity;
    获取所述云台基座的角速度;Obtaining the angular velocity of the gimbal base;
    根据所述云台基座的角速度,获取所述云台基座的偏航角速度,其中,所述云台基座的偏航角速度为第二偏航角速度;Obtaining the yaw angular velocity of the gimbal base according to the angular velocity of the gimbal base, wherein the yaw angular velocity of the gimbal base is a second yaw angular velocity;
    比较所述第一偏航角速度和所述第二偏航角速度;Comparing the first yaw angular velocity with the second yaw angular velocity;
    当所述第一偏航角速度与所述第二偏航角速度的差值大于或等于预设阈值时,根据所述第一偏航角速度与所述第二偏航角速度,对所述飞行器的偏航角进行修正,以得到修正后的所述飞行器的偏航角。When the difference between the first yaw angular velocity and the second yaw angular velocity is greater than or equal to a preset threshold, the yaw of the aircraft is based on the first yaw angular velocity and the second yaw angular velocity. The heading angle is corrected to obtain a corrected yaw angle of the aircraft.
  2. 根据权利要求1所述的方法,其特征在于,所述预设阈值由所述飞行器是否收到偏航操作指令所确定。The method according to claim 1, wherein the preset threshold is determined by whether the aircraft receives a yaw operation instruction.
  3. 根据权利要求2所述的方法,其特征在于,所述预设阈值由所述飞行器是否收到偏航操作指令所确定,包括:The method according to claim 2, wherein the preset threshold is determined by whether the aircraft receives a yaw operation instruction, comprising:
    当所述飞行器收到偏航操作指令时,所述预设阈值为第一预设阈值;When the aircraft receives a yaw operation instruction, the preset threshold is a first preset threshold;
    当所述飞行器未收到偏航操作指令时,所述预设阈值为第二预设阈值。When the aircraft does not receive a yaw operation instruction, the preset threshold is a second preset threshold.
  4. 根据权利要求1-3任一项所述的方法,其特征在于,所述当所 述第一偏航角速度与所述第二偏航角速度的差值大于或等于预设阈值时,所述根据所述第一偏航角速度与所述第二偏航角速度,对所述飞行器的偏航角进行修正,包括:The method according to any one of claims 1 to 3, wherein when a difference between the first yaw angular velocity and the second yaw angular velocity is greater than or equal to a preset threshold, the according to Correcting the yaw angle of the aircraft by the first yaw angular velocity and the second yaw angular velocity includes:
    根据所述第一偏航角速度与所述第二偏航角速度的差值,得到偏航角补偿值;Obtaining a yaw angle compensation value according to a difference between the first yaw angular velocity and the second yaw angular velocity;
    根据所述偏航角补偿值对所述飞行器的偏航角进行修正。Correct the yaw angle of the aircraft according to the yaw angle compensation value.
  5. 根据权利要求4所述的方法,其特征在于,所述偏航角补偿值Δψ p为: The method as claimed in claim 4, wherein said yaw angle Δψ p compensation value is:
    Figure PCTCN2018116719-appb-100001
    Figure PCTCN2018116719-appb-100001
    其中,t 0为获取所述飞行器的初始姿态信息所对应的时间,ΔT为对所述飞行器的偏航角进行修正的周期,
    Figure PCTCN2018116719-appb-100002
    为所述第一偏航角速度,
    Figure PCTCN2018116719-appb-100003
    为所述第二偏航角速度。
    Where t 0 is the time corresponding to the initial attitude information of the aircraft, and ΔT is the period for correcting the yaw angle of the aircraft,
    Figure PCTCN2018116719-appb-100002
    Is the first yaw angular velocity,
    Figure PCTCN2018116719-appb-100003
    Is the second yaw angular velocity.
  6. 根据权利要求5所述的方法,其特征在于,所述修正后的所述飞行器的偏航角ψ′ p为: The method according to claim 5, characterized in that the yaw angle ψ ' p of the aircraft after the correction is:
    ψ′ p=ψ p+Δψ p ψ ′ p = ψ p + Δψ p
    其中,ψ p为所述飞行器的偏航角,Δψ p为所述偏航角补偿值。 Wherein, ψ p is the yaw angle of the aircraft, and Δψ p is the yaw angle compensation value.
  7. 根据权利要求1所述的方法,其特征在于,所述获取所述云台基座的角速度,包括:The method according to claim 1, wherein the obtaining the angular velocity of the gimbal base comprises:
    获取所述云台电机的角度;Obtaining an angle of the gimbal motor;
    根据所述云台电机的角度,确定所述云台电机的角速度;Determining the angular velocity of the gimbal motor according to the angle of the gimbal motor;
    获取所述拍摄装置的角速度;Obtaining an angular velocity of the photographing device;
    根据所述云台电机的角速度、所述云台电机的角度及所述拍摄装置的角速度,确定所述云台基座的角速度。Determine the angular velocity of the pan-tilt base according to the angular velocity of the pan-tilt motor, the angle of the pan-tilt motor, and the angular velocity of the photographing device.
  8. 根据权利要求7所述的方法,其特征在于,根据所述云台电机的角度,确定所述云台电机的角速度,包括:The method according to claim 7, wherein determining the angular velocity of the gimbal motor according to the angle of the gimbal motor comprises:
    将所述云台电机的角度作为输入,通过二阶离散非线性跟踪微分器,计算得到所述云台电机的角速度。Taking the angle of the gimbal motor as an input, the angular velocity of the gimbal motor is calculated by a second-order discrete nonlinear tracking differentiator.
  9. 根据权利要求8所述的方法,其特征在于,所述二阶离散非线性跟踪微分器的表达式为:The method according to claim 8, wherein the expression of the second-order discrete nonlinear tracking differentiator is:
    r 1(k+1)=r 1(k)+T·r 2(k) r 1 (k + 1) = r 1 (k) + T · r 2 (k)
    r 2(k+1)=r 2(k)+T·fst(r 1(k)-Ρ(k),r 2(k),δ,h) r 2 (k + 1) = r 2 (k) + T · fst (r 1 (k) -P (k), r 2 (k), δ, h)
    其中,T为获取所述云台电机的角度的采样周期,Ρ(k)=[φ(k) θ(k) ψ(k)] T为第k时刻所述云台电机的角度,r 1(k)为通过所述二阶离散非线性跟踪微分器对Ρ(k)进行跟踪由Ρ(k)所确定的值,r 2(k)为Ρ(k)的导数,k+1为第k+1时刻所对应的值,fst()为最速控制函数,δ为位于最速控制函数的第三位的参数,h为位于最速控制函数的第四位的参数。 Among them, T is a sampling period for obtaining the angle of the gimbal motor, and P (k) = [φ (k) θ (k) ψ (k)] T is the angle of the gimbal motor at the k-th time, r 1 (k) is a value determined by P (k) for tracking P (k) by the second-order discrete nonlinear tracking differentiator, r 2 (k) is a derivative of P (k), and k + 1 is the first The value corresponding to time k + 1, fst () is the highest speed control function, δ is a parameter located at the third position of the highest speed control function, and h is a parameter located at the fourth position of the fastest control function.
  10. 根据权利要求7-9任一项所述的方法,其特征在于,所述根据所述云台电机的角速度、所述云台电机的角度及所述拍摄装置的角速度,确定所述云台基座的角速度,包括:The method according to any one of claims 7 to 9, wherein the determining of the gimbal base is based on an angular velocity of the gimbal motor, an angle of the gimbal motor, and an angular velocity of the photographing device. The angular velocity of the seat includes:
    根据所述云台电机的角度确定旋转变换矩阵,所述旋转变换矩阵为云台基座坐标系到云台电机坐标系的旋转矩阵;Determining a rotation transformation matrix according to the angle of the gimbal motor, the rotation transformation matrix being a rotation matrix of a gimbal base coordinate system to a gimbal motor coordinate system;
    根据所述云台电机的角速度、所述旋转变换矩阵及所述拍摄装置的角速度,确定所述云台基座的角速度。Determine the angular velocity of the pan-tilt base according to the angular velocity of the pan-tilt motor, the rotation transformation matrix, and the angular velocity of the photographing device.
  11. 根据权利要求10所述的方法,其特征在于,所述旋转变换矩阵的计算公式为:The method according to claim 10, wherein the calculation formula of the rotation transformation matrix is:
    Figure PCTCN2018116719-appb-100004
    Figure PCTCN2018116719-appb-100004
    其中,D为旋转变换矩阵;(φ,θ,ψ)为所述云台电机的角度,φ为所述云台电机的角度中的翻滚角,θ为所述云台电机的角度中的俯仰角,ψ为所述云台电机的角度中的偏航角。Where D is the rotation transformation matrix; (φ, θ, ψ) is the angle of the gimbal motor, φ is the roll angle in the angle of the gimbal motor, and θ is the pitch in the angle of the gimbal motor. Angle, ψ is the yaw angle among the angles of the gimbal motor.
  12. 根据权利要求11所述的方法,其特征在于,所述云台基座的角速度的计算公式为:The method according to claim 11, wherein the calculation formula of the angular velocity of the gimbal base is:
    Figure PCTCN2018116719-appb-100005
    Figure PCTCN2018116719-appb-100005
    其中,
    Figure PCTCN2018116719-appb-100006
    为所述云台基座的角速度,
    Figure PCTCN2018116719-appb-100007
    为所述拍摄装置的角速度,D为所述旋转变换矩阵,r 2为所述云台电机的角速度。
    among them,
    Figure PCTCN2018116719-appb-100006
    Is the angular velocity of the gimbal base,
    Figure PCTCN2018116719-appb-100007
    Is the angular velocity of the photographing device, D is the rotation transformation matrix, and r 2 is the angular velocity of the gimbal motor.
  13. 一种飞行器偏航角修正装置,其特征在于,所述飞行器连接有云台,所述云台包括云台基座、与所述云台基座相连的云台电机以及与所述云台电机相连的拍摄装置,所述装置包括:An aircraft yaw angle correction device, characterized in that the aircraft is connected with a gimbal, the gimbal includes a gimbal base, a gimbal motor connected to the gimbal base, and the gimbal motor A connected shooting device, the device comprising:
    初始姿态信息获取模块,用于获取所述飞行器的初始姿态信息,其中,所述飞行器的初始姿态信息包括飞行器的初始角速度;以及An initial attitude information acquisition module, configured to obtain initial attitude information of the aircraft, wherein the initial attitude information of the aircraft includes an initial angular velocity of the aircraft; and
    用于根据所述飞行器的初始角速度,获取所述飞行器的偏航角速度,其中所述飞行器的偏航角速度为第一偏航角速度;Configured to obtain a yaw angular velocity of the aircraft according to an initial angular velocity of the aircraft, wherein the yaw angular velocity of the aircraft is a first yaw angular velocity;
    基座角速度获取模块,用于获取所述云台基座的角速度和用于根据所述云台基座的角速度获取所述云台基座的偏航角速度,其中,所述云台基座的偏航角速度为第二偏航角速度;The base angular velocity obtaining module is configured to obtain the angular velocity of the gimbal base and to obtain the yaw angular velocity of the gimbal base according to the angular velocity of the gimbal base, wherein the The yaw angular velocity is the second yaw angular velocity;
    比较模块,用于比较所述第一偏航角速度与所述第二偏航角速度;A comparison module, configured to compare the first yaw angular velocity with the second yaw angular velocity;
    修正模块,用于当比较模块确定所述第一偏航角速度与所述第二偏航角速度的差值大于或等于预设阈值时,根据所述第一偏航角速度与所述第二偏航角速度,对所述飞行器的偏航角进行修正,以得到修正后的所述飞行器的偏航角。A correction module, configured to: when the comparison module determines that a difference between the first yaw angular velocity and the second yaw angular velocity is greater than or equal to a preset threshold, according to the first yaw angular velocity and the second yaw Angular velocity, correcting the yaw angle of the aircraft to obtain a corrected yaw angle of the aircraft.
  14. 根据权利要求13所述的装置,其特征在于,所述装置还包括预设阈值确定模块,用于根据所述飞行器是否收到偏航操作指令,确定所述预设阈值。The device according to claim 13, further comprising a preset threshold determining module, configured to determine the preset threshold according to whether the aircraft receives a yaw operation instruction.
  15. 根据权利要求14所述的装置,其特征在于,所述预设阈值确定模块具体用于:The apparatus according to claim 14, wherein the preset threshold determination module is specifically configured to:
    当所述飞行器收到偏航操作指令时,确定所述预设阈值为第一预设阈值;When the aircraft receives a yaw operation instruction, determine that the preset threshold is a first preset threshold;
    当所述飞行器未收到偏航操作指令时,确定所述预设阈值为第二预设阈值。When the aircraft does not receive a yaw operation instruction, it is determined that the preset threshold is a second preset threshold.
  16. 根据权利要求13-15任一项所述的装置,其特征在于,当所述第一偏航角速度与所述第二偏航角速度的差值大于或等于预设阈值时,所述修正模块根据所述第一偏航角速度与所述第二偏航角速度,对所述飞行器的偏航角进行修正,包括:The device according to any one of claims 13 to 15, wherein when a difference between the first yaw angular velocity and the second yaw angular velocity is greater than or equal to a preset threshold, the correction module is based on Correcting the yaw angle of the aircraft by the first yaw angular velocity and the second yaw angular velocity includes:
    根据所述第一偏航角速度与所述第二偏航角速度的差值,得到偏航角补偿值;Obtaining a yaw angle compensation value according to a difference between the first yaw angular velocity and the second yaw angular velocity;
    根据所述偏航角补偿值对所述飞行器的偏航角进行修正。Correct the yaw angle of the aircraft according to the yaw angle compensation value.
  17. 根据权利要求16所述的方法,其特征在于,所述偏航角补偿值Δψ p为: The method according to claim 16, wherein said yaw angle Δψ p compensation value is:
    Figure PCTCN2018116719-appb-100008
    Figure PCTCN2018116719-appb-100008
    其中,t 0为获取所述飞行器的初始姿态信息所对应的时间,ΔT为对所述飞行器的偏航角进行修正的周期,
    Figure PCTCN2018116719-appb-100009
    为所述第一偏航角速度,
    Figure PCTCN2018116719-appb-100010
    为所述第二偏航角速度。
    Where t 0 is the time corresponding to the initial attitude information of the aircraft, and ΔT is the period for correcting the yaw angle of the aircraft,
    Figure PCTCN2018116719-appb-100009
    Is the first yaw angular velocity,
    Figure PCTCN2018116719-appb-100010
    Is the second yaw angular velocity.
  18. 根据权利要求17所述的方法,其特征在于,所述修正后的所述飞行器的偏航角ψ′ p为: The method according to claim 17, wherein the corrected yaw angle ψ ' p of the aircraft is:
    ψ′ p=ψ p+Δψ p ψ ′ p = ψ p + Δψ p
    其中,ψ p为所述飞行器的偏航角,Δψ p为所述偏航角补偿值。 Wherein, ψ p is the yaw angle of the aircraft, and Δψ p is the yaw angle compensation value.
  19. 根据权利要求13所述的装置,其特征在于,The device according to claim 13, wherein:
    所述基座角速度获取模块具体用于:The base angular velocity obtaining module is specifically configured to:
    获取所述云台电机的角度;Obtaining an angle of the gimbal motor;
    根据所述云台电机的角度,确定所述云台电机的角速度;Determining the angular velocity of the gimbal motor according to the angle of the gimbal motor;
    获取所述拍摄装置的角速度;Obtaining an angular velocity of the photographing device;
    根据所述云台电机的角速度、所述云台电机的角度及所述拍摄装置的角速度,确定所述云台基座的角速度。Determine the angular velocity of the pan-tilt base according to the angular velocity of the pan-tilt motor, the angle of the pan-tilt motor, and the angular velocity of the photographing device.
  20. 根据权利要求19所述的装置,其特征在于,所述基座角速度获取模块根据所述云台电机的角度,确定所述云台电机的角速度,包括:The apparatus according to claim 19, wherein the base angular velocity obtaining module determines an angular velocity of the pan / tilt motor according to an angle of the pan / tilt motor, comprising:
    将所述云台电机的角度作为输入,通过二阶离散非线性跟踪微分器,计算得到所述云台电机的角速度。Taking the angle of the gimbal motor as an input, the angular velocity of the gimbal motor is calculated by a second-order discrete nonlinear tracking differentiator.
  21. 根据权利要求20所述的方法,其特征在于,所述二阶离散非线性跟踪微分器的表达式为:The method according to claim 20, wherein the expression of the second-order discrete nonlinear tracking differentiator is:
    r 1(k+1)=r 1(k)+T·r 2(k) r 1 (k + 1) = r 1 (k) + T · r 2 (k)
    r 2(k+1)=r 2(k)+T·fst(r 1(k)-Ρ(k),r 2(k),δ,h) r 2 (k + 1) = r 2 (k) + T · fst (r 1 (k) -P (k), r 2 (k), δ, h)
    其中,T为获取所述云台电机的角度的采样周期,Ρ(k)=[φ(k) θ(k) ψ(k)] T为第k时刻所述云台电机的角度,r 1(k)为通过所述二阶离散非线性跟踪微分器对Ρ(k)进行跟踪由Ρ(k)所确定的值,r 2(k)为Ρ(k)的导数,k+1为第k+1时刻所对应的值,fst()为最速控制函数,δ为位于最速控制函数的第三位的参数,h为位于最速控制函数的第四位的参数。 Among them, T is a sampling period for obtaining the angle of the gimbal motor, and P (k) = [φ (k) θ (k) ψ (k)] T is the angle of the gimbal motor at the k-th time, r 1 (k) is a value determined by P (k) for tracking P (k) by the second-order discrete nonlinear tracking differentiator, r 2 (k) is a derivative of P (k), and k + 1 is the first The value corresponding to time k + 1, fst () is the highest speed control function, δ is a parameter located at the third position of the highest speed control function, and h is a parameter located at the fourth position of the highest speed control function.
  22. 根据权利要求19-21中任一项所述的装置,其特征在于,所述基座角速度获取模块根据所述云台电机的角速度、所述云台电机的角度及所述拍摄装置的角速度,确定所述云台基座的角速度,包括:The device according to any one of claims 19 to 21, wherein the base angular velocity acquisition module is based on the angular velocity of the gimbal motor, the angle of the gimbal motor, and the angular velocity of the photographing device, Determining the angular velocity of the gimbal base includes:
    根据所述云台电机的角度确定旋转变换矩阵,所述旋转变换矩阵为云台基座坐标系到云台电机坐标系的旋转矩阵;Determining a rotation transformation matrix according to the angle of the gimbal motor, the rotation transformation matrix being a rotation matrix of a gimbal base coordinate system to a gimbal motor coordinate system;
    根据所述云台电机的角速度、所述旋转变换矩阵及所述拍摄装置的角速度,确定所述云台基座的角速度。Determine the angular velocity of the pan-tilt base according to the angular velocity of the pan-tilt motor, the rotation transformation matrix, and the angular velocity of the photographing device.
  23. 根据权利要求22所述的方法,其特征在于,所述旋转变换矩阵的计算公式为:The method according to claim 22, wherein the calculation formula of the rotation transformation matrix is:
    Figure PCTCN2018116719-appb-100011
    Figure PCTCN2018116719-appb-100011
    其中,D为旋转变换矩阵;(φ,θ,ψ)为所述云台电机的角度, φ为所述云台电机的角度中的翻滚角,θ为所述云台电机的角度中的俯仰角,ψ为所述云台电机的角度中的偏航角。 Where D is the rotation transformation matrix; (φ, θ, ψ) is the angle of the PTZ motor, φ is the roll angle in the angle of the PTZ motor, and θ is the pitch in the angle of the PTZ motor Angle, ψ is the yaw angle among the angles of the gimbal motor.
  24. 根据权利要求23所述的方法,其特征在于,所述云台基座的角速度的计算公式为:The method according to claim 23, wherein the calculation formula of the angular velocity of the gimbal base is:
    Figure PCTCN2018116719-appb-100012
    Figure PCTCN2018116719-appb-100012
    其中,
    Figure PCTCN2018116719-appb-100013
    为所述云台基座的角速度,
    Figure PCTCN2018116719-appb-100014
    为所述拍摄装置的角速度,D为所述旋转变换矩阵,r 2为所述云台电机的角速度。
    among them,
    Figure PCTCN2018116719-appb-100013
    Is the angular velocity of the gimbal base,
    Figure PCTCN2018116719-appb-100014
    Is the angular velocity of the photographing device, D is the rotation transformation matrix, and r 2 is the angular velocity of the gimbal motor.
  25. 一种飞行器,其特征在于,包括:An aircraft is characterized by comprising:
    机身;body;
    机臂,与所述机身相连;A machine arm connected to the fuselage;
    动力装置,设于所述机臂;A power unit provided on the machine arm;
    至少一个处理器,设于所述机身;以及,At least one processor provided in the fuselage; and
    与所述至少一个处理器通信连接的存储器;其中,A memory connected in communication with the at least one processor; wherein,
    所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行权利要求1-12中任一项所述的方法。The memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor, so that the at least one processor can execute any one of claims 1-12. Methods.
PCT/CN2018/116719 2018-05-23 2018-11-21 Correction method and device for yaw of aircraft, and aircraft WO2019223271A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810501521.3 2018-05-23
CN201810501521.3A CN108549399B (en) 2018-05-23 2018-05-23 Aircraft yaw angle correction method and device and aircraft

Publications (1)

Publication Number Publication Date
WO2019223271A1 true WO2019223271A1 (en) 2019-11-28

Family

ID=63495639

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/116719 WO2019223271A1 (en) 2018-05-23 2018-11-21 Correction method and device for yaw of aircraft, and aircraft

Country Status (2)

Country Link
CN (1) CN108549399B (en)
WO (1) WO2019223271A1 (en)

Families Citing this family (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108549399B (en) * 2018-05-23 2020-08-21 深圳市道通智能航空技术有限公司 Aircraft yaw angle correction method and device and aircraft
CN110770671A (en) * 2018-09-30 2020-02-07 深圳市大疆创新科技有限公司 Cloud platform, control method thereof and movable platform
CN111656298A (en) * 2018-09-30 2020-09-11 深圳市大疆创新科技有限公司 Control method of holder, movable platform and readable storage medium
WO2020087349A1 (en) * 2018-10-31 2020-05-07 深圳市道通智能航空技术有限公司 Unmanned aerial vehicle and gimbal control method therefor
CN109557484B (en) * 2018-11-14 2021-07-20 深圳增强现实技术有限公司 Magnetic field detection method and system and terminal
CN109725652B (en) * 2018-11-16 2022-04-01 广州昂宝电子有限公司 Method for resolving and controlling course of unmanned aerial vehicle holder
WO2020220169A1 (en) * 2019-04-28 2020-11-05 深圳市大疆创新科技有限公司 Gimbal control method and device, mobile platform, and storage medium
CN110304270B (en) * 2019-06-03 2021-01-05 宁波天擎航天科技有限公司 Omnibearing launch control method and device for carrier rocket and computer equipment
CN110260888B (en) * 2019-06-06 2021-10-15 航天科工仿真技术有限责任公司 A swing angle measurement method, device and system
CN110440805B (en) * 2019-08-09 2021-09-21 深圳市道通智能航空技术股份有限公司 Method and device for fusing yaw angles and aircraft
CN110377056B (en) * 2019-08-19 2022-09-20 深圳市道通智能航空技术股份有限公司 Unmanned aerial vehicle course angle initial value selection method and unmanned aerial vehicle
CN110487277B (en) 2019-08-21 2021-07-30 深圳市道通智能航空技术股份有限公司 Method and device for fusing yaw angles and aircraft
CN110377058B (en) * 2019-08-30 2021-11-09 深圳市道通智能航空技术股份有限公司 Aircraft yaw angle correction method and device and aircraft
CN114077719A (en) * 2020-08-13 2022-02-22 华为技术有限公司 Self-motion estimation method and related device
CN116197891B (en) * 2021-12-01 2024-04-02 北京小米机器人技术有限公司 Method, device, robot and storage medium for controlling robot motion
CN116630374B (en) * 2023-07-24 2023-09-19 贵州翰凯斯智能技术有限公司 Visual tracking method, device, storage medium and equipment for target object

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8352099B1 (en) * 2009-07-09 2013-01-08 The Boeing Company Varying engine thrust for directional control of an aircraft experiencing engine thrust asymmetry
CN105468014A (en) * 2016-01-18 2016-04-06 中国人民解放军国防科学技术大学 Single autopilot integrated aircraft system and two-dimensional holder control method thereof
CN105857595A (en) * 2016-04-23 2016-08-17 北京工业大学 Small-size aircraft system based on cradle head
CN206417213U (en) * 2016-12-30 2017-08-18 深圳市大疆灵眸科技有限公司 Head and unmanned vehicle
CN107074348A (en) * 2016-12-30 2017-08-18 深圳市大疆创新科技有限公司 Control method, device, equipment and unmanned vehicle
CN107656532A (en) * 2017-09-12 2018-02-02 歌尔科技有限公司 Reduce method, apparatus, system and the unmanned plane of unmanned plane yaw data drift
CN108549399A (en) * 2018-05-23 2018-09-18 深圳市道通智能航空技术有限公司 Vehicle yaw corner correcting method, device and aircraft

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5331558A (en) * 1991-11-19 1994-07-19 Raytheon Company Autopilot having an adaptive deadband feature
US20100102173A1 (en) * 2008-10-21 2010-04-29 Everett Michael L Light Aircraft Stabilization System
TW201643579A (en) * 2015-06-15 2016-12-16 鴻海精密工業股份有限公司 System and method for automatically driving UAV
CN105988474A (en) * 2015-07-06 2016-10-05 深圳市前海疆域智能科技股份有限公司 Deviation compensation method of aircraft and aircraft
CN106020220B (en) * 2016-05-24 2023-12-08 零度智控(北京)智能科技有限公司 Unmanned aerial vehicle, unmanned aerial vehicle flight control method and unmanned aerial vehicle flight control device
CN106249745B (en) * 2016-07-07 2019-02-19 苏州大学 The control method of four axis unmanned planes
EP3495907A4 (en) * 2016-08-03 2019-10-23 SZ DJI Osmo Technology Co., Ltd. Mount control method and system
CN106774390A (en) * 2016-12-09 2017-05-31 深圳市道通智能航空技术有限公司 A kind of aircraft course control method, device and electronic equipment
CN107077146B (en) * 2016-12-30 2020-06-05 深圳市大疆灵眸科技有限公司 Control method and control system for cradle head, cradle head and unmanned aerial vehicle
CN107831791B (en) * 2017-11-17 2020-12-15 深圳意动航空科技有限公司 Unmanned aerial vehicle control method and device, control equipment and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8352099B1 (en) * 2009-07-09 2013-01-08 The Boeing Company Varying engine thrust for directional control of an aircraft experiencing engine thrust asymmetry
CN105468014A (en) * 2016-01-18 2016-04-06 中国人民解放军国防科学技术大学 Single autopilot integrated aircraft system and two-dimensional holder control method thereof
CN105857595A (en) * 2016-04-23 2016-08-17 北京工业大学 Small-size aircraft system based on cradle head
CN206417213U (en) * 2016-12-30 2017-08-18 深圳市大疆灵眸科技有限公司 Head and unmanned vehicle
CN107074348A (en) * 2016-12-30 2017-08-18 深圳市大疆创新科技有限公司 Control method, device, equipment and unmanned vehicle
CN107656532A (en) * 2017-09-12 2018-02-02 歌尔科技有限公司 Reduce method, apparatus, system and the unmanned plane of unmanned plane yaw data drift
CN108549399A (en) * 2018-05-23 2018-09-18 深圳市道通智能航空技术有限公司 Vehicle yaw corner correcting method, device and aircraft

Also Published As

Publication number Publication date
CN108549399A (en) 2018-09-18
CN108549399B (en) 2020-08-21

Similar Documents

Publication Publication Date Title
WO2019223271A1 (en) Correction method and device for yaw of aircraft, and aircraft
WO2019223270A1 (en) Method and apparatus for estimating angle and angular velocity of electric motor of gimbal, and gimbal and aerial vehicle
CN109000612B (en) Equipment angle estimation method and device, camera shooting assembly and aircraft
WO2021027638A1 (en) Yaw angle fusion method and apparatus, and aerial vehicle
US20220137643A1 (en) Aircraft control method and aircraft
WO2018053877A1 (en) Control method, control device, and delivery system
WO2018120059A1 (en) Control method and system for cradle head, cradle head, and unmanned aerial vehicle
US20220238029A1 (en) Unmanned aerial vehicle return method and apparatus and unmanned aerial vehicle
CN110487277B (en) Method and device for fusing yaw angles and aircraft
WO2021037047A1 (en) Yaw angle correction method and apparatus for aircraft, and aircraft
CN109254587B (en) Small unmanned aerial vehicle capable of stably hovering under wireless charging condition and control method thereof
WO2020172800A1 (en) Patrol control method for movable platform, and movable platform
WO2019134154A1 (en) Control method for non-orthogonal tripod head, tripod head thereof, and storage device
WO2020042159A1 (en) Rotation control method and apparatus for gimbal, control device, and mobile platform
WO2021217371A1 (en) Control method and apparatus for movable platform
WO2019051640A1 (en) Control method for pan-tilt, controller, and pan-tilt
WO2019104583A1 (en) Maximum temperature point tracking method, device and drone
WO2020019260A1 (en) Calibration method for magnetic sensor, control terminal and movable platform
WO2021168819A1 (en) Return control method and device for unmanned aerial vehicle
CN111977006B (en) Initialization method and device for joint angle and aircraft
WO2020062089A1 (en) Magnetic sensor calibration method and movable platform
CN114604439A (en) Aerial photography video image stabilization system for flapping wing flying robot
WO2019205152A1 (en) Cradle head control method and cradle head
WO2021168821A1 (en) Mobile platform control method and device
WO2020168519A1 (en) Camera parameter adjusting method, camera device, and movable platform

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

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

Country of ref document: EP

Kind code of ref document: A1