goToPoint()
This function can make the robot go to a certain point on the x, y plane and can snap to a certain heading using a PID Controller.
Last updated
This function can make the robot go to a certain point on the x, y plane and can snap to a certain heading using a PID Controller.
Last updated
//Method 1:
Robot.goToPoint(new Pose2d(30.0, 30.0, Math.PI/2), 1.0, 1.0);
//Method 2:
Robot.goToPoint(30.0, 30.0, Math.PI/2, 1.0, 1.0);
//Method 3:
Robot.goToPoint(new Pose2d(30.0, 30.0, Math.PI/2), new Pose2d(Robot.getPose().x, RObot.getPose().y, Robot.getHeading()), 1.0, 1.0);
//Method 4:
Robot.goToPoint(30.0, 30.0, Math.PI/2, Robot.getPose().x, Robot.getPose().y, Robot.getHeading(), 1.0, 1.0);