Rev 1562 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1562 | Rev 1564 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | package dongfang.mkt.serial; |
1 | package dongfang.mkt.serial; |
Line 2... | Line 2... | ||
2 | 2 | ||
3 | import java.io.IOException; |
3 | import java.io.IOException; |
Line 4... | Line -... | ||
4 | import java.io.OutputStream; |
- | |
5 | 4 | import java.io.OutputStream; |
|
6 | import dongfang.mkt.RequestFrameVisitor; |
5 | |
7 | import dongfang.mkt.frames.AllDisplaysRequestFrame; |
6 | import dongfang.mkt.frames.AllDisplaysRequestFrame; |
8 | import dongfang.mkt.frames.AnalogDebugLabelRequestFrame; |
7 | import dongfang.mkt.frames.AnalogDebugLabelRequestFrame; |
9 | import dongfang.mkt.frames.AttitudeDataRequestFrame; |
8 | import dongfang.mkt.frames.AttitudeDataRequestFrame; |
Line 14... | Line 13... | ||
14 | import dongfang.mkt.frames.LoopbackTestRequestFrame; |
13 | import dongfang.mkt.frames.LoopbackTestRequestFrame; |
15 | import dongfang.mkt.frames.MotorTestRequestFrame; |
14 | import dongfang.mkt.frames.MotorTestRequestFrame; |
16 | import dongfang.mkt.frames.OSDDataRequestFrame; |
15 | import dongfang.mkt.frames.OSDDataRequestFrame; |
17 | import dongfang.mkt.frames.ReadExternalControlRequestFrame; |
16 | import dongfang.mkt.frames.ReadExternalControlRequestFrame; |
18 | import dongfang.mkt.frames.RequestFrame; |
17 | import dongfang.mkt.frames.RequestFrame; |
- | 18 | import dongfang.mkt.frames.RequestFrameVisitor; |
|
19 | import dongfang.mkt.frames.ResetRequestFrame; |
19 | import dongfang.mkt.frames.ResetRequestFrame; |
20 | import dongfang.mkt.frames.SetCompassHeadingRequestFrame; |
20 | import dongfang.mkt.frames.SetCompassHeadingRequestFrame; |
21 | import dongfang.mkt.frames.SingleDisplayRequestFrame; |
21 | import dongfang.mkt.frames.SingleDisplayRequestFrame; |
22 | import dongfang.mkt.frames.UniversalReadParamSetRequestFrame; |
22 | import dongfang.mkt.frames.UniversalReadParamSetRequestFrame; |
23 | import dongfang.mkt.frames.UniversalWriteParamSetRequestFrame; |
23 | import dongfang.mkt.frames.UniversalWriteParamSetRequestFrame; |
24 | import dongfang.mkt.frames.VariablesRequestFrame; |
24 | import dongfang.mkt.frames.VariablesRequestFrame; |
25 | import dongfang.mkt.frames.VersionRequestFrame; |
25 | import dongfang.mkt.frames.VersionRequestFrame; |
Line -... | Line 26... | ||
- | 26 | ||
26 | 27 | /* |
|
27 | public class MKOutputStream extends OutputStream implements RequestFrameVisitor { |
28 | public class MKOutputStream extends OutputStream implements RequestFrameVisitor { |
28 | public class MKDataOutputStream { |
29 | public class MKDataOutputStream { |
29 | int[] inbuf = new int[3]; |
30 | int[] inbuf = new int[3]; |
30 | int[] outbuf = new int[4]; |
31 | int[] outbuf = new int[4]; |
Line 214... | Line 215... | ||
214 | public void visit(OSDDataRequestFrame f) throws IOException { |
215 | public void visit(OSDDataRequestFrame f) throws IOException { |
215 | writeByte('o'); |
216 | writeByte('o'); |
216 | base64OutputStream.writeByte(f.getAutoSendInterval()); |
217 | base64OutputStream.writeByte(f.getAutoSendInterval()); |
217 | } |
218 | } |
218 | } |
219 | } |
- | 220 | */ |
|
219 | 221 |