Rev 1562 | Rev 1564 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1562 | Rev 1563 | ||
---|---|---|---|
Line 10... | Line 10... | ||
10 | import java.io.Writer; |
10 | import java.io.Writer; |
11 | import java.util.ArrayList; |
11 | import java.util.ArrayList; |
12 | import java.util.Date; |
12 | import java.util.Date; |
13 | import java.util.List; |
13 | import java.util.List; |
Line -... | Line 14... | ||
- | 14 | ||
- | 15 | import dongfang.mkt.comm.FrameQueue; |
|
- | 16 | import dongfang.mkt.comm.MKConnection; |
|
14 | 17 | import dongfang.mkt.comm.serial.RXTXSerialPort; |
|
15 | import dongfang.mkt.frames.OSDDataRequestFrame; |
18 | import dongfang.mkt.frames.OSDDataRequestFrame; |
16 | import dongfang.mkt.frames.OSDDataResponseFrame; |
19 | import dongfang.mkt.frames.OSDDataResponseFrame; |
17 | import dongfang.mkt.frames.OSDDataResponseFrame.GPSDistanceAndBearing; |
20 | import dongfang.mkt.frames.OSDDataResponseFrame.GPSDistanceAndBearing; |
18 | import dongfang.mkt.frames.OSDDataResponseFrame.GPSPosition; |
- | |
19 | import dongfang.mkt.io.MKCommPort; |
- | |
20 | import dongfang.mkt.io.RXTXSerialPort; |
- | |
Line 21... | Line 21... | ||
21 | import dongfang.mkt.serial.FrameQueue; |
21 | import dongfang.mkt.frames.OSDDataResponseFrame.GPSPosition; |
22 | 22 | ||
23 | public class OSDLogger { |
23 | public class OSDLogger { |
Line 161... | Line 161... | ||
161 | } |
161 | } |
Line 162... | Line 162... | ||
162 | 162 | ||
163 | public static void main(String[] args) throws IOException { |
163 | public static void main(String[] args) throws IOException { |
Line 164... | Line 164... | ||
164 | OSDLogger test = new OSDLogger(); |
164 | OSDLogger test = new OSDLogger(); |
165 | 165 | ||
Line 166... | Line 166... | ||
166 | MKCommPort port = new RXTXSerialPort(); |
166 | MKConnection _port = new RXTXSerialPort(); |
167 | port.init(null); |
167 | _port.init(null); |
Line 168... | Line 168... | ||
168 | 168 | ||
Line 169... | Line 169... | ||
169 | FrameQueue q = new FrameQueue(port); |
169 | FrameQueue q = new FrameQueue(_port); |