changed pid values and presets
This commit is contained in:
parent
e0c78e71b4
commit
54ae1193cd
@ -29,7 +29,7 @@ public class RobotMap {
|
|||||||
//Misc
|
//Misc
|
||||||
public static int mainArmPresetCollect = -5;
|
public static int mainArmPresetCollect = -5;
|
||||||
public static int mainArmPresetTraverse = 10;
|
public static int mainArmPresetTraverse = 10;
|
||||||
public static int mainArmPresetLowShot= 30;
|
public static int mainArmPresetLowShot = 18;
|
||||||
public static int mainArmPresetCloseShot = 90;
|
public static int mainArmPresetCloseShot = 90;
|
||||||
public static int mainArmPresetFarShot = 70;
|
public static int mainArmPresetFarShot = 70;
|
||||||
}
|
}
|
||||||
|
@ -6,6 +6,6 @@ public class RoutineDefenseTime extends CommandGroup {
|
|||||||
public RoutineDefenseTime() {
|
public RoutineDefenseTime() {
|
||||||
addSequential(new AutoSetArmStopState(false));
|
addSequential(new AutoSetArmStopState(false));
|
||||||
addSequential(new AutoSetArmPosition(6));
|
addSequential(new AutoSetArmPosition(6));
|
||||||
addSequential(new AutoDriveTime(3, 1));
|
addSequential(new AutoDriveTime(1.5, 0.8));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -6,6 +6,6 @@ public class RoutineDriveTime extends CommandGroup {
|
|||||||
public RoutineDriveTime() {
|
public RoutineDriveTime() {
|
||||||
addSequential(new AutoSetArmStopState(true));
|
addSequential(new AutoSetArmStopState(true));
|
||||||
addSequential(new AutoResetLower(-1));
|
addSequential(new AutoResetLower(-1));
|
||||||
addSequential(new AutoDriveTime(3, 0.75));
|
addSequential(new AutoDriveTime(1.5, 0.75));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -15,7 +15,7 @@ public class MainArm extends PIDSubsystem {
|
|||||||
private double min = RobotMap.zeroDegrees;
|
private double min = RobotMap.zeroDegrees;
|
||||||
private double max = RobotMap.ninetyDegrees;
|
private double max = RobotMap.ninetyDegrees;
|
||||||
public MainArm() {
|
public MainArm() {
|
||||||
super("MainArm", 0.3, 0.0, 0.4);
|
super("MainArm", 0.1, 0.0, 0.002);
|
||||||
getPIDController().setContinuous(false);
|
getPIDController().setContinuous(false);
|
||||||
setSetpoint(70);
|
setSetpoint(70);
|
||||||
enable();
|
enable();
|
||||||
|
Loading…
Reference in New Issue
Block a user