Go to most recent revision |
Blame |
Compare with Previous |
Last modification |
View Log
| RSS feed
package dongfang.mkt.frames;
import java.io.IOException;
import dongfang.mkt.RequestFrameVisitor;
public class WriteMotorMixerRequestFrame
extends RequestFrame
{
private int[][] matrix
;
// private int[] oppositeMotors;
private int motorMixerVersionNumber
;
private int configurationVersion
;
public WriteMotorMixerRequestFrame
(int motorMixerVersionNumber,
int[][] matrix
/*, int[] oppositeMotors*/) {
super(FC_ADDRESS
);
this.
motorMixerVersionNumber = motorMixerVersionNumber
;
this.
matrix = matrix
;
// this.oppositeMotors = oppositeMotors;
}
@
Override
public void accept
(RequestFrameVisitor o
) throws IOException {
o.
visit(this);
}
public int getMotorMixerVersionNumber
() {
return motorMixerVersionNumber
;
}
public int[][] getMatrix
() {
return matrix
;
}
/*
public int[] getOppositeMotors() {
return oppositeMotors;
}
*/
public int getConfigurationVersion
() {
return configurationVersion
;
}
public void setConfigurationVersion
(int configurationVersion
) {
this.
configurationVersion = configurationVersion
;
}
public int getDataLength
() {
return matrix.
length * 5; // return matrix.length * 4 + oppositeMotors.length;*/
}
}