Constants.DriveTrain.PID_ERROR);
double driveD = SmartDashboard.getNumber(Constants.DriveTrain.DRIVE_D_Val,
Constants.DriveTrain.PID_ERROR);
+
double gyroP = SmartDashboard.getNumber(Constants.DriveTrain.GYRO_P_Val,
Constants.DriveTrain.PID_ERROR);
double gyroI = SmartDashboard.getNumber(Constants.DriveTrain.GYRO_I_Val,
DriveTrain.getDriveTrain().getDriveController().setConstants(driveP, driveI,
driveD);
- DriveTrain.getDriveTrain().getGyroController().setConstants(driveP, driveI,
- driveD);
+ DriveTrain.getDriveTrain().getGyroController().setConstants(gyroP, gyroI,
+ gyroD);
// new DriveDistance(SETPOINT, SPEED).start();
- double Setpoint = SmartDashboard.getNumber(
- Constants.DriveTrain.DRIVE_TARGET_DIST, Constants.DriveTrain.PID_ERROR);
- double Speed = SmartDashboard.getNumber(
- Constants.DriveTrain.DRIVE_MOTOR_VAL, Constants.DriveTrain.PID_ERROR);
+ // new TurnForAngle(0, Direction.FORWARD, 5).start();
}
@Override