Rev 1563 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1563 | Rev 1564 | ||
---|---|---|---|
Line 82... | Line 82... | ||
82 | w.write("<mk-debugdata time=\"" + logId + "\">\n"); |
82 | w.write("<mk-debugdata time=\"" + logId + "\">\n"); |
83 | } |
83 | } |
Line 84... | Line 84... | ||
84 | 84 | ||
85 | public void log(DebugResponseFrame f, long timestamp) |
85 | public void log(DebugResponseFrame f, long timestamp) |
- | 86 | throws IOException { |
|
86 | throws IOException { |
87 | if (f==null) return; |
87 | w.write(" <dataset timestamp=\"" + timestamp + "\">\n"); |
88 | w.write(" <dataset timestamp=\"" + timestamp + "\">\n"); |
88 | for (int i = 0; i < 32; i++) { |
89 | for (int i = 0; i < 32; i++) { |
89 | w.write(" <data offset=\"" + i + "\" label=\"" + labels[i] |
90 | w.write(" <data offset=\"" + i + "\" label=\"" + labels[i] |
90 | + "\" value=\"" + f.getAnalog()[i] + "\"/>\n"); |
91 | + "\" value=\"" + f.getAnalog()[i] + "\"/>\n"); |
Line 200... | Line 201... | ||
200 | } |
201 | } |
Line 201... | Line 202... | ||
201 | 202 | ||
202 | public static void main(String[] args) throws IOException { |
203 | public static void main(String[] args) throws IOException { |
Line 203... | Line 204... | ||
203 | MKDebugLogger test = new MKDebugLogger(); |
204 | MKDebugLogger test = new MKDebugLogger(); |
204 | 205 | ||
Line 205... | Line 206... | ||
205 | MKConnection port = new MKTCPConnection(); //RXTXSerialPort(); |
206 | MKConnection port = new RXTXSerialPort(); |
206 | port.init("8080"); |
207 | port.init(null); |
Line 207... | Line 208... | ||
207 | 208 |