mirror of
https://github.com/Team4388/2019-Hit-or-Miss.git
synced 2026-06-09 00:28:05 -06:00
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:
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user