6,14 → 6,15 |
|
|
public class WriteMotorMixerRequestFrame extends RequestFrame { |
private char[] name; |
private int[][] matrix; |
// private int[] oppositeMotors; |
private int motorMixerVersionNumber; |
private int configurationVersion; |
|
public WriteMotorMixerRequestFrame(int motorMixerVersionNumber, int[][] matrix /*, int[] oppositeMotors*/) { |
public WriteMotorMixerRequestFrame(int motorMixerVersionNumber, char[] name, int[][] matrix /*, int[] oppositeMotors*/) { |
super(FC_ADDRESS); |
this.motorMixerVersionNumber = motorMixerVersionNumber; |
this.name = name; |
this.matrix = matrix; |
// this.oppositeMotors = oppositeMotors; |
} |
27,6 → 28,18 |
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; |
} |
36,16 → 49,8 |
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;*/ |
return 12 + matrix.length * 5; // return matrix.length * 4 + oppositeMotors.length;*/ |
} |
} |