Blame |
Last modification |
View Log
| RSS feed
package dongfang.mkt.frames;
public class ReadExternalControlResponseFrame
extends ResponseFrame
{
int[] digital =
new int[2];// unsigned byte.
int remoteButtons
; // unsigned byte.
int pitch
; // signed byte.
int roll
; // signed byte.
int yaw
; // signed byte.
int throttle
; // unsigned byte.
int height
; // signed byte (!).
int command
; // unsigned byte. Called "free" in MK code.
int frameNum
; // unsigned byte.
int argument
; // unsigned byte. Called "config" in MK code.
public ReadExternalControlResponseFrame
(int address
) {
super(address
);
}
public int[] getDigital
() {
return digital
;
}
public void setDigital
(int[] digital
) {
this.
digital = digital
;
}
public int getRemoteButtons
() {
return remoteButtons
;
}
public void setRemoteButtons
(int remoteButtons
) {
this.
remoteButtons = remoteButtons
;
}
public int getPitch
() {
return pitch
;
}
public void setPitch
(int pitch
) {
this.
pitch = pitch
;
}
public int getRoll
() {
return roll
;
}
public void setRoll
(int roll
) {
this.
roll = roll
;
}
public int getYaw
() {
return yaw
;
}
public void setYaw
(int yaw
) {
this.
yaw = yaw
;
}
public int getThrottle
() {
return throttle
;
}
public void setThrottle
(int throttle
) {
this.
throttle = throttle
;
}
public int getHeight
() {
return height
;
}
public void setHeight
(int height
) {
this.
height = height
;
}
public int getCommand
() {
return command
;
}
public void setCommand
(int command
) {
this.
command = command
;
}
public int getFrameNum
() {
return frameNum
;
}
public void setFrameNum
(int frameNum
) {
this.
frameNum = frameNum
;
}
public int getArgument
() {
return argument
;
}
public void setArgument
(int argument
) {
this.
argument = argument
;
}
@
Override
public boolean isResponseTo
(RequestFrame r
) {
return r
instanceof ReadExternalControlRequestFrame
;
}
}