Updated java example
This commit is contained in:
@@ -71,7 +71,7 @@ public class Main
|
|||||||
try { Thread.sleep(10000); } catch (InterruptedException ex) {}
|
try { Thread.sleep(10000); } catch (InterruptedException ex) {}
|
||||||
|
|
||||||
System.out.println("Stowing landing gear");
|
System.out.println("Stowing landing gear");
|
||||||
xpc.sendDREF("sim/cockpit/switches/gear_handle_status", 1);
|
xpc.setDREF("sim/cockpit/switches/gear_handle_status", 1);
|
||||||
|
|
||||||
//Let sim run for 10 seconds
|
//Let sim run for 10 seconds
|
||||||
try { Thread.sleep(10000); } catch (InterruptedException ex) {}
|
try { Thread.sleep(10000); } catch (InterruptedException ex) {}
|
||||||
@@ -82,7 +82,7 @@ public class Main
|
|||||||
"sim/cockpit/switches/gear_handle_status",
|
"sim/cockpit/switches/gear_handle_status",
|
||||||
"sim/operation/override/override_planepath"
|
"sim/operation/override/override_planepath"
|
||||||
};
|
};
|
||||||
float[][] results = xpc.requestDREFs(drefs);
|
float[][] results = xpc.getDREFs(drefs);
|
||||||
|
|
||||||
if(results[0][0] == 1)
|
if(results[0][0] == 1)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user