Renamed "setDREF" function back to "sendDREF".
This commit is contained in:
@@ -71,7 +71,7 @@ public class Main
|
||||
try { Thread.sleep(10000); } catch (InterruptedException ex) {}
|
||||
|
||||
System.out.println("Stowing landing gear");
|
||||
xpc.setDREF("sim/cockpit/switches/gear_handle_status", 1);
|
||||
xpc.sendDREF("sim/cockpit/switches/gear_handle_status", 1);
|
||||
|
||||
//Let sim run for 10 seconds
|
||||
try { Thread.sleep(10000); } catch (InterruptedException ex) {}
|
||||
|
||||
@@ -306,9 +306,9 @@ public class XPlaneConnect implements AutoCloseable
|
||||
throw new IOException("No response received.");
|
||||
}
|
||||
|
||||
public void setDREF(String dref, float value) throws IOException
|
||||
public void sendDREF(String dref, float value) throws IOException
|
||||
{
|
||||
setDREF(dref, new float[] {value});
|
||||
sendDREF(dref, new float[] {value});
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -318,7 +318,7 @@ public class XPlaneConnect implements AutoCloseable
|
||||
* @param value An array of floating point values whose structure depends on the dref specified.
|
||||
* @throws IOException If the command cannot be sent.
|
||||
*/
|
||||
public void setDREF(String dref, float[] value) throws IOException
|
||||
public void sendDREF(String dref, float[] value) throws IOException
|
||||
{
|
||||
//Preconditions
|
||||
if(dref == null)
|
||||
|
||||
Reference in New Issue
Block a user