created dedicated project model folder
This commit is contained in:
|
Before Width: | Height: | Size: 115 KiB After Width: | Height: | Size: 115 KiB |
|
Before Width: | Height: | Size: 8.5 KiB After Width: | Height: | Size: 8.5 KiB |
@@ -198,7 +198,7 @@ public class Main
|
|||||||
String drefHDGBug = "sim/cockpit/autopilot/heading_mag";
|
String drefHDGBug = "sim/cockpit/autopilot/heading_mag";
|
||||||
String drefAltitude = "sim/cockpit2/gauges/indicators/altitude_ft_pilot";
|
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()) {
|
if (!file.exists()) {
|
||||||
file.createNewFile();
|
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");
|
System.out.println("In switch");
|
||||||
takeoff = false;
|
takeoff = false;
|
||||||
cruise = true;
|
cruise = true;
|
||||||
switchTrack = 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;
|
Graphics2D g2 = (Graphics2D) g;
|
||||||
|
|
||||||
try {
|
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);
|
Image scaledImage = image.getScaledInstance(xBound, yBound, Image.SCALE_DEFAULT);
|
||||||
|
|
||||||
g.drawImage(scaledImage, 0, 0, getFocusCycleRootAncestor());
|
g.drawImage(scaledImage, 0, 0, getFocusCycleRootAncestor());
|
||||||
@@ -608,14 +612,12 @@ class rudderPosition extends JComponent {
|
|||||||
int textWidth = g.getFontMetrics().stringWidth("Roll Right");
|
int textWidth = g.getFontMetrics().stringWidth("Roll Right");
|
||||||
g.drawString("Yaw Right", xBound - textWidth, yBound/2);
|
g.drawString("Yaw Right", xBound - textWidth, yBound/2);
|
||||||
try {
|
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);
|
Image scaledImage = image.getScaledInstance(xBound, yBound, Image.SCALE_DEFAULT);
|
||||||
g.drawImage(scaledImage, 0, 0, getFocusCycleRootAncestor());
|
g.drawImage(scaledImage, 0, 0, getFocusCycleRootAncestor());
|
||||||
} catch (IOException e){
|
} catch (IOException e) {
|
||||||
System.out.print("Rudder Image Failed");
|
System.out.print("Rudder Image Failed");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setX(float newX) {
|
public void setX(float newX) {
|
||||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user