Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1559 | - | 1 | package dongfang.mkt.frames; |
2 | |||
3 | public class ReadExternalControlResponseFrame extends ResponseFrame { |
||
4 | |||
5 | int[] digital = new int[2];// unsigned byte. |
||
6 | int remoteButtons; // unsigned byte. |
||
7 | int pitch; // signed byte. |
||
8 | int roll; // signed byte. |
||
9 | int yaw; // signed byte. |
||
10 | int throttle; // unsigned byte. |
||
11 | int height; // signed byte (!). |
||
12 | int command; // unsigned byte. Called "free" in MK code. |
||
13 | int frameNum; // unsigned byte. |
||
14 | int argument; // unsigned byte. Called "config" in MK code. |
||
15 | |||
16 | public ReadExternalControlResponseFrame(int address) { |
||
17 | super(address); |
||
18 | } |
||
19 | |||
20 | public int[] getDigital() { |
||
21 | return digital; |
||
22 | } |
||
23 | |||
24 | public void setDigital(int[] digital) { |
||
25 | this.digital = digital; |
||
26 | } |
||
27 | |||
28 | public int getRemoteButtons() { |
||
29 | return remoteButtons; |
||
30 | } |
||
31 | |||
32 | public void setRemoteButtons(int remoteButtons) { |
||
33 | this.remoteButtons = remoteButtons; |
||
34 | } |
||
35 | |||
36 | public int getPitch() { |
||
37 | return pitch; |
||
38 | } |
||
39 | |||
40 | public void setPitch(int pitch) { |
||
41 | this.pitch = pitch; |
||
42 | } |
||
43 | |||
44 | public int getRoll() { |
||
45 | return roll; |
||
46 | } |
||
47 | |||
48 | public void setRoll(int roll) { |
||
49 | this.roll = roll; |
||
50 | } |
||
51 | |||
52 | public int getYaw() { |
||
53 | return yaw; |
||
54 | } |
||
55 | |||
56 | public void setYaw(int yaw) { |
||
57 | this.yaw = yaw; |
||
58 | } |
||
59 | |||
60 | public int getThrottle() { |
||
61 | return throttle; |
||
62 | } |
||
63 | |||
64 | public void setThrottle(int throttle) { |
||
65 | this.throttle = throttle; |
||
66 | } |
||
67 | |||
68 | public int getHeight() { |
||
69 | return height; |
||
70 | } |
||
71 | |||
72 | public void setHeight(int height) { |
||
73 | this.height = height; |
||
74 | } |
||
75 | |||
76 | public int getCommand() { |
||
77 | return command; |
||
78 | } |
||
79 | |||
80 | public void setCommand(int command) { |
||
81 | this.command = command; |
||
82 | } |
||
83 | |||
84 | public int getFrameNum() { |
||
85 | return frameNum; |
||
86 | } |
||
87 | |||
88 | public void setFrameNum(int frameNum) { |
||
89 | this.frameNum = frameNum; |
||
90 | } |
||
91 | |||
92 | public int getArgument() { |
||
93 | return argument; |
||
94 | } |
||
95 | |||
96 | public void setArgument(int argument) { |
||
97 | this.argument = argument; |
||
98 | } |
||
99 | |||
100 | @Override |
||
101 | public boolean isResponseTo(RequestFrame r) { |
||
102 | return r instanceof ReadExternalControlRequestFrame; |
||
103 | } |
||
104 | } |