Closed NikhilSuresh24 closed 7 years ago
I would suggest using limitValue from Util.Range for consistency (from https://github.com/RoboticsTeam4904/standard/blob/master/Util.java) @c0d3rman
Agreed, good catch @leijurv
@NikhilSuresh24 (@c0d3rman) maybe consider adding a constructor that takes in an existing Util.Range in addition to that one?
@leijurv Made the changes you requested
Noticed something while taking another glance, I'm not sure if this is the convention, but you can do import org.usfirst.frc4904.standard.Util.Range;
and then refer to the class as just Range
and not Util.Range
.
Now it feels like importing import org.usfirst.frc4904;
and using standard.Util.Range
everywhere (even though you can't actually do that lol)
Since Range
is a class within Util
I think this is proper usage
"proper" says who =P
Says me
GOTEM
@leijurv takes the L
ill take your L
Added a CapSpeedModifier that implements speedmodifier but sets speeds according to an upper and lower bound given to it