mirror of
https://github.com/Team4388/2022NoWayHome.git
synced 2026-06-09 08:48:07 -06:00
hard limit change
This commit is contained in:
@@ -289,7 +289,7 @@ public final class Constants {
|
|||||||
public static final Gains SHOOTER_ANGLE_GAINS = new Gains(0.1, 0.0, 0.0, 0.0, 0, 0.7);
|
public static final Gains SHOOTER_ANGLE_GAINS = new Gains(0.1, 0.0, 0.0, 0.0, 0, 0.7);
|
||||||
|
|
||||||
public static final double TURRET_FORWARD_HARD_LIMIT = 18.429;
|
public static final double TURRET_FORWARD_HARD_LIMIT = 18.429;
|
||||||
public static final double TURRET_REVERSE_HARD_LIMIT = -106.454;
|
public static final double TURRET_REVERSE_HARD_LIMIT = -117.8;
|
||||||
|
|
||||||
public static final double TURRET_FORWARD_SOFT_LIMIT = TURRET_FORWARD_HARD_LIMIT - 5;
|
public static final double TURRET_FORWARD_SOFT_LIMIT = TURRET_FORWARD_HARD_LIMIT - 5;
|
||||||
public static final double TURRET_REVERSE_SOFT_LIMIT = TURRET_REVERSE_HARD_LIMIT + 2;
|
public static final double TURRET_REVERSE_SOFT_LIMIT = TURRET_REVERSE_HARD_LIMIT + 2;
|
||||||
|
|||||||
@@ -192,6 +192,7 @@ public class RobotContainer {
|
|||||||
getOperatorController().getLeftTriggerAxis(),
|
getOperatorController().getLeftTriggerAxis(),
|
||||||
getOperatorController().getRightTriggerAxis()),
|
getOperatorController().getRightTriggerAxis()),
|
||||||
m_robotIntake).withName("Intake runWithTriggers defaultCommand"));
|
m_robotIntake).withName("Intake runWithTriggers defaultCommand"));
|
||||||
|
m_robotBoomBoom.setDefaultCommand(new RunCommand(() -> m_robotBoomBoom.runDrumShooter(0.35), m_robotBoomBoom));
|
||||||
|
|
||||||
// m_robotStorage.setDefaultCommand(
|
// m_robotStorage.setDefaultCommand(
|
||||||
// new ManageStorage(m_robotStorage,
|
// new ManageStorage(m_robotStorage,
|
||||||
|
|||||||
@@ -10,7 +10,11 @@ public class AimToCenterTest {
|
|||||||
|
|
||||||
private static final double DELTA = 1e-15;
|
private static final double DELTA = 1e-15;
|
||||||
|
|
||||||
//@Test
|
/**
|
||||||
|
* Unit tests the isDeadzone function in AimToCenter.java
|
||||||
|
* @author Ryan Manley
|
||||||
|
* @link www.hoohle.com
|
||||||
|
*/
|
||||||
public void givenAngle_whenTestIfDeadzone_thenReturnIfInDeadzone() {
|
public void givenAngle_whenTestIfDeadzone_thenReturnIfInDeadzone() {
|
||||||
boolean output;
|
boolean output;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user