From ae21cf10b0b52a5949f93322eaf94f2e518ab49e Mon Sep 17 00:00:00 2001 From: 826220679@qq.com <826220679@qq.com> Date: 星期二, 26 八月 2025 23:01:44 +0800 Subject: [PATCH] 习惯 --- src/home/AOAFollowSystem.java | 18 ++++++++++++++++-- 1 files changed, 16 insertions(+), 2 deletions(-) diff --git a/src/home/AOAFollowSystem.java b/src/home/AOAFollowSystem.java index 6b1c318..432b760 100644 --- a/src/home/AOAFollowSystem.java +++ b/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); -- Gitblit v1.9.3