Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
83 commits
Select commit Hold shift + click to select a range
5917ccb
kinda working new joystick
Jm0rr Mar 21, 2023
ae5779a
instantiate nathangain to bind joystick commands
Jm0rr Mar 24, 2023
c49dcb9
odometry update is just trolling
roboticsteam4904-2 Mar 31, 2023
2ccb127
added buttons to this branch
aze12345 Mar 31, 2023
7f2c56f
oops
aze12345 Mar 31, 2023
75ecd24
Basic driver changes
roboticsteam4904-2 Mar 31, 2023
1013524
Merge branch 'westcoastdrive-splines-rippingseenoevil' of https://git…
roboticsteam4904-2 Mar 31, 2023
e2b880e
turn correction
Exr0n Mar 31, 2023
4db71b2
Merge branch 'westcoastdrive-splines-rippingseenoevil' of github.com:…
Exr0n Mar 31, 2023
4b3687a
Revert "oops"
roboticsteam4904-2 Mar 31, 2023
3fb4c2f
Tuned driver gain
roboticsteam4904-2 Mar 31, 2023
e23b303
Revert "Revert "oops""
roboticsteam4904-2 Mar 31, 2023
b26aa7e
Commiting a minor traffic law violation
aze12345 Mar 31, 2023
3709c49
Merge branch 'westcoastdrive-splines-rippingseenoevil' of https://git…
roboticsteam4904-2 Mar 31, 2023
ead49eb
Trolling
aze12345 Mar 31, 2023
fd1c528
unsafe motors + actually compiles
aze12345 Apr 2, 2023
10898f0
Merge branch 'westcoastdrive-splines-rippingseenoevil' of github.com:…
Exr0n Apr 2, 2023
31d423e
revert removing seenoevil c49dcb9
Exr0n Apr 2, 2023
d300dad
Triplet stuff etc
zbuster05 Apr 2, 2023
2af578c
Merge branch 'westcoastdrive-splines-rippingseenoevil' of https://git…
roboticsteam4904-2 Apr 2, 2023
1333dd4
Uncommited
roboticsteam4904-2 Apr 2, 2023
325556a
undo motor saftey (revert fd1c528)
Exr0n Apr 2, 2023
0eed6c8
Merge branch 'westcoastdrive-splines-rippingseenoevil' of github.com:…
Exr0n Apr 2, 2023
0b0a196
Added angle cones and shoot cones command
roboticsteam4904-2 Apr 2, 2023
594aed1
remove motorsaftey disable
Exr0n Apr 2, 2023
7647075
Merge branch 'westcoastdrive-splines-rippingseenoevil' of github.com:…
Exr0n Apr 2, 2023
cc66125
Fixed kerchunk to use the technical term
zbuster05 Apr 2, 2023
a67baef
added some stuff
TheShishKabob Apr 2, 2023
a35d472
add 2shoot no balance auto
Jm0rr Apr 2, 2023
1cffe30
ok gaming
zbuster05 Apr 2, 2023
abf8afd
fixed one thing, time on rotation needs tuning
TheShishKabob Apr 2, 2023
cd1a4f8
Merge branch 'westcoastdrive-splines-rippingseenoevil' of https://git…
roboticsteam4904-2 Apr 2, 2023
2e3c299
Merge branch 'westcoastdrive-splines-rippingseenoevil' of https://git…
roboticsteam4904-2 Apr 2, 2023
cc6d2f0
finished shoot2auto
TheShishKabob Apr 2, 2023
6e9748a
added 4th mode for shelfcones
TheShishKabob Apr 2, 2023
c24f3e8
UT: hold arm pose
Exr0n Apr 2, 2023
f0e58d7
Constants tuning
zbuster05 Apr 2, 2023
90f6999
Merge branch 'westcoastdrive-splines-rippingseenoevil' of https://git…
roboticsteam4904-2 Apr 2, 2023
2568941
add linear error correction to arm subsystems
aze12345 Apr 2, 2023
c47c72c
merge or something?
roboticsteam4904-2 Apr 2, 2023
dd5d294
Merge branch 'westcoastdrive-splines-rippingseenoevil' of https://git…
roboticsteam4904-2 Apr 2, 2023
2b760f4
baseding armSubsystem
Exr0n Apr 2, 2023
d7152e8
Merge branch 'westcoastdrive-splines-rippingseenoevil' of github.com:…
Exr0n Apr 2, 2023
f3ad68c
Lies to feedforward
aze12345 Apr 2, 2023
11f1046
UT: onArrivalCommandDealer
Exr0n Apr 3, 2023
880687f
Minor tuning
roboticsteam4904-2 Apr 3, 2023
9908197
Merge branch 'westcoastdrive-splines-rippingseenoevil' of https://git…
roboticsteam4904-2 Apr 3, 2023
ae87701
UT, partial: trigger command factory, changes...
Exr0n Apr 3, 2023
ed05aa4
Killed slacky encoder
roboticsteam4904-2 Apr 3, 2023
a20f3dd
Merge branch 'westcoastdrive-splines-rippingseenoevil' of https://git…
roboticsteam4904-2 Apr 3, 2023
5163c27
theoretically only lying to the feed forward now
roboticsteam4904-2 Apr 3, 2023
bc6b409
UT: redo arm subsystems with onArrivalCommands
Exr0n Apr 3, 2023
e8de5e9
Funny
roboticsteam4904-2 Apr 3, 2023
1bb8508
Merge branch 'westcoastdrive-splines-rippingseenoevil' of https://git…
roboticsteam4904-2 Apr 3, 2023
fbba71b
not sure why secondary holdArmPose is being scheduled prematurely
Exr0n Apr 3, 2023
1d509cd
theoretically exponential now
zbuster05 Apr 3, 2023
531c211
use new TriggerCommandFactory; name commands
roboticsteam4904-2 Apr 3, 2023
7f08301
tune arm pivot trapezoidal and stowdown hashmap angles
roboticsteam4904-2 Apr 3, 2023
361c863
Merge branches 'westcoastdrive-splines-rippingseenoevil' and 'westcoa…
roboticsteam4904-2 Apr 3, 2023
8823a03
stow up after shoot; differentiate b/w shelf and floor intake
roboticsteam4904-2 Apr 3, 2023
7ca5deb
submodule update
roboticsteam4904-2 Apr 3, 2023
cf9d801
UT: rewrite balance auton with onArrivalCommand holdArmPose
Exr0n Apr 3, 2023
5ae6237
make intake stop after cone shot
roboticsteam4904-2 Apr 3, 2023
05106ae
OK OK IT IS WORKING OK
roboticsteam4904-2 Apr 4, 2023
d03a605
rewrite autons to use new onArrivalCommand semantics
Exr0n Apr 4, 2023
d0e337f
reformat robotcontainer2 autons
Exr0n Apr 4, 2023
34086d6
add 2piece+balance auton and redo path for it and 2piece -- needs tes…
Jm0rr Apr 5, 2023
a57ccd9
Merge branch 'westcoastdrive-splines-rippingseenoevil' of https://git…
roboticsteam4904-2 Apr 5, 2023
0f554d3
praying
roboticsteam4904-2 Apr 5, 2023
523d599
simple hallway practice auton (straight fwd)
Exr0n Apr 5, 2023
14bcc3d
make straight forward actually go straight forward
Exr0n Apr 5, 2023
cb591e5
For debugging
roboticsteam4904-2 Apr 5, 2023
448a245
Merge branch 'westcoastdrive-splines-rippingseenoevil' of https://git…
roboticsteam4904-2 Apr 5, 2023
b1ac8a9
m
roboticsteam4904-2 Apr 5, 2023
56e26f5
debugging hallway auton AM
Exr0n Apr 5, 2023
81f8196
snap: last robot testing before comp (test autons)
roboticsteam4904-2 Apr 6, 2023
b3f73e9
Merge pull request #17 from RoboticsTeam4904/new-funny-staging-10
Exr0n Apr 6, 2023
deddc88
################### pre packing for SVR, partial working autons and g…
Exr0n Apr 6, 2023
40cec1f
implemented new joystick (untested)
Jm0rr May 5, 2023
fa4f696
.
roboticsteam4904-2 May 5, 2023
6db3b2c
Merge branch 'dev-new-joystick' into westcoastdrive-splines-rippingse…
Jm0rr May 13, 2023
d0b74a5
cube shooting + lerped arm pivot (again)
roboticsteam4904-2 Oct 2, 2023
2fe4229
general calgames prep -- auton and minor tuning
roboticsteam4904-2 Oct 5, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 41 additions & 16 deletions src/main/deploy/pathplanner/center_mobility.path
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
"waypoints": [
{
"anchorPoint": {
"x": 1.0,
"y": 3.0
"x": 1.8058163911466711,
"y": 0.4585108250077607
},
"prevControl": null,
"nextControl": {
"x": 2.0,
"y": 3.0
"x": 2.8058163911466787,
"y": 0.4585108250077607
},
"holonomicAngle": 0,
"isReversal": false,
Expand All @@ -24,19 +24,19 @@
},
{
"anchorPoint": {
"x": 3.2257993235545075,
"y": 2.9976040783512325
"x": 7.0900275255411636,
"y": 0.9205009278074111
},
"prevControl": {
"x": 2.43846492164065,
"y": 3.0023737159346475
"x": 6.302693123627306,
"y": 0.9252705653908261
},
"nextControl": {
"x": 4.225780974640867,
"y": 2.9915462329755536
"x": 6.302693123627306,
"y": 0.9252705653908261
},
"holonomicAngle": 0,
"isReversal": false,
"isReversal": true,
"velOverride": 1.0,
"isLocked": false,
"isStopPoint": false,
Expand All @@ -49,12 +49,37 @@
},
{
"anchorPoint": {
"x": 6.162371757772435,
"y": 3.025877703201374
"x": 1.8230968041797195,
"y": 1.068776149705077
},
"prevControl": {
"x": 2.268778005912175,
"y": 1.068776149705077
},
"nextControl": {
"x": 2.268778005912175,
"y": 1.068776149705077
},
"holonomicAngle": 0,
"isReversal": true,
"velOverride": null,
"isLocked": false,
"isStopPoint": false,
"stopEvent": {
"names": [],
"executionBehavior": "parallel",
"waitBehavior": "none",
"waitTime": 0
}
},
{
"anchorPoint": {
"x": 2.8415394018288036,
"y": 2.0653572852284596
},
"prevControl": {
"x": 6.015742280723526,
"y": 3.175457471538993
"x": 2.569189420969124,
"y": 2.0653572852284596
},
"nextControl": null,
"holonomicAngle": 0,
Expand All @@ -72,7 +97,7 @@
],
"maxVelocity": 6.0,
"maxAcceleration": 3.0,
"isReversed": null,
"isReversed": false,
"markers": [
{
"position": 0.5117897727272727,
Expand Down
80 changes: 35 additions & 45 deletions src/main/java/org/usfirst/frc4904/robot/Robot.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,25 +6,20 @@
/*----------------------------------------------------------------------------*/
package org.usfirst.frc4904.robot;

import java.util.function.BooleanSupplier;
import java.util.function.DoubleSupplier;

import org.usfirst.frc4904.robot.humaninterface.drivers.NathanGain;
import org.usfirst.frc4904.robot.humaninterface.operators.DefaultOperator;
import org.usfirst.frc4904.robot.seenoevil.DriveSubsystem;
import org.usfirst.frc4904.robot.seenoevil.RobotContainer2;
import org.usfirst.frc4904.robot.subsystems.arm.ArmPivotSubsystem;
import org.usfirst.frc4904.standard.CommandRobotBase;
import org.usfirst.frc4904.standard.humaninput.Driver;

import com.ctre.phoenix.motorcontrol.NeutralMode;

import edu.wpi.first.math.controller.DifferentialDriveWheelVoltages;

import edu.wpi.first.math.trajectory.Trajectory;
import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard;
import edu.wpi.first.wpilibj2.command.CommandScheduler;
import edu.wpi.first.wpilibj2.command.Commands;
import edu.wpi.first.wpilibj2.command.button.Trigger;

import static org.usfirst.frc4904.robot.Utils.nameCommand;
Expand All @@ -33,10 +28,14 @@
public class Robot extends CommandRobotBase {
private final RobotMap map = new RobotMap();
private final RobotContainer2 donttouchme = new RobotContainer2(RobotMap.Component.frontLeftWheelTalon, RobotMap.Component.backLeftWheelTalon, RobotMap.Component.frontRightWheelTalon, RobotMap.Component.backRightWheelTalon, RobotMap.Component.navx);

private final NathanGain nathangain = new NathanGain();
private final Driver driver = new NathanGain();
private final org.usfirst.frc4904.standard.humaninput.Operator operator = new DefaultOperator();

protected double scaleGain(double input, double gain, double exp) {
return Math.pow(Math.abs(input), exp) * gain * Math.signum(input);
}

@Override
public void initialize() {
}
Expand All @@ -47,20 +46,21 @@ public void teleopInitialize() {
if (RobotContainer2.Component.leftBTalonFX != null) RobotContainer2.Component.leftBTalonFX.setNeutralMode(NeutralMode.Brake);
if (RobotContainer2.Component.rightATalonFX != null) RobotContainer2.Component.rightATalonFX.setNeutralMode(NeutralMode.Brake);
if (RobotContainer2.Component.rightBTalonFX != null) RobotContainer2.Component.rightBTalonFX.setNeutralMode(NeutralMode.Brake);
RobotMap.Component.arm.armPivotSubsystem.armMotorGroup.neutralOutput();
RobotMap.Component.arm.armExtensionSubsystem.motor.setBrakeOnNeutral();
RobotMap.Component.arm.armPivotSubsystem.armMotorGroup.brake();

RobotMap.Component.arm.armPivotSubsystem.armMotorGroup.setBrakeOnNeutral();
RobotMap.Component.arm.armPivotSubsystem.armMotorGroup.neutralOutput();
RobotMap.Component.arm.armExtensionSubsystem.motor.brake();

driver.bindCommands();
operator.bindCommands();

/***********************
* HAZMAT BLOCK START
*************************/
// SATURDAY MORNING TEST - can you run drive train in queueline

donttouchme.m_robotDrive.m_leftMotors = null;
donttouchme.m_robotDrive.m_rightMotors = null;
donttouchme.m_robotDrive.m_drive = null;
// donttouchme.m_robotDrive.m_leftMotors = null;
// donttouchme.m_robotDrive.m_rightMotors = null;
// donttouchme.m_robotDrive.m_drive = null;
DriveSubsystem.skuffedaf_teleop_initialized = true;


Expand Down Expand Up @@ -91,37 +91,17 @@ public void teleopInitialize() {
// RobotMap.Component.arm.c_posReturnToHomeUp(NathanGain.isFlippy)
// ));

final DoubleSupplier pivot_getter = () -> RobotMap.HumanInput.Operator.joystick.getAxis(1) * 50;
final DoubleSupplier pivot_getter = () -> scaleGain(RobotMap.HumanInput.Operator.joystick.getAxis(1),60, 1);
(new Trigger(() -> pivot_getter.getAsDouble() != 0)).onTrue(
nameCommand("arm - teleop - armPivot operator override",
RobotMap.Component.arm.armPivotSubsystem.c_controlAngularVelocity(pivot_getter::getAsDouble)
)
);

RobotMap.HumanInput.Operator.joystick.button3.onTrue(RobotMap.Component.arm.armExtensionSubsystem.c_controlVelocity(() -> -0.3));
RobotMap.HumanInput.Operator.joystick.button3.onFalse(RobotMap.Component.arm.armExtensionSubsystem.c_controlVelocity(() -> 0));

RobotMap.HumanInput.Operator.joystick.button5.onTrue(RobotMap.Component.arm.armExtensionSubsystem.c_controlVelocity(() -> 0.3));
RobotMap.HumanInput.Operator.joystick.button5.onFalse(RobotMap.Component.arm.armExtensionSubsystem.c_controlVelocity(() -> 0));


// Intake
// FIXME: use nameCommand to make it cleaner with expresions (no varibales)
var cmdnull = RobotMap.Component.intake.c_holdVoltage(0);
// var cmdnull = RobotMap.Component.intake.c_holdVoltage(0);

var cmd2 = RobotMap.Component.intake.c_holdVoltage(-8);
cmd2.setName("Intake - manual intake activation");
var cmdhold = RobotMap.Component.intake.c_holdVoltage(-2).withTimeout(0.5).andThen(RobotMap.Component.intake.c_holdVoltage(-1));

cmdnull.setName("Intake - deactivated");
RobotMap.HumanInput.Operator.joystick.button2.onTrue(cmd2);
RobotMap.HumanInput.Operator.joystick.button2.onFalse(cmdhold);

// Outtake
var cmd1 = RobotMap.Component.intake.c_holdVoltage(3);
cmd1.setName("Intake - manual outtake activation");
RobotMap.HumanInput.Operator.joystick.button1.onTrue(cmd1);
RobotMap.HumanInput.Operator.joystick.button1.onFalse(cmdnull);
}

@Override
Expand All @@ -136,12 +116,17 @@ public void teleopExecute() {
// SmartDashboard.putNumber("Driver out", driver.getTurnSpeed());


SmartDashboard.putBoolean("isFlipped - IMPORTANT", NathanGain.isFlippy);
// SmartDashboard.putBoolean("isFlipped - IMPORTANT", NathanGain.isFlippy);
// if (RobotMap.HumanInput.Operator.joystick.getPOV() != 0) {
SmartDashboard.putNumber("gyroooo", RobotMap.Component.navx.getAngle());
SmartDashboard.putNumber("arm extension length", RobotMap.Component.arm.armExtensionSubsystem.getCurrentExtensionLength());
SmartDashboard.putNumber("zeroing", RobotMap.Component.arm.armExtensionSubsystem.motor.getSensorPositionRotations());
SmartDashboard.putNumber("arm pivot angle", RobotMap.Component.arm.armPivotSubsystem.getCurrentAngleDegrees());
//}
// SmartDashboard.putNumber("Falcon temp", RobotContainer2.Component.leftATalonFX.getTemperature());

SmartDashboard.putNumber("Falcon temp", RobotContainer2.Component.leftATalonFX.getTemperature());
SmartDashboard.putData(RobotMap.Component.arm.armPivotSubsystem);
SmartDashboard.putData(RobotMap.Component.arm.armExtensionSubsystem);


}
Expand Down Expand Up @@ -172,7 +157,9 @@ public void autonomousInitialize() {

// SATURDAY MORNING TEST: is the cube shooter auton gonna work
// var commnand = donttouchme.balanceAutonAndShootCube(donttouchme.m_robotDrive::getWheelSpeeds, donttouchme.m_robotDrive::tankDriveVolts);
var commnand = donttouchme.getAutonomousCommand(donttouchme.getTrajectory("straight_forward"));
// var commnand = donttouchme.balanceAutonAndShootCube(donttouchme.m_robotDrive::getWheelSpeeds, donttouchme.m_robotDrive::tankDriveVolts);

var commnand = donttouchme.simpleAuton(); //for calgames; just place a cone and leave the zone
commnand.schedule();
}

Expand All @@ -181,7 +168,7 @@ public void autonomousExecute() {
// TODO remove logging


SmartDashboard.putBoolean("isFlipped - IMPORTANT", NathanGain.isFlippy);
// SmartDashboard.putBoolean("isFlipped - IMPORTANT", NathanGain.isFlippy);
SmartDashboard.putString("pose string", donttouchme.m_robotDrive.getPose().toString());
SmartDashboard.putNumber("pose x", donttouchme.m_robotDrive.getPose().getX());
SmartDashboard.putNumber("pose y", donttouchme.m_robotDrive.getPose().getY());
Expand All @@ -191,8 +178,12 @@ public void autonomousExecute() {
SmartDashboard.putNumber("armV extension length", RobotMap.Component.arm.armExtensionSubsystem.getCurrentExtensionLength());
SmartDashboard.putNumber("arm pivot angle", RobotMap.Component.arm.armPivotSubsystem.getCurrentAngleDegrees());

SmartDashboard.putNumber("Falcon temp", RobotContainer2.Component.leftATalonFX.getTemperature());
// SmartDashboard.putNumber("Falcon temp", RobotContainer2.Component.leftATalonFX.getTemperature());

// SmartDashboard.putData(RobotMap.Component.arm.armPivotSubsystem);
// SmartDashboard.putData(RobotMap.Component.arm.armExtensionSubsystem);
// SmartDashboard.putData(RobotMap.Component.arm);
// SmartDashboard.putData(donttouchme.m_robotDrive);
}

@Override
Expand Down Expand Up @@ -232,18 +223,17 @@ public void testInitialize() {
@Override
public void testExecute() {
RobotMap.Component.arm.armExtensionSubsystem.initializeEncoderPositions(0);



}

@Override
public void alwaysExecute() {
// SmartDashboard.putNumber("Arm angle", RobotMap.Component.arm.armPivotSubsystem.getCurrentAngleDegrees());
// SmartDashboard.putNumber("gyroooo", RobotMap.Component.navx.getAngle());
SmartDashboard.putNumber("Arm angle", RobotMap.Component.arm.armPivotSubsystem.getCurrentAngleDegrees());
SmartDashboard.putNumber("arm extension length", RobotMap.Component.arm.armExtensionSubsystem.getCurrentExtensionLength());
SmartDashboard.putNumber("intake speed", RobotMap.HumanInput.Operator.joystick.getAxis(3));



// SmartDashboard.putNumber("gyroooo", RobotMap.Component.navx.getAngle());
}

}
Expand Down
20 changes: 16 additions & 4 deletions src/main/java/org/usfirst/frc4904/robot/RobotMap.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
import org.usfirst.frc4904.standard.subsystems.chassis.WestCoastDrive;
import org.usfirst.frc4904.standard.subsystems.motor.TalonMotorSubsystem;
import edu.wpi.first.wpilibj.SerialPort;
import edu.wpi.first.wpilibj.livewindow.LiveWindow;
import edu.wpi.first.wpilibj2.command.button.CommandXboxController;

public class RobotMap {
Expand All @@ -41,6 +42,8 @@ public static class Port {
public static class HumanInput {
public static final int joystick = 0;
public static final int xboxController = 1;
public static final int throttleJoystick = 2;
public static final int turnJoystick = 3;
}

// // blinky constants
Expand Down Expand Up @@ -87,8 +90,8 @@ public static class Metrics {
// // 2023-robot constants
public static class Chassis {
public static final double GEAR_RATIO = 496/45; // https://www.desmos.com/calculator/llz7giggcf
public static final double WHEEL_DIAMETER_METERS = Units.inchesToMeters(5 + 1/8);
public static final double TRACK_WIDTH_METERS = .533; // +/- 0.5 inches
public static final double WHEEL_DIAMETER_METERS = Units.inchesToMeters(5.12);
public static final double TRACK_WIDTH_METERS = .8713; // +/- 0.5 inches
public static final double CHASSIS_LENGTH = Units.inchesToMeters(37); // +/- 0.5 inches

}
Expand Down Expand Up @@ -155,6 +158,8 @@ public static class Input {
public static class HumanInput {
public static class Driver {
public static CustomCommandXbox xbox;
public static CustomCommandJoystick throttleJoystick;
public static CustomCommandJoystick turnJoystick;
}

public static class Operator {
Expand All @@ -166,7 +171,9 @@ public RobotMap() {
Component.navx = new AHRS(SerialPort.Port.kMXP);

HumanInput.Driver.xbox = new CustomCommandXbox(Port.HumanInput.xboxController, 0.1);
HumanInput.Operator.joystick = new CustomCommandJoystick(Port.HumanInput.joystick, 0.05);
HumanInput.Operator.joystick = new CustomCommandJoystick(Port.HumanInput.joystick, 0.1);
HumanInput.Driver.throttleJoystick = new CustomCommandJoystick(Port.HumanInput.throttleJoystick, 0.1);
HumanInput.Driver.turnJoystick = new CustomCommandJoystick(Port.HumanInput.turnJoystick, 0.1);
// // UDP things
// try {
// Component.robotUDP = new RobotUDP(Port.Network.LOCAL_SOCKET_ADDRESS, Port.Network.LOCALIZATION_ADDRESS);
Expand All @@ -185,6 +192,11 @@ public RobotMap() {
Component.backLeftWheelTalon = new CANTalonFX(Port.CANMotor.LEFT_DRIVE_A, InvertType.None);
Component.frontLeftWheelTalon = new CANTalonFX(Port.CANMotor.LEFT_DRIVE_B, InvertType.None);

// Component.backRightWheelTalon.setSafetyEnabled(false);
// Component.frontRightWheelTalon.setSafetyEnabled(false);
// Component.backLeftWheelTalon.setSafetyEnabled(false);
// Component.frontLeftWheelTalon.setSafetyEnabled(false);

TalonMotorSubsystem leftDriveMotors = new TalonMotorSubsystem("left drive motors", NeutralMode.Brake, 0, Component.frontLeftWheelTalon, Component.backLeftWheelTalon);
TalonMotorSubsystem rightDriveMotors = new TalonMotorSubsystem("right drive motors", NeutralMode.Brake, 0, Component.frontRightWheelTalon, Component.backRightWheelTalon);
Component.chassis = new WestCoastDrive(
Expand All @@ -205,7 +217,7 @@ public RobotMap() {
TalonMotorSubsystem armRotationMotors = new TalonMotorSubsystem("Arm Pivot Subsystem", NeutralMode.Brake, 0, leftPivotMotor, rightPivotMotor);
ArmExtensionSubsystem armExtensionSubsystem = new ArmExtensionSubsystem(
new TalonMotorSubsystem("Arm Extension Subsystem", NeutralMode.Brake, 0, armExtensionMotor),
() -> ArmPivotSubsystem.motorRevsToAngle(armRotationMotors.getSensorPositionRotations())
() -> ArmPivotSubsystem.motorRevsToAngle(armRotationMotors.getSensorPositionRotations() * 0.911 - 6.3)
);
// Autonomous.autonCommand = Component.chassis.c_buildPathPlannerAuto(
// PID.Drive.kS, PID.Drive.kV, PID.Drive.kA,
Expand Down
Loading