created dedicated project model folder

This commit is contained in:
cs-powell
2024-10-13 12:30:35 -04:00
parent 25da277c45
commit 1a974e7bb2
13 changed files with 4049 additions and 7 deletions

View File

Before

Width:  |  Height:  |  Size: 115 KiB

After

Width:  |  Height:  |  Size: 115 KiB

View File

Before

Width:  |  Height:  |  Size: 8.5 KiB

After

Width:  |  Height:  |  Size: 8.5 KiB

View File

@@ -198,7 +198,7 @@ public class Main
String drefHDGBug = "sim/cockpit/autopilot/heading_mag";
String drefAltitude = "sim/cockpit2/gauges/indicators/altitude_ft_pilot";
File file = new File("/Users/flyingtopher/Desktop/Code Citadel/School/2. Research/Fork Clone/XPlaneConnectCSP/Java/Examples/Model-1/src/output");
File file = new File("/Users/flyingtopher/Desktop/Code Citadel/School/2. Research/Fork Clone/XPlaneConnectCSP/Java/Project Models/Model-1/src/output");
if (!file.exists()) {
file.createNewFile();
}
@@ -303,11 +303,15 @@ public class Main
if(valueAltitude[0] > 1000f && !switchTrack && takeoff == true){
if(valueAltitude[0] > 1000f && !switchTrack && takeoff == true) {
System.out.println("In switch");
takeoff = false;
cruise = true;
switchTrack = true;
} else if (valueAltitude[0] < 1000f && switchTrack && takeoff == true) {
takeoff = true;
cruise = false;
switchTrack = false;
}
@@ -536,7 +540,7 @@ class yokePosition extends JComponent {
Graphics2D g2 = (Graphics2D) g;
try {
final BufferedImage image = ImageIO.read(new File("/Users/flyingtopher/Desktop/Code Citadel/School/2. Research/Fork Clone/XPlaneConnectCSP/Java/Examples/Model-1/content/Yoke Symbol.png"));
final BufferedImage image = ImageIO.read(new File("/Users/flyingtopher/Desktop/Code Citadel/School/2. Research/Fork Clone/XPlaneConnectCSP/Java/Project Models/Model-1/content/Yoke Symbol.png"));
Image scaledImage = image.getScaledInstance(xBound, yBound, Image.SCALE_DEFAULT);
g.drawImage(scaledImage, 0, 0, getFocusCycleRootAncestor());
@@ -608,14 +612,12 @@ class rudderPosition extends JComponent {
int textWidth = g.getFontMetrics().stringWidth("Roll Right");
g.drawString("Yaw Right", xBound - textWidth, yBound/2);
try {
final BufferedImage image = ImageIO.read(new File("/Users/flyingtopher/Desktop/Code Citadel/School/2. Research/Fork Clone/XPlaneConnectCSP/Java/Examples/Model-1/content/Rudder Pedals.png"));
final BufferedImage image = ImageIO.read(new File("/Users/flyingtopher/Desktop/Code Citadel/School/2. Research/Fork Clone/XPlaneConnectCSP/Java/Project Models/Model-1/content/Rudder Pedals.png"));
Image scaledImage = image.getScaledInstance(xBound, yBound, Image.SCALE_DEFAULT);
g.drawImage(scaledImage, 0, 0, getFocusCycleRootAncestor());
} catch (IOException e){
} catch (IOException e) {
System.out.print("Rudder Image Failed");
}
}
public void setX(float newX) {