826220679@qq.com
5 天以前 ae21cf10b0b52a5949f93322eaf94f2e518ab49e
src/home/AOAFollowSystem.java
@@ -241,6 +241,7 @@
      private JRadioButton hexRadio;
      private JRadioButton asciiRadio;
      private JCheckBox hexSendCheckBox;
      private JCheckBox pairCheckBox;
      // 表格模型 - 只有1行
      private Object[][] tableData = new Object[1][7];
@@ -302,12 +303,24 @@
         ButtonGroup formatGroup = new ButtonGroup();
         hexRadio = new JRadioButton(getString("hex"), true); // 默认选中HEX
         asciiRadio = new JRadioButton(getString("ascii"));
         pairCheckBox = new JCheckBox(getString("pair"), false); // 默认不勾选
         pairCheckBox.addItemListener(e -> {
             if (pairCheckBox.isSelected()) {
                 sendField.setText("55AA030304F5FF");
             } else {
                 sendField.setText("");
             }
         });
         formatGroup.add(hexRadio);
         formatGroup.add(asciiRadio);
         formatPanel.add(hexRadio);
         formatPanel.add(asciiRadio);
         formatPanel.add(pairCheckBox);
         // 将格式选择面板添加到日志面板的底部
         logPanel.add(formatPanel, BorderLayout.SOUTH);
@@ -566,12 +579,12 @@
            Dell55AA1FParser.ParseResult result = Dell55AA1FParser.parse(displayText, "127.0.0.1", 0);
            if (result != null) {
               updateTable(result);
               visualizationPanel.updatePosition(result.distance, result.angle);
               visualizationPanel.updatePosition(result.distance, result.angle,result.signalQuality);
               visualizationPanel.setTagId(result.tagId);
            }
         }else if(displayText.startsWith("55AA01")) {               
            ParseResult result=Dell55AA01Parser.parse(displayText, "127.0.0.1", 0);
            visualizationPanel.updatePosition(result.distance,270);
            visualizationPanel.updatePosition(result.distance,270,0);
            visualizationPanel.setTagId(result.tagId);
            
         }
@@ -718,6 +731,7 @@
         hexRadio.setText(getString("hex"));
         asciiRadio.setText(getString("ascii"));
         hexSendCheckBox.setText(getString("hex_send"));
         pairCheckBox.setText(getString("pair"));
         // 更新边框标题
         updateBorderTitles(this);