Subversion Repositories Projects

Compare Revisions

Ignore whitespace Rev 1689 → Rev 1688

/dongfang_FC_rewrite_tool/src/dongfang/mkt/frames/WriteMotorMixerRequestFrame.java
6,15 → 6,14
 
 
public class WriteMotorMixerRequestFrame extends RequestFrame {
private char[] name;
private int[][] matrix;
// private int[] oppositeMotors;
private int motorMixerVersionNumber;
private int configurationVersion;
public WriteMotorMixerRequestFrame(int motorMixerVersionNumber, char[] name, int[][] matrix /*, int[] oppositeMotors*/) {
public WriteMotorMixerRequestFrame(int motorMixerVersionNumber, int[][] matrix /*, int[] oppositeMotors*/) {
super(FC_ADDRESS);
this.motorMixerVersionNumber = motorMixerVersionNumber;
this.name = name;
this.matrix = matrix;
// this.oppositeMotors = oppositeMotors;
}
28,18 → 27,6
return motorMixerVersionNumber;
}
 
public void setMotorMixerVersionNumber(int motorMixerVersionNumber) {
this.motorMixerVersionNumber = motorMixerVersionNumber;
}
 
public char[] getName() {
return name;
}
 
public void setName(char[] name) {
this.name = name;
}
 
public int[][] getMatrix() {
return matrix;
}
49,8 → 36,16
return oppositeMotors;
}
*/
 
public int getConfigurationVersion() {
return configurationVersion;
}
 
public void setConfigurationVersion(int configurationVersion) {
this.configurationVersion = configurationVersion;
}
public int getDataLength() {
return 12 + matrix.length * 5; // return matrix.length * 4 + oppositeMotors.length;*/
return matrix.length * 5; // return matrix.length * 4 + oppositeMotors.length;*/
}
}