|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Thread
jaron.autopilot.FlightGearServoController
public class FlightGearServoController
The FlightGearServoController
class provides access to the
controls (e.g. aileron, elevator, rudder, throttle) of an airplane in the
FlightGear flight simulator.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.lang.Thread |
---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
Field Summary | |
---|---|
static java.lang.String |
DEFAULT_IP
The default IP address that is used for the outgoing connection. |
static int |
DEFAULT_PORT
The default port that is used for the incoming connection. |
static float |
DEFAULT_UPDATE_FREQUENCY
The default update frequency of the FlightGearServoController
is set to 10.0f Hz. |
Fields inherited from class java.lang.Thread |
---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
---|---|
FlightGearServoController()
Creates a new FlightGearServoController and starts a
Thread that tries to connect to FlightGear. |
|
FlightGearServoController(java.lang.String ip)
Creates a new FlightGearServoController and starts a
Thread that tries to connect to FlightGear. |
|
FlightGearServoController(java.lang.String ip,
int port)
Creates a new FlightGearServoController and starts a
Thread that tries to connect to FlightGear. |
Method Summary | |
---|---|
Signal |
getAileron()
Returns the aileron signal. |
Signal |
getElevator()
Returns the elevator signal. |
Signal |
getRudder()
Returns the rudder signal. |
Signal |
getThrottle()
Returns the aileron signal. |
void |
run()
|
void |
setUpdateFrequency(float updateFrequency)
Sets the update frequency for the FlightGearServoController . |
void |
shutDown()
Disconnects from FlightGear. |
Methods inherited from class java.lang.Thread |
---|
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final float DEFAULT_UPDATE_FREQUENCY
FlightGearServoController
is set to 10.0f Hz.
public static final int DEFAULT_PORT
public static final java.lang.String DEFAULT_IP
Constructor Detail |
---|
public FlightGearServoController(java.lang.String ip, int port)
FlightGearServoController
and starts a
Thread
that tries to connect to FlightGear.
ip
- the IP address of the FlightGear applicationport
- the port of the FlightGear applicationpublic FlightGearServoController(java.lang.String ip)
FlightGearServoController
and starts a
Thread
that tries to connect to FlightGear. It tries to connect
to the default port 5556.
ip
- the IP address of the FlightGear applicationpublic FlightGearServoController()
FlightGearServoController
and starts a
Thread
that tries to connect to FlightGear. It tries to
connect to the default IP address 127.0.0.1 and the default port
5556.
Method Detail |
---|
public Signal getAileron()
public Signal getElevator()
public Signal getRudder()
public Signal getThrottle()
public void setUpdateFrequency(float updateFrequency)
FlightGearServoController
.
The default update frequency is set to 10 Hz.
updateFrequency
- the new frequency in Hzpublic void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
public void shutDown()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |