mirror of
https://github.com/Team4388/RiseOfRidgebotics2020.git
synced 2026-06-09 08:48:01 -06:00
h
This commit is contained in:
@@ -42,6 +42,8 @@ public final class Constants {
|
||||
public static final SupplyCurrentLimitConfiguration SUPPLY_CURRENT_LIMIT_CONFIG =
|
||||
new SupplyCurrentLimitConfiguration(false, 60, 40, 2);
|
||||
public static final int CLOSED_LOOP_TIME_MS = 1; // Higher numbers mean slower control loops
|
||||
public static final double COS_MULTIPLIER_LOW_DRIVE_STRAIGHT = 0.7;
|
||||
public static final double COS_MULTIPLIER_HIGH_DRIVE_STRAIGHT = 0.7;
|
||||
|
||||
/* Drive Train Characteristics */
|
||||
public static final double MOTOR_ROT_PER_WHEEL_ROT_HIGH = 5.13;
|
||||
|
||||
@@ -92,14 +92,14 @@ public class DriveWithJoystickDriveStraight extends CommandBase {
|
||||
|
||||
private void runDriveWithInput(double move, double steer) {
|
||||
|
||||
double cosMultiplier = 0.7;
|
||||
double cosMultiplier;
|
||||
double steerOutput = 0;
|
||||
double deadzone = .1;
|
||||
|
||||
if (m_pneumatics.m_isSpeedShiftHigh) {
|
||||
cosMultiplier = 0.7;
|
||||
cosMultiplier = DriveConstants.COS_MULTIPLIER_HIGH_DRIVE_STRAIGHT;
|
||||
} else {
|
||||
cosMultiplier = 0.7;
|
||||
cosMultiplier = DriveConstants.COS_MULTIPLIER_LOW_DRIVE_STRAIGHT;
|
||||
}
|
||||
|
||||
/* Curves the steer output to be similarily gradual */
|
||||
|
||||
Reference in New Issue
Block a user