Package xbot.common.logic
Class VelocityThrottleModule
java.lang.Object
xbot.common.logic.VelocityThrottleModule
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
-
Constructor Summary
ConstructorDescriptionVelocityThrottleModule
(String name, PIDManager velocityPid, PropertyFactory propMan) -
Method Summary
Modifier and TypeMethodDescriptiondouble
calculateThrottle
(double goalSpeed, double currentSpeed) void
reset()
void
setThrottleLimits
(double lowerLimit, double upperLimit)
-
Constructor Details
-
VelocityThrottleModule
@AssistedInject public VelocityThrottleModule(@Assisted("name") String name, @Assisted("velocityPid") PIDManager velocityPid, PropertyFactory propMan)
-
-
Method Details
-
setThrottleLimits
public void setThrottleLimits(double lowerLimit, double upperLimit) -
reset
public void reset() -
calculateThrottle
public double calculateThrottle(double goalSpeed, double currentSpeed)
-