restructuring for project (Backlog 3)

This commit is contained in:
cs-powell
2024-11-24 13:32:21 -05:00
parent d2156ae9bc
commit e574ca3215
38 changed files with 680 additions and 179 deletions

View File

@@ -0,0 +1,39 @@
package ProjectModels.CognitiveModel;
import java.io.IOException;
public class Motor extends Action {
float[] control;
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 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");
}
}
}
}