Constructor and Description |
---|
UniversalEffector(java.lang.String name,
HingeEffector effector1,
HingeEffector effector2)
Instantiates a new UniversalEffector and initializes all fields to zero
|
Modifier and Type | Method and Description |
---|---|
float |
getDesiredAngle1() |
float |
getDesiredAngle2() |
HingeEffector |
getEffector1() |
HingeEffector |
getEffector2() |
float |
getSpeed1() |
float |
getSpeed2() |
void |
resetAfterAction()
Called to allow an effector to reset its state after it has been read for
action.
|
void |
setEffectorValues(float maxGain,
float... values)
Set axis movement speeds
|
public UniversalEffector(java.lang.String name, HingeEffector effector1, HingeEffector effector2)
name
- Effector namepublic void setEffectorValues(float maxGain, float... values)
ax1
- Axis 1 speedax2
- Axis 2 speedpublic void resetAfterAction()
IEffector
resetAfterAction
in interface IEffector
resetAfterAction
in class Effector
public float getSpeed1()
public float getSpeed2()
public float getDesiredAngle1()
public float getDesiredAngle2()
public HingeEffector getEffector1()
public HingeEffector getEffector2()