Class WsMotionProfileControl
java.lang.Object
org.wildstang.framework.io.inputs.Input
org.wildstang.framework.io.inputs.DigitalInput
org.wildstang.hardware.roborio.inputs.WsMotionProfileControl
Reads a motion profile.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns true if the motion profile is enabled.booleanReturns true if the kinematics is set to reset.voidMotion profile does not read any data.protected booleanMotion 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, setValueMethods inherited from class org.wildstang.framework.io.inputs.Input
addInputListener, disable, enable, getInputListeners, getName, hasValueChanged, isEnabled, notifyListeners, removeAllListeners, removeInputListener, setValueChanged, update
-
Constructor Details
-
WsMotionProfileControl
Constructs the motion profile.- Parameters:
p_name- Descriptive name ofthe motion profile.
-
-
Method Details
-
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.
-