Class WsMotionProfileControl
- java.lang.Object
-
- org.wildstang.framework.io.inputs.Input
-
- org.wildstang.framework.io.inputs.DigitalInput
-
- org.wildstang.hardware.roborio.inputs.WsMotionProfileControl
-
public class WsMotionProfileControl extends DigitalInput
Reads a motion profile.
-
-
Constructor Summary
Constructors Constructor Description WsMotionProfileControl(java.lang.String p_name)Constructs the motion profile.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleangetProfileEnabled()Returns true if the motion profile is enabled.booleangetResetKinematics()Returns true if the kinematics is set to reset.voidreadDataFromInput()Motion profile does not read any data.protected booleanreadRawValue()Motion profile does not return raw values.voidsetProfileEnabled(boolean p_newValue)Enables the motion profile.voidsetResetKinematics(boolean p_newValue)Sets to kinematics to reset.-
Methods inherited from class org.wildstang.framework.io.inputs.DigitalInput
getValue, setValue
-
Methods inherited from class org.wildstang.framework.io.inputs.Input
addInputListener, disable, enable, getInputListeners, getName, hasValueChanged, isEnabled, notifyListeners, removeAllListeners, removeInputListener, setValueChanged, update
-
-
-
-
Method Detail
-
readRawValue
protected boolean readRawValue()
Motion profile does not return raw values.- Specified by:
readRawValuein classDigitalInput- Returns:
- False.
-
readDataFromInput
public void readDataFromInput()
Motion profile does not read any data.- Overrides:
readDataFromInputin classDigitalInput
-
setProfileEnabled
public void setProfileEnabled(boolean p_newValue)
Enables the motion profile.- Parameters:
p_newValue- True to enable profile.
-
setResetKinematics
public void setResetKinematics(boolean p_newValue)
Sets to kinematics to reset.- Parameters:
p_newValue- True if kinematics should reset.
-
getProfileEnabled
public boolean getProfileEnabled()
Returns true if the motion profile is enabled.- Returns:
- True if the motion profile is enabled.
-
getResetKinematics
public boolean getResetKinematics()
Returns true if the kinematics is set to reset.- Returns:
- True if the kinematics is set to reset.
-
-