mirror of
https://github.com/trc492/FtcTemplate.git
synced 2025-07-01 21:11:23 -07:00
Syncd latest fixes in PurePursuitDrive.
Updated trclib, ftclib.
This commit is contained in:
Submodule TeamCode/src/main/java/ftclib updated: b6050bf677...2114117db4
@ -320,7 +320,9 @@ public class FtcTest extends FtcTeleOp
|
||||
// Set the current position as the absolute field origin so the path can be an absolute path.
|
||||
TrcPose2D startPose = new TrcPose2D(0.0, 0.0, 0.0);
|
||||
robot.robotDrive.driveBase.setFieldPosition(startPose);
|
||||
robot.robotDrive.purePursuitDrive.start(startPose, false, new TrcPose2D(0.0, 48.0, 90.0));
|
||||
robot.robotDrive.purePursuitDrive.start(
|
||||
false, robot.robotInfo.profiledMaxVelocity, robot.robotInfo.profiledMaxAcceleration,
|
||||
robot.robotInfo.profiledMaxDeceleration, new TrcPose2D(0.0, 48.0, 90.0));
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
@ -101,8 +101,8 @@ public class RobotBase
|
||||
profiledMaxAcceleration = robotMaxAcceleration;
|
||||
profiledMaxTurnRate = robotMaxTurnRate;
|
||||
// DriveBase PID Parameters
|
||||
drivePidTolerance = 1.0;
|
||||
turnPidTolerance = 1.0;
|
||||
drivePidTolerance = 2.0;
|
||||
turnPidTolerance = 2.0;
|
||||
yDrivePidCoeffs = new TrcPidController.PidCoefficients(0.06, 0.0, 0.002, 0.0, 0.0);
|
||||
yDrivePidPowerLimit = 1.0;
|
||||
yDriveMaxPidRampRate = null;
|
||||
|
Submodule TeamCode/src/main/java/trclib updated: dbb9ebd708...080603b0b3
Reference in New Issue
Block a user