Package xbot.common.logic
Class StallDetector
java.lang.Object
xbot.common.logic.StallDetector
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enum -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetIsStalled(double current, double voltagePercent, double velocity) voidsetAllParameters(double currentTimeWindow, double currentLimit, double noMotionTimeWindow, double tryingHardVoltagePercentThreshold, double littleMotionThreshold, double stallCoolDown) boolean
-
Constructor Details
-
StallDetector
@AssistedInject public StallDetector(PropertyFactory pf, @Assisted("owningSystemPrefix") String owningSystemPrefix)
-
-
Method Details
-
setAllParameters
public void setAllParameters(double currentTimeWindow, double currentLimit, double noMotionTimeWindow, double tryingHardVoltagePercentThreshold, double littleMotionThreshold, double stallCoolDown) -
getIsStalled
public StallDetector.StallState getIsStalled(double current, double voltagePercent, double velocity) -
wasStalledRecently
public boolean wasStalledRecently()
-