documents reformatted
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
package ModelFiles;
|
||||
import java.io.IOException;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
public class Motor extends Action {
|
||||
|
||||
@@ -8,41 +8,37 @@ public class Motor extends Action {
|
||||
MotorType motorType;
|
||||
|
||||
public Motor(MotorType motorType) {
|
||||
super(ActionType.MOTOR,1000);
|
||||
super(ActionType.MOTOR, 1000);
|
||||
this.motorType = motorType;
|
||||
}
|
||||
|
||||
// public Motor(int delay) {
|
||||
// super(ActionType.MOTOR,delay);
|
||||
// }
|
||||
// public Motor(int delay) {
|
||||
// super(ActionType.MOTOR,delay);
|
||||
// }
|
||||
|
||||
public Motor(MotorType motorType, int delay, String target) {
|
||||
super(ActionType.MOTOR, delay, target);
|
||||
this.motorType = motorType;
|
||||
}
|
||||
|
||||
public Motor(MotorType motorType,int delay, String target) {
|
||||
super(ActionType.MOTOR,delay,target);
|
||||
this.motorType = motorType;
|
||||
}
|
||||
public void createMotorControl() { // TODO: Maybe takes in a formatted set of vision inputs?
|
||||
control = null;
|
||||
}
|
||||
|
||||
public MotorType getMotorType() {
|
||||
return motorType;
|
||||
}
|
||||
|
||||
public void createMotorControl(){ // TODO: Maybe takes in a formatted set of vision inputs?
|
||||
control = null;
|
||||
}
|
||||
public void sendMotorControl(XPlaneConnect xpc) {
|
||||
|
||||
|
||||
public MotorType getMotorType(){
|
||||
return motorType;
|
||||
}
|
||||
|
||||
public void sendMotorControl(XPlaneConnect xpc) {
|
||||
|
||||
if(control != null) {
|
||||
try {
|
||||
xpc.sendCTRL(control);
|
||||
} catch (IOException e) {
|
||||
// TODO Auto-generated catch block
|
||||
System.out.println("Control failed to send");
|
||||
if (control != null) {
|
||||
try {
|
||||
xpc.sendCTRL(control);
|
||||
} catch (IOException e) {
|
||||
// TODO Auto-generated catch block
|
||||
System.out.println("Control failed to send");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user