mirror of
https://github.com/Team4388/2018-Robot.git
synced 2026-06-08 16:28:06 -06:00
hpe-code-Review
add TODO's and changed 1 button on smart dash.
This commit is contained in:
@@ -1,6 +1,4 @@
|
|||||||
|
//TODO clean up white space
|
||||||
|
|
||||||
|
|
||||||
package org.usfirst.frc4388.robot;
|
package org.usfirst.frc4388.robot;
|
||||||
|
|
||||||
import buttons.XBoxTriggerButton;
|
import buttons.XBoxTriggerButton;
|
||||||
|
|||||||
@@ -140,7 +140,6 @@ public class Robot extends IterativeRobot
|
|||||||
LRautonTaskChooser = new SendableChooser<Command>();
|
LRautonTaskChooser = new SendableChooser<Command>();
|
||||||
|
|
||||||
LRautonTaskChooser.addDefault("Choose LR Program", new CrossTheBaseLine());
|
LRautonTaskChooser.addDefault("Choose LR Program", new CrossTheBaseLine());
|
||||||
|
|
||||||
|
|
||||||
LRautonTaskChooser.addObject("Left to Left Switch", new LeftSwitchAuton());
|
LRautonTaskChooser.addObject("Left to Left Switch", new LeftSwitchAuton());
|
||||||
LRautonTaskChooser.addObject("Right to 2 Cube Scale", new Cube2Right());
|
LRautonTaskChooser.addObject("Right to 2 Cube Scale", new Cube2Right());
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
|
//TODO move constants to 1 folder
|
||||||
// RobotBuilder Version: 2.0
|
// RobotBuilder Version: 2.0
|
||||||
//
|
//
|
||||||
// This file was generated by RobotBuilder. It contains sections of
|
// This file was generated by RobotBuilder. It contains sections of
|
||||||
|
|||||||
@@ -221,7 +221,7 @@ public class Drive extends Subsystem implements ControlLoopable
|
|||||||
//leftDrive1.setVoltageRampRate(VOLTAGE_RAMP_RATE);
|
//leftDrive1.setVoltageRampRate(VOLTAGE_RAMP_RATE);
|
||||||
//leftDrive1.setNominalClosedLoopVoltage(12.0);
|
//leftDrive1.setNominalClosedLoopVoltage(12.0);
|
||||||
leftDrive1.clearStickyFaults(0);
|
leftDrive1.clearStickyFaults(0);
|
||||||
leftDrive1.setInverted(false);//false on comp 2108, false on microbot
|
leftDrive1.setInverted(true);//false on comp 2108, false on microbot, true on practice chasis
|
||||||
leftDrive1.setSensorPhase(true);//true on comp 2108, false on microbot
|
leftDrive1.setSensorPhase(true);//true on comp 2108, false on microbot
|
||||||
leftDrive1.setSafetyEnabled(false);
|
leftDrive1.setSafetyEnabled(false);
|
||||||
//leftDrive1.setCurrentLimit(15);
|
//leftDrive1.setCurrentLimit(15);
|
||||||
@@ -238,7 +238,7 @@ public class Drive extends Subsystem implements ControlLoopable
|
|||||||
// }
|
// }
|
||||||
|
|
||||||
|
|
||||||
leftDrive2.setInverted(false);//false on comp 2108, false on microbot
|
leftDrive2.setInverted(true);//false on comp 2108, false on microbot, true on practice chasis
|
||||||
leftDrive2.setSafetyEnabled(false);
|
leftDrive2.setSafetyEnabled(false);
|
||||||
leftDrive2.setNeutralMode(NeutralMode.Brake);
|
leftDrive2.setNeutralMode(NeutralMode.Brake);
|
||||||
leftDrive2.set(ControlMode.Follower, leftDrive1.getDeviceID());
|
leftDrive2.set(ControlMode.Follower, leftDrive1.getDeviceID());
|
||||||
@@ -630,7 +630,7 @@ public class Drive extends Subsystem implements ControlLoopable
|
|||||||
// m_steerInput =
|
// m_steerInput =
|
||||||
// OI.getInstance().getDriveTrainController().getRightXAxis();
|
// OI.getInstance().getDriveTrainController().getRightXAxis();
|
||||||
m_moveInput = -OI.getInstance().getDriverController().getLeftYAxis();
|
m_moveInput = -OI.getInstance().getDriverController().getLeftYAxis();
|
||||||
m_steerInput = OI.getInstance().getDriverController().getRightXAxis();
|
m_steerInput = /*only negitive on chasis bot*/-OI.getInstance().getDriverController().getRightXAxis();
|
||||||
|
|
||||||
if (controlMode == DriveControlMode.JOYSTICK) {
|
if (controlMode == DriveControlMode.JOYSTICK) {
|
||||||
m_moveOutput = adjustForSensitivity(m_moveScale, m_moveTrim,
|
m_moveOutput = adjustForSensitivity(m_moveScale, m_moveTrim,
|
||||||
|
|||||||
Reference in New Issue
Block a user