fixed package mismatch

This commit is contained in:
cs-powell
2024-11-24 15:05:33 -05:00
parent a5cf193a7d
commit 3579efea5d
23 changed files with 135 additions and 79 deletions

View File

@@ -0,0 +1,46 @@
package ModelFiles;
import java.io.IOException;
public class Motor extends Action {
float[] control;
MotorType motorType;
public Motor() {
super(ActionType.MOTOR,1000);
}
public Motor(int delay) {
super(ActionType.MOTOR,delay);
}
public Motor(int delay, String target) {
super(ActionType.MOTOR,delay,target);
}
public void createMotorControl(){ // TODO: Maybe takes in a formatted set of vision inputs?
control = null;
}
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");
}
}
}
}