Air defense weapon remote control method based on Qt development platform
Through the remote control method of air defense weapons based on the Qt development platform, the UDP communication protocol is used to receive and parse air defense weapon data to realize long-range decision-making and control, solving the problem of operators prolonging decision-making time in complex battlefield situations, and improving the operation efficiency and decision-making reliability of air defense weapons.
Patent Information
- Application Number
- CN202510094481.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-21
- Publication Date
- 2025-06-10
AI Technical Summary
Existing air defense weapon operators find it difficult to make decisions quickly in complex battlefield situations, resulting in an extended decision-making time and affecting air defense capabilities.
The remote control method of air defense weapons based on the Qt development platform is adopted to receive and analyze data packets of air defense weapons through the UDP communication protocol, display and control data, and realize remote decision-making and control.
Through remote control methods, the operator's decision-making time is shortened, the operation efficiency and decision-making reliability of air defense weapons are improved, and the terminal air defense and anti-missile capabilities are enhanced.
Smart Images

Figure CN120128615A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of remote control, and particularly relates to a method for remotely controlling an air defense weapon based on a Qt development platform. Background Art
[0002] In modern warfare, the types and performances of air raid targets are diverse. Therefore, relying solely on a certain weapon cannot fully achieve effective air defense. It is necessary to comprehensively use various air defense weapons to build a complete air defense system with long, medium, and short ranges, and high, medium, and low altitudes for layer-by-layer interception to achieve effective air defense purposes. Multifunctional artillery has the characteristics of simple structure, long range, and high cost-effectiveness. If a search system, a tracking system, and a fire control system are added to existing artillery, a new weapon and equipment can be added to the air defense and antimissile system, greatly improving and enhancing the ability of terminal air defense and antimissile. Artillery air defense can form a complete terminal air defense and antimissile firepower network together with small-caliber self-propelled anti-aircraft guns, missile-gun combined systems, and short-range terminal air defense missile weapons, further improving the current short-range terminal air defense and antimissile system and enhancing the terminal air defense and antimissile ability. Currently, most air defense weapons are manually controlled by operators through operation buttons. In the face of complex battlefield situations and wartime pressure, operators may not be able to make decisions quickly. The method for remotely controlling an air defense weapon based on a Qt development platform can send various data of the air defense weapon operation platform to the rear command system, and after data analysis, the commander can issue operation instructions to the air defense weapon operation platform through remote communication. This is of great significance for improving the reliability of decision-making and reducing the decision-making time. Summary of the Invention
[0003] The purpose of the present invention is to provide a method for remotely controlling an air defense weapon based on a Qt development platform, which sends wartime data to the command center and receives information from the command center, so as to perform remote decision-making and control, shortening the decision-making time of the operator.
[0004] The technical solution for realizing the purpose of the present invention is as follows:
[0005] A method for remotely controlling an air defense weapon on a Qt development platform includes:
[0006] Step 1, receiving a data packet sent by an air defense weapon by using the UDP communication protocol in QT, and determining to send the data packet to the corresponding data parsing algorithm module for further processing according to the data content of the first two bytes and the last two bytes of the data packet;
[0007] Step 2: According to the result determined in Step 1, parse the data packets sent by the air defense weapon. The parsing results include the status of the integrated management computer, control unit status, navigation status, radar status, optoelectronic status, follow-up status, power supply status, shell status, azimuth angle of the target detected by the radar, elevation angle of the target detected by the radar, distance of the target detected by the radar, speed of the target detected by the radar, azimuth of the firing data, elevation of the firing data, azimuth angle of the follow-up device, elevation angle of the follow-up device, azimuth angle of the radar device, elevation angle of the radar device, azimuth angle of the optoelectronic device, elevation angle of the optoelectronic device, flight time of the shell, air temperature, longitude of the command vehicle, latitude of the command vehicle, longitude of the launcher vehicle, and latitude of the launcher vehicle;
[0008] Step 3: Use the QLable component and QPushButton component to complete the display of text data and image data. And the QPushButton component is bound with button click and double-click events through the slot function connect to trigger the corresponding events, so that the corresponding functions can be called;
[0009] Step 4: Use the working state control algorithm to change the working state of the air defense weapon operation platform, use the power supply control algorithm to control the working state of the power supply, use the optoelectronic control algorithm to change the working state of the optoelectronic device, use the radar control algorithm to change the working state of the radar device, and use the follow-up control algorithm to change the working state of the follow-up device.
[0010] Step 5: Use the threat assessment algorithm to evaluate the threat level of the airborne targets detected by the radar through the target speed, target azimuth, target elevation, and target distance indicators, and number the airborne targets according to the threat level from high to low;
[0011] Step 6: When the airborne target enters the optoelectronic detection range, the radar device guides the target to the optoelectronic device and uses the optoelectronic device to track the target;
[0012] Step 7: Use the projectile mode control algorithm to select the strike mode and strike the airborne target.
[0013] Compared with the prior art, the remarkable advantages of the present invention are:
[0014] (1) The present invention uses QT as the implementation means, which has good cross-platform support compared with other traditional implementation means, and has higher performance and lower resource consumption;
[0015] (2) The present invention has stronger versatility compared with other remote control methods;
[0016] (3) The present invention combines UDP communication with the signal-slot mechanism, which can effectively send and receive data. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 It is a flowchart of a remote control method for an air defense weapon based on the Qt development platform.
[0018] Figure 2 It is the data reception flowchart in the present invention.
[0019] Figure 3 It is the data parsing flowchart in the present invention.
[0020] Figure 4 It is the data display flowchart in the present invention.
[0021] Figure 5 It is the control algorithm structure diagram in the present invention.
[0022] Figure 6 It is the threat degree calculation flowchart in the present invention.
[0023] Figure 7 It is the strike method selection flowchart in the present invention. Specific embodiments
[0024] The following describes the specific embodiments of the present invention with reference to the accompanying drawings so that those skilled in the art can better understand the present invention. It should be particularly noted that in the following description, when the detailed descriptions of known functions and designs may dilute the main content of the present invention, these descriptions will be ignored here.
[0025] Refer to Figures 1 to 7 , and elaborate on the specific implementation scheme of the present invention. A remote control method for an air defense weapon based on the Qt development platform includes the following steps:
[0026] Step 1, the present invention first needs to add the statement QT += core gui network in the project file to enable the UDP communication function of QT, and then use the udpSocket function to bind the communication port and IP address of the air defense weapon system, instantiate a UDP object, and then start listening to the port. After receiving data, the readyRead signal slot mechanism is triggered, and the readDatagram function is used to read the buffer to retrieve the data. The data type of the data packet is an unsigned char type variable-length array. Determine according to the data content of the first two bytes and the last two bytes of the data packet and send the data packet to the corresponding data parsing algorithm module for further processing.
[0027] Step 2: According to the result determined in Step 1, parse the data packet sent by the air defense weapon. The parsing results include the status of the integrated management computer, control unit, navigation, radar, optoelectronics, follow-up, power supply, shell, azimuth angle of the target detected by the radar, elevation angle of the target detected by the radar, distance of the target detected by the radar, speed of the target detected by the radar, azimuth of the firing data, elevation of the firing data, azimuth angle of the follow-up device, elevation angle of the follow-up device, azimuth angle of the radar device, elevation angle of the radar device, azimuth angle of the optoelectronic device, elevation angle of the optoelectronic device, flight time of the shell, air temperature, longitude of the command vehicle, latitude of the command vehicle, longitude of the launcher vehicle, and latitude of the launcher vehicle. Specifically, it includes the following steps:
[0028] (1) Enter the main equipment status display module according to the determination result. This module is mainly logically controlled by the receiverJudge29 function, which requires an array of unsigned char type with a length of 29 and a variable of unsigned char type to be passed in. Parse the status of the integrated management computer according to the data in the fourth byte of the data packet. Use an if statement to determine whether the data in the fourth byte is 0. If it is 0, it means the integrated management computer has a fault; if it is 1, it means the integrated management computer is normal; if it is 2, it means the integrated management computer is not powered on. Parse the status of the control unit according to the data in the fifth byte of the data packet. Use an if statement to determine whether the data in the fifth byte is 0. If it is 0, it means the control unit has a fault; if it is 1, it means the control unit is normal; if it is 2, it means the control unit is not powered on. Parse the navigation status according to the data in the sixth byte of the data packet. Use an if statement to determine whether the data in the sixth byte is 0. If it is 0, it means the navigation has a fault; if it is 1, it means the navigation is normal; if it is 2, it means the navigation is not powered on. Parse the radar status according to the data in the seventh byte of the data packet. Use an if statement to determine whether the data in the seventh byte is 0. If it is 0, it means the radar has a fault; if it is 1, it means the radar is normal; if it is 2, it means the radar is not powered on. Parse the optoelectronic status according to the data in the eighth byte of the data packet. Use an if statement to determine whether the data in the eighth byte is 0. If it is 0, it means the optoelectronics has a fault; if it is 1, it means the optoelectronics is normal; if it is 2, it means the optoelectronics is not powered on. Parse the follow-up status according to the data in the ninth byte of the data packet. Use an if statement to determine whether the data in the ninth byte is 0. If it is 0, it means the follow-up has a fault; if it is 1, it means the follow-up is normal; if it is 2, it means the follow-up is not powered on. Parse the power supply status according to the data in the tenth byte of the data packet. Use an if statement to determine whether the data in the ninth byte is 0. If it is 0, it means the power supply has a fault; if it is 1, it means the power supply is normal.
[0029] (2) Enter the shell status display module according to the judgment result. This module is mainly logically controlled by the receiverJudge17 function, which requires an array of unsigned char type with a length of 17 and a variable of unsigned char type. Parse the status of the first shell according to the data in the fourth byte of the data packet. Use an if statement to perform an AND operation on the data in the fourth byte with the hexadecimal data 0X5A. If the operation result is 1, it means the first shell is not in place; if it is 2, it means the first shell is in place and available; if it is 4, it means the first shell is in place but unavailable; if it is 8, it means the first shell is in place with a fuse fault. Shift the data in the fourth byte of the data packet four bits to the right to parse the status of the second shell. Use an if statement to determine whether the data after shifting the fourth byte four bits to the right is 1. If it is 1, it means the second shell is not in place; if it is 2, it means the second shell is in place and available; if it is 4, it means the second shell is in place but unavailable; if it is 8, it means the second shell is in place with a fuse fault. And so on for a total of thirty shells.
[0030] (3) Enter the target and environmental climate data display module according to the judgment result. This module is mainly logically controlled by the receiverJudge51 function, which requires an array of unsigned char type with a length of 51 and a variable of unsigned char type. Calculate the azimuth angle of the target detected by the radar according to the data in the second and third bytes of the data packet, and calculate the elevation angle of the target detected by the radar according to the data in the fourth and fifth bytes of the data packet. The calculation algorithm is as follows:
[0031]
[0032] Where Z f and Z g respectively represent the calculated azimuth data and elevation data, d x2 represents the data in the second byte of the data packet, d x3 represents the data in the third byte of the data packet, d x4 represents the data in the fourth byte of the data packet, d x5 represents the data in the fifth byte of the data packet. Calculate the distance data of the target detected by the radar according to the data in the sixth and seventh bytes of the data packet. The calculation algorithm is as follows:
[0033]
[0034] Where Z x represents the calculated distance data, d x6 represents the data in the sixth byte of the data packet, d x7 represents the data in the seventh byte of the data packet. Calculate the speed data of the target detected by the radar according to the data in the eighth and ninth bytes of the data packet. The calculation algorithm is as follows:
[0035] Z s = d x8 + 256d x9
[0036] where Z s represents the calculated distance data, and d x8 represents the eighth byte data in the data packet, and d x9 represents the ninth byte data in the data packet.
[0037] The azimuth of the elements is calculated based on the tenth and eleventh byte data in the data packet, the elevation of the elements is calculated based on the twelfth and thirteenth byte data in the data packet, the azimuth angle of the slave device is calculated based on the fourteenth and fifteenth byte data in the data packet, the elevation angle of the slave device is calculated based on the sixteenth and seventeenth byte data in the data packet, the azimuth angle of the radar device is calculated based on the eighteenth and nineteenth byte data in the data packet, the elevation angle of the radar device is calculated based on the twentieth and twenty - first byte data in the data packet, the azimuth angle of the optoelectronic device is calculated based on the twenty - second and twenty - third byte data in the data packet, the elevation angle of the optoelectronic device is calculated based on the twenty - fourth and twenty - fifth byte data in the data packet. The calculation algorithm is the same as that for the second, third, fourth, and fifth byte calculations.
[0038] The flight time of the projectile is calculated based on the twenty - sixth and twenty - seventh byte data in the data packet. The calculation algorithm is as follows;
[0039]
[0040] where Z df represents the calculated distance data, and d x26 represents the twenty - sixth byte data in the data packet, and d x27 represents the twenty - seventh byte data in the data packet. The temperature of the environment around the launcher vehicle is calculated based on the twenty - eighth and twenty - ninth byte data in the data packet. First, the twenty - eighth byte data is shifted right by 7 bits using a shift operation to obtain the most significant bit (sign bit) of the twenty - eighth byte data to determine the positive or negative of the temperature. If the sign bit is 0, it means the temperature is positive; if the sign bit is 1, it means the temperature is negative. At the same time, the temperature is calculated based on the twenty - ninth byte data in the data packet. The calculation algorithm is as follows:
[0041] Z qw = d x29
[0042] where Z qw represents the absolute value of the calculated temperature data, and d x29 represents the twenty - ninth byte data in the data packet.
[0043] (4) Enter the vehicle and command vehicle status display module according to the determination result. This module is mainly logically controlled by the receiverJudge22 function, which requires an array of unsigned char type with a length of 22 and a variable of unsigned char type to be passed in. Parse the longitude of the command vehicle based on the data in the fourth, fifth, sixth, and seventh bytes of the data packet. First, use a shift operation to shift the data in the seventh byte 7 bits to the right to obtain the highest bit (sign bit) of the seventh byte data to determine whether it is east longitude or west longitude. If the highest bit is 0, it represents east longitude; if it is 1, it represents west longitude. After confirming the east-west longitude, calculate the specific value according to the data in the fourth, fifth, sixth, and seventh bytes. The calculation formula is as follows:
[0044] Z jd = d y4 + 2 8 d y5 + 2 16 d y6 +(0x1F & d y7 ) × 2 24
[0045] where Z jd is the longitude of the command vehicle finally obtained through the operation, d y4 represents the data in the fourth byte, d y5 represents the data in the fifth byte, d y6 represents the data in the sixth byte, 0x1F is a hexadecimal number, & represents a bitwise AND operation, d y7 represents the data in the fifth byte. Parse the latitude of the command vehicle based on the data in the eighth, ninth, tenth, and eleventh bytes of the data packet. First, use a shift operation to shift the data in the eleventh byte 7 bits to the right to obtain the highest bit (sign bit) of the eleventh byte data to determine whether it is south latitude or north latitude. If the highest bit is 0, it represents north latitude; if it is 1, it represents south latitude. After confirming the north-south latitude, calculate the specific value according to the data in the eighth, ninth, tenth, and eleventh bytes. The calculation formula is as follows:
[0046] Z wd = d y8 + 2 8 d y9 + 2 16 d y10 +(0x1F & d y11 ) × 2 24
[0047] where Z wd is the latitude of the command vehicle finally obtained through the operation, d y8 represents the data in the eighth byte, d y9 represents the data in the ninth byte, dy10 Represents the tenth byte of data, d y11 Represents the eleventh byte of data. Similarly, the longitude and latitude of the launcher vehicle are parsed based on the data from the twelfth byte to the nineteenth byte in the data packet.
[0048] Step 3: Use the QLable component to display text or image data, and use the QPushButton component to display picture data while completing the events triggered by clicking the button. The QLable component is usually used as a static display component, which is not editable and can display plain text, rich text, and images. It supports setting text alignment methods and can set styles such as the font and color of the text. By calling the setPlainText method of the ui object instantiated from the QLable component, text data such as the target azimuth, target elevation, target speed, target distance, target height, follow-up azimuth, follow-up elevation, optoelectronic azimuth, and optoelectronic elevation are displayed on the QLable component. By calling the setStyleSheet method of the ui object instantiated from the QPushButton component, text and picture data are displayed on the QPushButton component. Before displaying the picture data, a resource.qrc file needs to be created and the picture is imported. In addition to displaying picture data, the QPushButton component also binds button click and double-click events through the slot function connect. Clicking the corresponding QPushButton component can trigger the corresponding event, thereby calling the corresponding function.
[0049] Step 4: Use the working state control algorithm to change the working state of the air defense weapon combat platform, use the power control algorithm to control the working state of the power supply, use the optoelectronic control algorithm to change the working state of the optoelectronic equipment, use the radar control algorithm to change the working state of the radar equipment, and use the follow-up control algorithm to change the working state of the follow-up equipment (including the follow-up equipment state and the azimuth angle and elevation angle of the follow-up equipment). Step 4 specifically includes the following steps:
[0050] (1) In the working state control algorithm, there are a total of six states: preparation configuration, marching, combat, training, supply, and fault diagnosis, which respectively correspond to six QPushButton components. When it is necessary to change the state of the air defense weapon combat platform, a secret order needs to be entered first to enter the administrator mode, and the value of the global variable kongzhimoshimima of the bool type is changed to 1. Six slot functions are used to control the six states. Clicking any QPushButton component will trigger the corresponding slot function, and the slot function will call the slots_UdpSend function to send the corresponding instruction to change the working state, and the current display state is changed through the setStyleSheet method. These six states are mutually exclusive, and only one state can be maintained at the same time.
[0051] (2) In the power control algorithm, clicking the QPushButton component of the power source triggers the signal slot mechanism and calls the slots_btnPowerControl function, which creates a power management window through PowerCtrlDlg*dlg=new PowerCtrlDlg(this). In the power management window, the slots_UdpSendPowerControl function sends instructions to change the power on and off status of the radar device, optoelectronic device, follow-up device, and control device.
[0052] (3) In the photoelectric control algorithm, by clicking the photoelectric QPushButton component to call the slots_UdpSend function to send the corresponding command, the infrared, television, and laser power-on and power-off conditions of the photoelectric device, as well as the color of the character display, character color, infrared field of view, and ranging method can be changed. By using slots_DianShiJiaoJu to create a TV focus selection form, using the QRadioButton component to create eight buttons in the TV focus selection form, and the buttons are mutually exclusive, this method can be used to control the focus of the TV.
[0053] (4) In the radar control algorithm, by clicking the QPushButton component and calling the slots_UdpSend function to send the corresponding command, the radar's rotation speed in azimuth, the tilting and erecting in pitch, and the rotation speed can be changed. The radar control module is also responsible for numbering aerial targets, manually numbering targets by calling the slots_YinDao function, and assessing the threat level of aerial targets.
[0054] (5) In the follow-up control algorithm, the follow-up device is enabled or disabled by clicking the QPushButton component. The follow-up position control window is created through the slots_SuiDongKongZhi function. The azimuth and elevation angles can be input in the window to adjust the position of the follow-up device.
[0055] Step 5: According to the threat assessment algorithm, the threat level of the aerial targets is assessed and numbered, and weighted summation is performed according to the target speed, target direction, target height and target distance. The formula is as follows:
[0056] Z wxd =0.2v+0.25q+0.25p+0.3d
[0057] Where Z wxd It represents the target threat degree after calculation, v represents the target speed, q represents the target azimuth, p represents the target elevation angle, and d represents the target distance. Then the threat degree of each target is sorted using the quick sorting algorithm. The larger the threat degree calculation value, the smaller the number.
[0058] Step 6: When the airborne target enters the optoelectronic detection range, the radar device guides the target to the optoelectronic device, and the optoelectronic device is used to track the target more accurately.
[0059] Step 7: Use the projectile mode control algorithm to select the strike mode and strike the airborne target. Trigger the signal-slot mechanism by clicking the QPushButton component of the projectile mode to call the slots_SheDanFangShi function. This function uses winFaSheQueRen = new FaSheQueRen to create a strike mode selection form. This form contains two ammunition magazines on the left and right, a total of 30 selection buttons for shells, as well as selection buttons for intelligent strike mode, single-shot strike mode, double-shot strike, and four-shot strike mode. Two arrays with a size of 15 are initialized in the strike mode selection form to store the status data of 15 shells in the left ammunition magazine and the status data of 15 shells in the right ammunition magazine respectively. 30 QPushButton components are created to trigger the signal-slot mechanism to control a total of 30 shells on the left and right, and 4 QRadioButton components are created to trigger the signal-slot mechanism to switch between the four strike modes. After selecting the intelligent strike mode, the algorithm will call a random function to randomly select the currently available shells. After selecting the single-shot strike mode, one shell needs to be manually selected from the left or right ammunition magazine. After selecting the double-shot strike mode, one shell needs to be manually selected from each of the left and right ammunition magazines. After selecting the four-shot strike mode, two shells need to be manually selected from each of the left and right ammunition magazines.
Claims
1. A remote control method for air defense weapons based on a Qt development platform, characterized in that: include: Step 1, using the UDP communication protocol in QT to receive the data packet data sent by the air defense weapon; Step 2, parsing the data packet data sent by the air defense weapon to obtain the integrated management computer status, control unit status, navigation status, radar status, optoelectronic status, follow-up status, shell status, azimuth of the target detected by the radar, elevation angle of the target detected by the radar, distance of the target detected by the radar, speed of the target detected by the radar, various element azimuths, various element elevations, azimuth of the follow-up device, elevation angle of the follow-up device, azimuth of the radar device, elevation angle of the radar device, azimuth of the optoelectronic device, elevation angle of the optoelectronic device, missile flight time, temperature, longitude of the command vehicle, latitude of the command vehicle, longitude of the launch vehicle, latitude of the launch vehicle; Step 3, use QLable component and QPushButton component to display the data parsed in step 2, and QPushButton component is bound to the button click and double-click events through the slot function connect, and the corresponding function is triggered by single-clicking and double-clicking the QPushButton component; Step 4, using the working state control algorithm to change the working state of the air defense weapon combat platform, using the power supply control algorithm to control the working state of the power supply, using the photoelectric control algorithm to change the working state of the photoelectric device, using the radar control algorithm to change the working state of the radar device, and using the follow-up control algorithm to change the working state of the follow-up device; Step 5: Use the threat assessment algorithm to assess the threat level of the air targets detected by the radar based on the target speed, target position, target height, and target distance indicators, and number the air targets according to the threat level; Step 6: When the aerial target enters the photoelectric detection range, the radar equipment guides the target to the photoelectric device, and uses the photoelectric device to track the target; Step 7, using the projectile mode control algorithm to select the strike mode and strike the aerial target.
2. The air defense weapon remote control method of the Qt development platform according to claim 1, characterized in that: According to the fourth byte data of the data packet, the integrated management computer status is parsed, and the if statement is used to determine whether the fourth byte data is 0. If it is 0, it indicates that the integrated management computer is faulty, if it is 1, it indicates that the integrated management computer is normal, and if it is 2, it indicates that the integrated management computer is not powered on; according to the fifth byte data of the data packet, the control unit status is parsed, and the if statement is used to determine whether the fifth byte data is 0. If it is 0, it indicates that the control unit is faulty, if it is 1, it indicates that the control unit is normal, and if it is 2, it indicates that the control unit is not powered on; according to the sixth byte data of the data packet, the navigation status is parsed, and the if statement is used to determine whether the sixth byte data is 0. If it is 0, it indicates a navigation fault, and if it is 1, it indicates that the navigation is not powered on. Normal, if it is 2, it means the navigation is not powered on; parse the radar status according to the seventh byte data of the data packet, use the if statement to determine whether the seventh byte data is 0, if it is 0, it means the radar is faulty, if it is 1, it means the radar is normal, if it is 2, it means the radar is not powered on; parse the photoelectric status according to the eighth byte data of the data packet, use the if statement to determine whether the eighth byte data is 0, if it is 0, it means the photoelectric is faulty, if it is 1, it means the photoelectric is normal, if it is 2, it means the photoelectric is not powered on; parse the follow-up status according to the ninth byte data of the data packet, use the if statement to determine whether the ninth byte data is 0, if it is 0, it means the follow-up is faulty, if it is 1, it means the follow-up is normal, if it is 2, it means the follow-up is not powered on; The power status is parsed according to the tenth byte of the data packet, and an if statement is used to determine whether the ninth byte of the data is 0. If it is 0, it indicates a power failure, and if it is 1, it indicates that the power is normal.
3. The air defense weapon remote control method of the Qt development platform according to claim 1, characterized in that: The status of the first shell is parsed according to the fourth byte data of the data packet, and the fourth byte data is ANDed with the hexadecimal data 0X5A using an if statement. If the result of the operation is 1, it means that the No. 1 shell is not in place; if it is 2, it means that the No. 1 shell is in place and can be used; if it is 4, it means that the No. 1 shell is in place and cannot be used; if it is 8, it means that the No. 1 shell is in place and the fuse is faulty. The fourth byte data of the data packet is shifted right by four bits to parse the status of the second shell, and an if statement is used to determine whether the data after the fourth byte is shifted right by four bits is 1. If it is 1, it means that the No. 2 shell is not in place; if it is 2, it means that the No. 2 shell is in place and can be used; if it is 4, it means that the No. 2 shell is in place and cannot be used; if it is 8, it means that the No. 2 shell is in place and the fuse is faulty.
4. The air defense weapon remote control method of the Qt development platform according to claim 1, characterized in that: The longitude of the command vehicle is parsed out according to the fourth, fifth, sixth and seventh bytes in the data packet; first, the seventh byte data is shifted right by 7 bits using a shift operation to obtain the highest bit of the seventh byte data to determine whether it is east longitude or west longitude. If the highest bit is 0, it represents east longitude, and if it is 1, it represents west longitude; after confirming the east and west longitudes, the specific values are calculated according to the fourth, fifth, sixth and seventh bytes data. The calculation formula is as follows: Z jd =d y4 +2 8 d y5 +2 16 d y6 +(0x1F&d y7 )×2 24 Where Z jd is the command vehicle longitude obtained after the final calculation, d y4 Indicates the fourth byte data, d y5 Indicates the fifth byte of data, d y6 Indicates the sixth byte data, 0x1F is hexadecimal data, & indicates bitwise AND operation, d y7 Indicates the fifth byte data; parse the latitude of the command vehicle according to the eighth, ninth, tenth and eleventh bytes in the data packet; first use the shift operation to shift the eleventh byte data right by 7 bits to get the highest bit of the eleventh byte data to determine whether it is south latitude or north latitude. If the highest bit is 0, it represents north latitude, and if it is 1, it represents south latitude; after confirming the north and south latitudes, calculate the specific value according to the eighth, ninth, tenth and eleventh bytes. The calculation formula is as follows: Z wd =d y8 +2 8 d y9 +2 16 d y10 +(0x1F&d y11 )×2 24 Where Z wd is the final calculated latitude of the command vehicle, d y8 Indicates the eighth byte of data, d y9 Indicates the ninth byte of data, d y10 Indicates the tenth byte of data, d y11 Indicates the eleventh byte of data.
5. The air defense weapon remote control method of the Qt development platform according to claim 1, characterized in that: Using the QT text box to display data specifically includes: displaying target direction, target height, target speed, target distance, target height, follow-up direction, follow-up height, photoelectric direction, and photoelectric height text data on the QLable component by calling the setPlainText method of the ui object after the QLable component is instantiated; displaying text and image data on the QPushButton component by calling the setStyleSheet method of the ui object after the QPushButton component is instantiated. Before displaying the image data, it is necessary to create a resource.qrc file and import the image; in addition to displaying image data, the QPushButton component also binds button click and double-click events through the slot function connect. Clicking the corresponding QPushButton component triggers the corresponding event, thereby calling the corresponding function.
6. The air defense weapon remote control method of the Qt development platform according to claim 1, characterized in that: When you need to change the status of the air defense weapon combat platform, you need to enter the password to enter the administrator mode first, and change the value of the bool type global variable kongzhimoshimima to 1; use six slot functions to control the six states, click any QPushButton component to trigger the corresponding slot function, the slot function will call the slots_UdpSend function to send the corresponding instruction to change the working status, and change the current display status through the setStyleSheet method.
7. The air defense weapon remote control method of the Qt development platform according to claim 1, characterized in that: When the power status needs to be changed, click the QPushButton component of the power supply to trigger the signal slot mechanism and call the slots_btnPowerControl function, which creates a power management window through PowerCtrlDlg*dlg=new PowerCtrlDlg(this); in the power management window, send instructions through the slots_UdpSendPowerControl function to change the power on and off status of the radar equipment, optoelectronic equipment, follow-up equipment, and control equipment.
8. The air defense weapon remote control method of the Qt development platform according to claim 1, characterized in that: When the state of the optoelectronic device needs to be changed, the slots_UdpSend function is called by clicking the QPushButton component to send the corresponding command to change the radar's rotation speed in azimuth, the tilting and erecting in pitch, and the rotation speed, and to number the aerial targets. The slots_YinDao function is called to manually number the targets and to assess the threat level of the aerial targets.
9. The air defense weapon remote control method of the Qt development platform according to claim 1, characterized in that: When the status of the follow-up device needs to be changed, the follow-up device can be enabled or disabled by clicking the QPushButton component, and the follow-up position control window is created through the slots_SuiDongKongZhi function. The azimuth and altitude angles are entered in the window to adjust the position of the follow-up device.
10. The air defense weapon remote control method based on the Qt development platform according to claim 1, characterized in that: The root uses the projectile mode control algorithm to select the attack mode and attack the aerial target: the signal slot mechanism is triggered by clicking the projectile mode QPushButton component, and the slots_SheDanFangShi function is called. The function uses winFaSheQueRen=newFaSheQueRen to create an attack mode selection window; the window contains two left and right magazines, selection buttons for multiple shells, and selection buttons for smart attack mode, single-shot attack mode, double-shot attack, and four-shot attack mode.