Subversion Repositories Projects

Rev

Rev 1539 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1539 Rev 1559
Line 10... Line 10...
10
import dongfang.mkt.frames.ChangeParameterSetRequestFrame;
10
import dongfang.mkt.frames.ChangeParameterSetRequestFrame;
11
import dongfang.mkt.frames.DebugRequestFrame;
11
import dongfang.mkt.frames.DebugRequestFrame;
12
import dongfang.mkt.frames.ExternalControlRequestFrame;
12
import dongfang.mkt.frames.ExternalControlRequestFrame;
13
import dongfang.mkt.frames.LoopbackTestRequestFrame;
13
import dongfang.mkt.frames.LoopbackTestRequestFrame;
14
import dongfang.mkt.frames.MotorTestRequestFrame;
14
import dongfang.mkt.frames.MotorTestRequestFrame;
-
 
15
import dongfang.mkt.frames.OSDDataRequestFrame;
-
 
16
import dongfang.mkt.frames.ReadExternalControlRequestFrame;
15
import dongfang.mkt.frames.RequestFrame;
17
import dongfang.mkt.frames.RequestFrame;
16
import dongfang.mkt.frames.ResetRequestFrame;
18
import dongfang.mkt.frames.ResetRequestFrame;
17
import dongfang.mkt.frames.SetCompassHeadingRequestFrame;
19
import dongfang.mkt.frames.SetCompassHeadingRequestFrame;
18
import dongfang.mkt.frames.SingleDisplayRequestFrame;
20
import dongfang.mkt.frames.SingleDisplayRequestFrame;
19
import dongfang.mkt.frames.UniversalReadParamSetRequestFrame;
21
import dongfang.mkt.frames.UniversalReadParamSetRequestFrame;
Line 161... Line 163...
161
        public void visit(VariablesRequestFrame f) throws IOException {
163
        public void visit(VariablesRequestFrame f) throws IOException {
162
                writeByte('x');
164
                writeByte('x');
163
        }
165
        }
Line 164... Line 166...
164
 
166
 
165
        public void visit(ExternalControlRequestFrame f) throws IOException {
167
        public void visit(ExternalControlRequestFrame f) throws IOException {
166
                writeByte('y');
168
                writeByte('b');
167
                base64OutputStream.writeByte(f.getDigital()[0]);
169
                base64OutputStream.writeByte(f.getDigital()[0]);
168
                base64OutputStream.writeByte(f.getDigital()[1]);
170
                base64OutputStream.writeByte(f.getDigital()[1]);
169
                base64OutputStream.writeByte(f.getRemoteButtons());
171
                base64OutputStream.writeByte(f.getRemoteButtons());
170
                base64OutputStream.writeByte(f.getPitch());
172
                base64OutputStream.writeByte(f.getPitch());
Line 174... Line 176...
174
                base64OutputStream.writeByte(f.getHeight());
176
                base64OutputStream.writeByte(f.getHeight());
175
                base64OutputStream.writeByte(f.getCommand());
177
                base64OutputStream.writeByte(f.getCommand());
176
                base64OutputStream.writeByte(f.getFrameNum());
178
                base64OutputStream.writeByte(f.getFrameNum());
177
                base64OutputStream.writeByte(f.getArgument());
179
                base64OutputStream.writeByte(f.getArgument());
178
        }
180
        }
-
 
181
       
-
 
182
        public void visit(ReadExternalControlRequestFrame f) throws IOException {
-
 
183
                writeByte('g');
-
 
184
        }
Line 179... Line 185...
179
 
185
 
180
        public void visit(LoopbackTestRequestFrame f) throws IOException {
186
        public void visit(LoopbackTestRequestFrame f) throws IOException {
181
                writeByte('0');
187
                writeByte('0');
182
                base64OutputStream.writeByte(f.getByte());
188
                base64OutputStream.writeByte(f.getByte());
Line 197... Line 203...
197
        }
203
        }
Line 198... Line 204...
198
       
204
       
199
        public void visit(SetCompassHeadingRequestFrame f) throws IOException {
205
        public void visit(SetCompassHeadingRequestFrame f) throws IOException {
200
                writeByte('K');
206
                writeByte('K');
-
 
207
        }
-
 
208
 
-
 
209
        public void visit(OSDDataRequestFrame f) throws IOException {
-
 
210
                writeByte('o');
-
 
211
                base64OutputStream.writeByte(f.getAutoSendInterval());
201
        }
212
        }