Package me.wobblyyyy.pathfinder.config
Class PathfinderOptions
java.lang.Object
me.wobblyyyy.pathfinder.config.PathfinderOptions
public class PathfinderOptions
extends java.lang.Object
Abstraction of the
PathfinderConfig class designed to make life a
little bit easier and those parameters a little bit less grouped together.- Since:
- 0.3.0
- Author:
- Colin Robertson
-
Field Summary
Fields Modifier and Type Field Description private PathfinderConfigconfig -
Constructor Summary
Constructors Constructor Description PathfinderOptions()Create a new PathfinderOptions instance. -
Method Summary
Modifier and Type Method Description PathfinderConfigbuild()voidsetDrive(Drive drive)voidsetFieldX(double x)voidsetFieldY(double y)voidsetFollowerType(Followers follower)voidsetGapX(double x)voidsetGapY(double y)voidsetMap(Map map)voidsetOdometry(Odometry odometry)voidsetRobotProfile(RobotProfile profile)voidsetRobotX(double x)voidsetRobotY(double y)voidsetSpeed(double speed)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
config
-
-
Constructor Details
-
PathfinderOptions
public PathfinderOptions()Create a new PathfinderOptions instance.All of the options are configured using the provided methods in this class, NOT right here. You can put these methods in an anonymous class initializer - very epic!
-
-
Method Details
-
setRobotX
public void setRobotX(double x) -
setRobotY
public void setRobotY(double y) -
setFieldX
public void setFieldX(double x) -
setFieldY
public void setFieldY(double y) -
setMap
-
setRobotProfile
-
setOdometry
-
setDrive
-
setFollowerType
-
setSpeed
public void setSpeed(double speed) -
setGapX
public void setGapX(double x) -
setGapY
public void setGapY(double y) -
build
-