|
jAER project on SourceForge | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PanTiltInterface
Interface to a PanTilt controller.
Method Summary | |
---|---|
void |
acquire()
A method can set this flag to tell other objects that the servo is "owned" |
float |
getJitterAmplitude()
Returns the jitter amplitude |
float |
getJitterFreqHz()
Returns the jitter frequency in Hz |
float[] |
getPanTiltValues()
Returns the last value set, even if the servo interface is not functional. |
ServoInterface |
getServoInterface()
|
boolean |
isLockOwned()
A method can check this to see if it can use the servo |
void |
release()
Releases the "acquired" flag |
void |
setJitterAmplitude(float jitterAmplitude)
Sets the amplitude (1/2 of peak to peak) of circular jitter of pan tilt during jittering |
void |
setJitterFreqHz(float jitterFreqHz)
The frequency of the jitter |
void |
setPanTiltValues(float pan,
float tilt)
Simultaneously sets pan and tilt values. |
void |
setServoInterface(ServoInterface servo)
Sets the ServoInterface |
void |
startJitter()
Starts the servo jittering around its set position at a frequency of 50 Hz with an amplitude of 0.02f |
void |
stopJitter()
Stops the jittering |
Method Detail |
---|
void acquire()
float getJitterAmplitude()
float getJitterFreqHz()
float[] getPanTiltValues()
boolean isLockOwned()
void release()
void setJitterAmplitude(float jitterAmplitude)
jitterAmplitude
- the amplitudevoid setJitterFreqHz(float jitterFreqHz)
jitterFreqHz
- in Hzvoid setPanTiltValues(float pan, float tilt) throws HardwareInterfaceException
pan
- the pan value from 0 to 1 inclusive, 0.5f is the center position. 1 is full right.tilt
- the tilt value from 0 to 1. 1 is full down.
HardwareInterfaceException
void startJitter()
setJitterAmplitude(float)
void stopJitter()
void setServoInterface(ServoInterface servo)
servo
- the interfaceServoInterface getServoInterface()
|
jAER project on SourceForge | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |