Rev 1695 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1695 | Rev 1696 | ||
---|---|---|---|
Line 7... | Line 7... | ||
7 | import dongfang.mkt.datatype.GPSBearingAndRange; |
7 | import dongfang.mkt.datatype.GPSBearingAndRange; |
8 | import dongfang.mkt.datatype.GPSPosition; |
8 | import dongfang.mkt.datatype.GPSPosition; |
9 | import dongfang.mkt.frames.AllDisplaysResponseFrame; |
9 | import dongfang.mkt.frames.AllDisplaysResponseFrame; |
10 | import dongfang.mkt.frames.AnalogDebugLabelResponseFrame; |
10 | import dongfang.mkt.frames.AnalogDebugLabelResponseFrame; |
11 | import dongfang.mkt.frames.AttitudeDataResponseFrame; |
11 | import dongfang.mkt.frames.AttitudeDataResponseFrame; |
12 | import dongfang.mkt.frames.ChangeParameterSetResponseFrame; |
- | |
13 | import dongfang.mkt.frames.CompassHeadingResponseFrame; |
12 | import dongfang.mkt.frames.CompassHeadingResponseFrame; |
14 | import dongfang.mkt.frames.ConfirmFrame; |
13 | import dongfang.mkt.frames.ConfirmFrame; |
15 | import dongfang.mkt.frames.DCMMatrixResponseFrame; |
14 | import dongfang.mkt.frames.DCMMatrixResponseFrame; |
16 | import dongfang.mkt.frames.DebugResponseFrame; |
15 | import dongfang.mkt.frames.DebugResponseFrame; |
17 | import dongfang.mkt.frames.MotorTestResponseFrame; |
16 | import dongfang.mkt.frames.MotorTestResponseFrame; |
18 | import dongfang.mkt.frames.OSDDataResponseFrame; |
17 | import dongfang.mkt.frames.OSDDataResponseFrame; |
- | 18 | import dongfang.mkt.frames.ProfilerLabelResponseFrame; |
|
- | 19 | import dongfang.mkt.frames.ProfilerResponseFrame; |
|
19 | import dongfang.mkt.frames.ReadExternalControlResponseFrame; |
20 | import dongfang.mkt.frames.ReadExternalControlResponseFrame; |
20 | import dongfang.mkt.frames.ReadIMUConfigurationResponseFrame; |
21 | import dongfang.mkt.frames.ReadIMUConfigurationResponseFrame; |
21 | import dongfang.mkt.frames.ReadMotorMixerResponseFrame; |
22 | import dongfang.mkt.frames.ReadMotorMixerResponseFrame; |
22 | import dongfang.mkt.frames.ReadParamSetResponseFrame; |
23 | import dongfang.mkt.frames.ReadParamSetResponseFrame; |
23 | import dongfang.mkt.frames.ReadRCChannelsResponseFrame; |
24 | import dongfang.mkt.frames.ReadRCChannelsResponseFrame; |
Line 223... | Line 224... | ||
223 | } |
224 | } |
224 | f.setMatrix(matrix); |
225 | f.setMatrix(matrix); |
225 | result = f; |
226 | result = f; |
226 | break; |
227 | break; |
227 | } |
228 | } |
- | 229 | /* |
|
228 | case 'F': { |
230 | case 'F': { |
229 | ChangeParameterSetResponseFrame f = new ChangeParameterSetResponseFrame(address); |
231 | ChangeParameterSetResponseFrame f = new ChangeParameterSetResponseFrame(address); |
230 | f.setParameterSetNumber(base64InputStream.readByte()); |
232 | f.setParameterSetNumber(base64InputStream.readByte()); |
231 | result = f; |
233 | result = f; |
232 | break; |
234 | break; |
233 | } |
235 | } |
- | 236 | */ |
|
- | 237 | case 'F': { |
|
- | 238 | ProfilerLabelResponseFrame f = new ProfilerLabelResponseFrame(address); |
|
- | 239 | f.setChannel(base64InputStream.readByte()); |
|
- | 240 | f.setLabel(base64InputStream.readChars(16)); |
|
- | 241 | result = f; |
|
- | 242 | break; |
|
- | 243 | } |
|
- | 244 | ||
234 | case 'G': { |
245 | case 'G': { |
235 | ReadExternalControlResponseFrame f = new ReadExternalControlResponseFrame(address); |
246 | ReadExternalControlResponseFrame f = new ReadExternalControlResponseFrame(address); |
236 | f.setDigital(base64InputStream.readBytes(2)); |
247 | f.setDigital(base64InputStream.readBytes(2)); |
237 | f.setRemoteButtons(base64InputStream.readByte()); |
248 | f.setRemoteButtons(base64InputStream.readByte()); |
238 | f.setPitch(base64InputStream.readByte()); |
249 | f.setPitch(base64InputStream.readByte()); |
Line 422... | Line 433... | ||
422 | f.setChararray(getDataInputStream().readChars(8)); |
433 | f.setChararray(getDataInputStream().readChars(8)); |
423 | result = f; |
434 | result = f; |
424 | break; |
435 | break; |
425 | } |
436 | } |
426 | */ |
437 | */ |
- | 438 | case 'U': { |
|
- | 439 | ProfilerResponseFrame f = new ProfilerResponseFrame(address); |
|
- | 440 | f.setTotalHits(base64InputStream.readSignedDWord()); |
|
- | 441 | for (int i=0; i<16; i++) |
|
- | 442 | f.setActivity(i, base64InputStream.readWord()); |
|
- | 443 | result = f; |
|
- | 444 | break; |
|
- | 445 | } |
|
427 | case 'V': { |
446 | case 'V': { |
428 | VersionResponseFrame f = new VersionResponseFrame(address); |
447 | VersionResponseFrame f = new VersionResponseFrame(address); |
429 | f.setSWMajor(base64InputStream.readByte()); |
448 | f.setSWMajor(base64InputStream.readByte()); |
430 | f.setSWMinor(base64InputStream.readByte()); |
449 | f.setSWMinor(base64InputStream.readByte()); |
431 | f.setProtoMajor(base64InputStream.readByte()); |
450 | f.setProtoMajor(base64InputStream.readByte()); |