Subversion Repositories Projects

Rev

Rev 1563 | Rev 1566 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1563 Rev 1564
Line 1... Line 1...
1
package dongfang.mkt.comm;
1
package dongfang.mkt.comm;
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;
Line 198... Line 198...
198
 
198
 
199
        public void visit(UniversalWriteParamSetRequestFrame f) throws IOException {
199
        public void visit(UniversalWriteParamSetRequestFrame f) throws IOException {
200
                writeByte('s');
200
                writeByte('s');
201
                base64OutputStream.writeByte(f.getConfigurationSetNumber());
201
                base64OutputStream.writeByte(f.getConfigurationSetNumber());
-
 
202
                base64OutputStream.writeByte(f.getConfigurationVersionNumber());
202
                base64OutputStream.writeByte(f.getConfigurationVersionNumber());
203
                // base64OutputStream.writeByte(f.getDataLength());
203
                base64OutputStream.writeBytes(f.getData());
204
                base64OutputStream.writeBytes(f.getData());
Line 204... Line 205...
204
        }
205
        }
205
       
206