张世豪
6 小时以前 8d3989dff1164588d45dbb30506da1a6e1094005
src/gecaoji/GecaojiMeg.java
@@ -40,7 +40,6 @@
    private JLabel errorCodeLabel;
    private JLabel errorMessageLabel;
    private JLabel rollLabel;
    private JLabel pitchLabel;
    private JLabel yawLabel;
    
    private JLabel updateTimeLabel;
@@ -249,9 +248,6 @@
        // 横滚角
        addLabelRow(grid, gbc, currentRow++, "横滚角:", rollLabel = createValueLabel(), titleFont, valueFont);
        
        // 俯仰角
        addLabelRow(grid, gbc, currentRow++, "俯仰角:", pitchLabel = createValueLabel(), titleFont, valueFont);
        // 偏航角
        addLabelRow(grid, gbc, currentRow++, "偏航角:", yawLabel = createValueLabel(), titleFont, valueFont);
@@ -380,7 +376,6 @@
        errorCodeLabel = null;
        errorMessageLabel = null;
        rollLabel = null;
        pitchLabel = null;
        yawLabel = null;
        
        updateTimeLabel = null;
@@ -419,7 +414,6 @@
        errorCodeLabel.setText(formatDeviceValue(device.getError_code()));
        errorMessageLabel.setText(formatDeviceValue(device.getError_message()));
        rollLabel.setText(formatDeviceValue(device.getRoll()));
        pitchLabel.setText(formatDeviceValue(device.getPitch()));
        yawLabel.setText(formatDeviceValue(device.getYaw()));
        
        updateTimeLabel.setText(formatTimestamp(device.getGupdateTime()));
@@ -445,7 +439,6 @@
        if (errorCodeLabel != null) errorCodeLabel.setText(value);
        if (errorMessageLabel != null) errorMessageLabel.setText(value);
        if (rollLabel != null) rollLabel.setText(value);
        if (pitchLabel != null) pitchLabel.setText(value);
        if (yawLabel != null) yawLabel.setText(value);
        
        if (updateTimeLabel != null) updateTimeLabel.setText(value);