mirror of
https://github.com/Team4388/2019-Hit-or-Miss.git
synced 2026-06-09 08:38:06 -06:00
Added to initial angle change
This commit is contained in:
@@ -50,8 +50,6 @@ public class Robot extends IterativeRobot
|
||||
private Command RLautonomousCommand;
|
||||
private Command LRautonomousCommand;
|
||||
private Command LLautonomousCommand;
|
||||
|
||||
public static final double OriginalDegreesWrist = arm.ENCODER_TICKS_TO_DEGREES;
|
||||
|
||||
public void robotInit()
|
||||
{
|
||||
|
||||
@@ -42,6 +42,8 @@ public class Wrist extends Subsystem
|
||||
//Encoder ticks to inches for encoders
|
||||
public static final double ENCODER_TICKS_TO_INCHES = Constants.kArmEncoderTicksPerDegree;
|
||||
public static final double ENCODER_TICKS_TO_DEGREES = Constants.kWristEncoderTicksPerDegree * Math.PI;
|
||||
|
||||
public double WRIST_ANGLE_DEGREES = 0;
|
||||
|
||||
// PID controller and params
|
||||
private MPTalonPIDController mpController;
|
||||
@@ -94,6 +96,8 @@ public class Wrist extends Subsystem
|
||||
{
|
||||
double armAngleToHoriz = 70;
|
||||
double initAngle = ENCODER_TICKS_TO_DEGREES - armAngleToHoriz;
|
||||
|
||||
WRIST_ANGLE_DEGREES = initAngle;
|
||||
}
|
||||
|
||||
//Method for setting the control mode for the wrist
|
||||
|
||||
Reference in New Issue
Block a user