Antique building component spraying drone control method and system based on mode switching
By implementing the control method of mode switching on the spraying drone, the problem of uneven coating and position during the spraying process is solved, the adaptability and flexibility are improved, and it is suitable for a variety of antique building components and environments.
Patent Information
- Application Number
- CN202410170250.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-02-06
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2044-02-06
AI Technical Summary
During the spraying process of antique buildings by spraying drones, the position and attitude adjustment speed and accuracy depend on the operator, resulting in uneven coating and spraying beyond the expected position, and the existing automatic control mode cannot adapt to antique building components with different structures. and various spraying environments.
Provides a mode-switching-based drone control method for spraying antique building components, which can flexibly switch between automatic control mode and manual control mode. By obtaining initial attitude data and target attitude, setting a preset time, the four-rotor drone can be realized Flexible human-machine control is suitable for antique building components and spray painting environments of various institutions.
It improves the adaptability and flexibility of the drone for spraying antique building components, ensures uniformity of spraying, solves the problem of coating thickness and location, and is suitable for a variety of environments.
Smart Images

Figure CN118012099B
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of spraying antique building components, and in particular relates to a control method and system of an antique building component spraying drone based on mode switching. Background Art
[0002] The four-rotor drone for spraying antique building components has received widespread attention in the field of antique building spraying because of its ability to achieve large-area coverage, precise positioning, flexible operation, and ability to adapt to a variety of environments.
[0003] The inventors have found that in actual applications, most spray drones are controlled by operators to manually adjust the position of the drone to achieve the purpose of building spraying. Since the position and attitude adjustment speed and accuracy of the drone are completely dependent on the operator's push and pull of the remote control, the drone may move too fast or too slow during the spraying process, resulting in excessively thick or thin coatings, as well as spraying beyond the expected position. However, antique building components have complex structures and complex locations. Directly setting the four-rotor spray drone to automatic control mode cannot be well applied to multiple antique building components with different structures, nor can it be applied to all spraying environments, resulting in poor spraying effects on some locations or antique building components. Summary of the invention
[0004] In order to solve the above problems, the present invention proposes a control method and system for an antique building component spraying drone based on mode switching. The present invention can flexibly switch between automatic control mode and manual control mode, and can be applicable to antique building components and spraying environments of various structures. On the basis of ensuring the uniformity of spraying, the adaptability and flexibility of the antique building component spraying drone are improved.
[0005] In order to achieve the above object, the present invention is implemented through the following technical solutions:
[0006] In a first aspect, the present invention provides a method for controlling an antique building component spraying drone based on mode switching, comprising:
[0007] Obtain the initial posture data of the drone spraying antique building components;
[0008] Determine the control mode. If it is a manual control mode, the sampling point at each moment is used as the expected posture according to the remote control sampling time; if it is an automatic control mode, the initial posture and target posture are used as the nodes for starting and ending control respectively, and the preset time for completing the control task is set;
[0009] In manual control mode, the sampling points at each moment are used as the expected posture to control the antique building component spraying drone; in automatic control mode, the initial posture is used as the basis, and the target posture and preset time are used as the control targets to control the antique building component spraying drone.
[0010] Furthermore, the attitude data includes a roll angle, a pitch angle and a yaw angle.
[0011] Furthermore, in the manual control mode, a real-time quadrotor control torque is obtained according to the target attitude, and the power of four motors is calculated by the control torque to perform manual control of the quadrotor attitude.
[0012] Furthermore, the control torque in the manual control mode is:
[0013]
[0014] Where, τ is the control torque; is the control parameter; δ2=Ω-α1, Ω is the angular velocity variable; α1 is the virtual control signal; J is the inertia matrix; S(Ω) is the simplified algorithm derivation; Θ is a vector, including the roll angle, pitch angle and yaw angle of the quadrotor, is the derivative of Θ; R(Θ) is the rotation matrix; δ1=Θ-Θ d , Θ d For the expected attitude.
[0015] Furthermore, in the automatic control mode, a real-time quadrotor control torque is obtained according to the initial posture, target posture and preset time, and the power of four motors is obtained through the control torque to achieve the purpose of moving from the initial posture to the target posture within the preset time.
[0016] Furthermore, the control torque in the automatic control mode is:
[0017]
[0018] Among them, among them, is the control torque; J is the inertia matrix; μ is the preset time function; R(Θ) is the rotation matrix; δ2=Ω-α1, Ω is the angular velocity variable; is the control parameter, L2=1+m>0, m is the control parameter; is the preset time control parameter; S(Ω) is the simplified algorithm derivation; is the control parameter, L2=1+m>0, m is the control parameter; Θ is a vector, including the roll angle, pitch angle and yaw angle of the quadrotor; T m is the control parameter; T is the preset time; t is the time; Λ is the intermediate variable.
[0019] Furthermore, the attitude of the quadrotor drone is described using Euler angles.
[0020] In a second aspect, the present invention also provides an antique building component spraying drone control system based on mode switching, comprising:
[0021] The data acquisition module is configured to: obtain initial posture data of the antique building component spraying drone;
[0022] The mode switching module is configured to: determine the control mode, if it is a manual control mode, then use the sampling point at each moment as the expected posture according to the remote control sampling moment; if it is an automatic control mode, then use the initial posture and the target posture as the nodes for starting and ending control respectively, and set a preset time for completing the control task;
[0023] The control module is configured as follows: in manual control mode, the sampling point at each moment is used as the expected posture to control the antique building component spraying drone; in automatic control mode, the initial posture is used as the basis, and the target posture and preset time are used as the control targets to control the antique building component spraying drone.
[0024] In a third aspect, the present invention further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the method for controlling an antique architectural component spraying drone based on mode switching as described in the first aspect.
[0025] In a fourth aspect, the present invention further provides an electronic device comprising a memory, a processor, and a computer program stored in the memory and capable of running on the processor, wherein when the processor executes the program, the steps of the method for controlling an antique architectural component spraying drone based on mode switching described in the first aspect are implemented.
[0026] Compared with the prior art, the present invention has the following beneficial effects:
[0027] The control strategy of the present invention sets two modes, manual control mode and automatic control mode, and can flexibly switch between the two modes; if it is manual control mode, the sampling point at each moment is used as the expected posture according to the sampling time of the remote control; if it is automatic control mode, the initial posture and target posture are used as the nodes for starting control and ending control respectively, and the preset time for completing the control task is set; in the manual control mode, the sampling point at each moment is used as the expected posture to control the antique building component spraying drone; in the automatic control mode, the initial posture is used as the basis, and the target posture and the preset time are used as the control targets to control the antique building component spraying drone; the present invention can be applied to antique building components and spraying environments of various mechanisms, and on the basis of ensuring the uniformity of spraying in the automatic control mode, the adaptability and flexibility of the antique building component spraying drone are improved through flexible switching between the two modes. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] The drawings in the specification that constitute a part of this embodiment are used to provide a further understanding of this embodiment. The schematic embodiments of this embodiment and their descriptions are used to explain this embodiment and do not constitute improper limitations on this embodiment.
[0029] Figure 1 is a flow chart of the method of embodiment 1 of the present invention;
[0030] Figure 2 This is a system structure diagram of Example 1 of the present invention. DETAILED DESCRIPTION
[0031] The present invention will be further described below in conjunction with the accompanying drawings and embodiments.
[0032] It should be noted that the following detailed descriptions are exemplary and are intended to provide further explanation of the present application. Unless otherwise specified, all technical and scientific terms used herein have the same meanings as those commonly understood by those skilled in the art to which the present application belongs.
[0033] Embodiment 1:
[0034] With the rapid development of society and the acceleration of urbanization, some traditional buildings with historical and cultural value have been destroyed or disappeared, which has caused people's concerns and reflections. On the other hand, as people's understanding and attention to traditional culture and historical heritage continue to increase, the awareness of protecting and inheriting historical culture has gradually increased. Against this background, antique buildings have gradually been widely recognized and promoted as a way to protect and inherit historical culture. At present, antique buildings, such as temples and attics, are mainly made of wood. It is difficult to transport and modify during the construction process. In the process of spraying dyes on antique buildings, there are problems such as uneven spraying, cracks, water droplets and oil particles. In addition, the maintenance cost after construction is high, which is not conducive to the inheritance and development of culture. New materials and new methods are urgently needed to promote the construction and development of antique buildings.
[0035] Four-rotor spraying drones for antique building components have emerged as the times require. They have received widespread attention in the field of antique building spraying due to their large-area coverage, precise positioning, flexible operation, and adaptability to a variety of environments. However, in actual applications, most spraying drones are controlled by operators to manually adjust the position of the drone to achieve the purpose of building spraying. Since the position and attitude adjustment speed and accuracy of the drone are completely dependent on the operator's push and pull amplitude of the remote control, it is easy for the drone to move too fast or too slow during the spraying process, resulting in problems such as over-thick or over-thin coating and spraying beyond the expected position. Although it improves the work efficiency and safety of antique building spraying and reduces labor costs, the actual application effect is still far from expectations.
[0036] In response to the above problems, Figure 1 As shown, this embodiment provides a method for controlling an antique building component spraying drone based on mode switching, including:
[0037] Obtain the initial posture data of the drone spraying antique building components;
[0038] Determine the control mode. If it is a manual control mode, the sampling point at each moment is used as the expected posture according to the remote control sampling time; if it is an automatic control mode, the initial posture and target posture are used as the nodes for starting and ending control respectively, and the preset time for completing the control task is set;
[0039] In manual control mode, the sampling points at each moment are used as the expected posture to control the antique building component spraying drone; in automatic control mode, the initial posture is used as the basis, and the target posture and preset time are used as the control targets to control the antique building component spraying drone.
[0040] The method in this embodiment can be applied to antique building components and spraying environments of various institutions. On the basis of ensuring the uniformity of spraying in the automatic control mode, the adaptability and flexibility of the antique building component spraying drone are improved through flexible switching between the two modes. Figure 2 As shown, this embodiment also provides a control system, including a control module, and a data acquisition module and a user terminal connected to the control module, wherein the control module includes a conventional posture control module and a preset time posture control module. The system and method in this embodiment mainly include:
[0041] The control system includes a data acquisition module, the control module connected to the data acquisition module, and a user terminal connected to the control module, wherein the control module includes a preset time posture control module and a regular posture control module.
[0042] The data acquisition module is used to collect the position data and attitude data of the antique building component spraying drone through sensors, and the attitude data includes the roll angle The pitch angle θ and yaw angle ψ are collected, and the collected data are packaged and sent to the control module according to the collection time.
[0043] The user terminal is used to receive the control mode, expected position and expected posture set by the operator, and send the expected position and expected posture to the control module. If the control mode is the manual control mode of the operator, the sampling point at each moment is sent to the control module as the expected posture according to the sampling time of the remote controller; if the control mode is the preset time automatic control mode, the user selects to start control at the initial posture, adjusts the quadcopter to the target posture through the remote controller, selects to end control, and sets the preset time for task completion, then the remote controller sends the initial posture, target posture (expected posture) and preset time to the control module.
[0044] The control module is used to receive the drone position data and attitude data sent by the data acquisition module, and at the same time receive the expected position, attitude information and control mode type sent by the user terminal. The traditional PID control algorithm is used to obtain the power of the four motors of the quadrotor according to the real-time position and expected position data of the drone. In addition, if the control mode is automatic control at a preset time, the drone attitude data and the expected attitude data are input into the preset time attitude control module, otherwise the attitude data and the expected attitude data are input into the manual control mode, and the torque generated by the propellers on the body shaft required for the attitude adjustment of the three quadrotors is obtained according to the control algorithm of the corresponding module, and the power of the four motors is obtained through torque calculation to achieve the effect of quadrotor attitude control.
[0045] The preset time attitude control algorithm and the conventional attitude control algorithm designed for the preset time attitude control module and the conventional attitude control module are both based on the mathematical model of the quadrotor attitude system, as shown below:
[0046]
[0047] Among them, the attitude of the quadrotor drone is described by Euler angles, expressed as vector θ and ψ represent the roll angle, pitch angle and yaw angle of the quadrotor, respectively, and satisfy The angular velocity variable is expressed as Ω = [p, q, , r] T , p, q and r are the angular velocities of the quadrotor rotating around the three coordinate axes of the body coordinate system; R(Θ) is the rotation matrix for transforming the body coordinate system to the earth coordinate system; J is the inertia matrix, which is bounded and satisfies J = J T =diag{J1, J2, J3}, the values of J1, J2 and J3 are obtained according to the force analysis of the actual designed spraying UAV; τ = [τ1, τ2, τ3] T is the control torque and the output of the quadrotor attitude control algorithm. The power of the four motors can be calculated based on the control torque τ. In addition, the design S(Ω) is a simplified algorithm derivation and has no practical significance. The rotation matrix R(Θ) and the simplified algorithm derivation S(Ω) are:
[0048]
[0049]
[0050] The manual control module is a conventional posture control module, and the automatic control module is a preset time posture control module.
[0051] The conventional attitude control module designs a conventional attitude control algorithm for a quadrotor spraying UAV, receives the real-time target attitude sent by the user terminal, and simultaneously receives the attitude data sent by the data acquisition module in real time, outputs the quadrotor control torque in real time, and calculates the power of the four motors through the control torque, thereby achieving the purpose of manually adjusting the quadrotor attitude by the user.
[0052] The preset time attitude control module designs a preset time control algorithm for the quad-rotor spraying UAV, receives the initial attitude, target attitude and preset time sent by the user terminal, and simultaneously receives the attitude data sent by the data acquisition module in real time, outputs the quad-rotor control torque in real time, and calculates the power of the four motors through the control torque, so as to achieve the purpose of smoothly adjusting from the initial attitude to the target attitude within the user preset time.
[0053] In this embodiment, the sensors provided in the data acquisition module include a gyroscope, an accelerometer, a magnetometer, and the like.
[0054] In this embodiment, in the manual control mode, the quadrotor attitude angle error z1=δ1 and the angular velocity error z2=δ2 are defined, where δ1=θ-θ d ,δ2=Ω-α1,Θ d is the desired attitude, Θ is a vector including the roll angle, pitch angle and yaw angle of the quadrotor; Ω is the angular velocity variable, and α1 is the designed virtual control signal;
[0055] The control parameters in the algorithm design process under the manual control mode can be obtained through simulation and actual spraying UAV test. The algorithm design process includes:
[0056] S1. First step:
[0057] S1.1. Select the Lyapunov function as:
[0058]
[0059] Among them, V1 is the name of the Lyapunov function constructed by the algorithm, which is the first Lyapunov function; z1 is the attitude angle error of the quadrotor.
[0060] S1.2, take the derivative of V1 and we get:
[0061]
[0062] Among them, R(Θ) is the rotation matrix; α1 is the virtual control signal.
[0063] S1.3, derive the virtual control signal α1:
[0064]
[0065] in, is the control parameter and is a positive constant.
[0066] S1.4, bring step S1.3 back to step S1.2 to obtain:
[0067]
[0068] S2, Step 2:
[0069] S2.1. Derivation of the virtual control signal α1 in the first step S1:
[0070]
[0071] S2.2. Select the Lyapunov function as:
[0072]
[0073] S2.3, take the derivative of V2:
[0074]
[0075] S2.4, the control torque can be calculated:
[0076]
[0077] in, is the control parameter, which is a positive constant; V2 is the name of the Lyapunov function constructed by the algorithm, which is the second Lyapunov function.
[0078] S2.5, bring the control torque back to step S2.3 to obtain:
[0079]
[0080] In this embodiment, the control algorithm design principle in the automatic control mode is as follows:
[0081] Optionally, define a preset time function Among them, T m As the control parameter is a positive constant, T is the preset time; definition and is the preset time control parameter, which is a positive constant; defines the attitude angle error of the quadrotor Angular velocity error where δ1=θ-θ d ,δ2=Ω-α1,Θ d is the desired posture, α1 is the virtual control signal designed in the first step of the algorithm (the design process is given in detail below), and L1=2+m, L2=1+m, where m is a control parameter greater than 0.
[0082] The control parameters in the algorithm design process under the automatic control mode can be obtained through simulation and actual spraying drone testing. The algorithm design process includes:
[0083] S3, first step:
[0084] S3.1. Select the Lyapunov function as:
[0085]
[0086] S3.2, take the derivative of V1 and we get:
[0087]
[0088] S3.3, According to Young's inequality, we can get:
[0089]
[0090] S3.4. Bringing step S3.3 back to step S3.2 yields:
[0091]
[0092] S3.5, because L1=2+m>0, μ>0 and Be able to get and
[0093] S3.6. Step S3.6 brings back step S3.5 to obtain:
[0094]
[0095] S3.7, the virtual control signal α1 can be derived as:
[0096] α1=-k1μR -1 (Θ)Θ
[0097] in is the control parameter and is a positive constant.
[0098] S3.8, the control signal α1 is brought into step S3.7 to obtain:
[0099]
[0100] S4, Step 2:
[0101] S4.1. Select the Lyapunov function as:
[0102]
[0103] S4.2, according to the first step S3, the virtual control signal α1 is derived to obtain:
[0104]
[0105] S4.3, take the derivative of V2 and get:
[0106]
[0107] S4.4, because L2=1+m>0, μ>0 and Be able to get and
[0108] S4.5. Bringing step S4.4 back to step S4.3 can deduce:
[0109]
[0110] S4.6, the final algorithm output control torque can be obtained:
[0111]
[0112] in is the control parameter, which is a positive constant; Λ is an intermediate variable, which is optional:
[0113]
[0114] S4.7, the control torque is brought into step S4.5 to obtain:
[0115]
[0116] Embodiment 2:
[0117] This embodiment provides a control system for spraying antique building components with a drone based on mode switching, including:
[0118] The data acquisition module is configured to: obtain initial posture data of the antique building component spraying drone;
[0119] The mode switching module is configured to: determine the control mode, if it is a manual control mode, then use the sampling point at each moment as the expected posture according to the remote control sampling moment; if it is an automatic control mode, then use the initial posture and the target posture as the nodes for starting and ending control respectively, and set a preset time for completing the control task;
[0120] The control module is configured as follows: in manual control mode, the sampling point at each moment is used as the expected posture to control the antique building component spraying drone; in automatic control mode, the initial posture is used as the basis, and the target posture and preset time are used as the control targets to control the antique building component spraying drone.
[0121] The working method of the system is the same as the control method of the antique building component spraying drone based on mode switching in Example 1, and will not be repeated here.
[0122] Embodiment 3:
[0123] This embodiment provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the steps of the method for controlling an antique building component spraying drone based on mode switching described in Example 1 are implemented.
[0124] Embodiment 4:
[0125] This embodiment provides an electronic device, including a memory, a processor, and a computer program stored in the memory and capable of running on the processor. When the processor executes the program, the steps of the method for controlling an antique building component spraying drone based on mode switching described in Example 1 are implemented.
[0126] The above description is only a preferred embodiment of the present embodiment and is not intended to limit the present embodiment. For those skilled in the art, the present embodiment may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present embodiment shall be included in the protection scope of the present embodiment.
Claims
1. A control method for spraying antique building components by a drone based on mode switching, characterized in that: include: Obtain the initial posture data of the drone spraying antique building components; Determine the control mode. If it is a manual control mode, the sampling point at each moment is used as the expected posture according to the remote control sampling time; if it is an automatic control mode, the initial posture and target posture are used as the nodes for starting and ending control respectively, and the preset time for completing the control task is set; In manual control mode, the sampling points at each moment are used as the desired posture to control the antique building component spraying drone; in automatic control mode, the initial posture is used as the basis, and the target posture and preset time are used as the control targets to control the antique building component spraying drone; In the manual control mode, the real-time quadrotor control torque is obtained according to the target attitude, and the power of the four motors is calculated by the control torque to perform manual control of the quadrotor attitude; The control torque in the manual control mode is: Where, τ is the control torque; is the control parameter; δ2 = Ω-α1, Ω is the angular velocity variable expressed as Ω = [p, q, r] T , p, q and r are the angular velocities of the quadrotor rotating around the three coordinate axes of the body coordinate system; α1 is the virtual control signal; J is the inertia matrix; S(Ω) is the simplified algorithm derivation, Θ is a vector, including the roll angle, pitch angle and yaw angle of the quadrotor, is the derivative of Θ; R(Θ) is the rotation matrix; δ1=Θ-Θ d , Θ d For the expected attitude.
2. The control method of the antique building component spraying drone based on mode switching as claimed in claim 1 is characterized in that: The attitude data includes a roll angle, a pitch angle, and a yaw angle.
3. The control method of the antique building component spraying drone based on mode switching as claimed in claim 1 is characterized in that: In the automatic control mode, the real-time quadrotor control torque is obtained according to the initial posture, target posture and preset time, and the power of the four motors is obtained through the control torque to achieve the purpose of changing from the initial posture to the target posture within the preset time.
4. The control method of the antique building component spraying drone based on mode switching as claimed in claim 3 is characterized in that: The control torque in the automatic control mode is: Among them, τ is the control torque; J is the inertia matrix; μ is the preset time function; R(Θ) is the rotation matrix; δ2=Ω-α1, Ω is the angular velocity variable, α1 is the virtual control signal; is the control parameter, L2=1+m>0, m is the control parameter, is the preset time control parameter; S(Ω) is the simplified algorithm derivation; is the control parameter, L1=1+m>0, m is the control parameter; Θ is a vector, including the roll angle, pitch angle and yaw angle of the quadrotor; T m is the control parameter; T is the preset time; t is the time; Λ is the intermediate variable.
5. The control method of the antique building component spraying drone based on mode switching as claimed in claim 1 is characterized in that: The attitude of a quadrotor drone is described by Euler angles.
6. The control system of the drone for spraying antique building components based on mode switching is characterized by: include: The data acquisition module is configured to: obtain initial posture data of the antique building component spraying drone; The mode switching module is configured to: determine the control mode, if it is a manual control mode, then use the sampling point at each moment as the expected posture according to the remote control sampling moment; if it is an automatic control mode, then use the initial posture and the target posture as the nodes for starting and ending control respectively, and set a preset time for completing the control task; The control module is configured to: in manual control mode, control the antique building component spraying drone with the sampling points at each moment as the expected posture; in automatic control mode, control the antique building component spraying drone with the initial posture as the basis and the target posture and preset time as the control target; In the manual control mode, the real-time quadrotor control torque is obtained according to the target attitude, and the power of the four motors is calculated by the control torque to perform manual control of the quadrotor attitude; The control torque in the manual control mode is: Where, τ is the control torque; is the control parameter; δ2 = Ω-α1, Ω is the angular velocity variable expressed as Ω = [p, q, r] T , p, q and r are the angular velocities of the quadrotor rotating around the three coordinate axes of the body coordinate system; α1 is the virtual control signal; J is the inertia matrix; S(Ω) is the simplified algorithm derivation, Θ is a vector, including the roll angle, pitch angle and yaw angle of the quadrotor, is the derivative of Θ; R(Θ) is the rotation matrix; δ1=Θ-Θ d , Θ d For the expected attitude.
7. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps of the method for controlling an antique building component spraying drone based on mode switching as described in any one of claims 1 to 5 are implemented.
8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and capable of running on the processor, characterized in that: When the processor executes the program, the steps of the antique building component spraying drone control method based on mode switching as described in any one of claims 1 to 5 are implemented.
Citation Information
Patent Citations
Aircraft attitude control method
CN110658841A
Aerial spraying system based on unmanned aerial vehicle flying platform
CN111287411A
Aerial operation robot
CN112874769A
Electric power facility coating spraying device based on unmanned aerial vehicle and control method
CN113911356A
Spraying control system with airborne mechanical arm unmanned aerial vehicle
CN214296469U
