Create DriveSetAngle.java

Has an error:
The method turnToAngle(double, double, double, MPSoftwarePIDController.MPSoftwareTurnType) is undefined for the type DriveSetAngleJava(67108964)
This commit is contained in:
nathanrsxtn
2019-03-07 16:49:55 -07:00
parent 96d59feb5d
commit 63f2ac14bd
@@ -0,0 +1,24 @@
package org.usfirst.frc4388.robot.commands;
import org.usfirst.frc4388.robot.Robot;
import edu.wpi.first.wpilibj.command.Command;
import org.usfirst.frc4388.utility.MPSoftwarePIDController.MPSoftwareTurnType;
public class DriveSetAngle extends Command {
private double targetAngle;
private double maxError;
private double maxPrevError;
private MPSoftwareTurnType turnType;
// Called just before this Command runs the first time
protected void initialize() {
turnToAngle(targetAngle, maxError, maxPrevError, turnType);
}
// Make this return true when this Command no longer needs to run execute()
protected boolean isFinished() {
return true;
}
}