Package xbot.common.logic
Class StallDetector
java.lang.Object
xbot.common.logic.StallDetector
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static enum
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetIsStalled
(double current, double voltagePercent, double velocity) void
setAllParameters
(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()
-