From 6b3fc643a60d8f8637c3eab364015b91b06da2cb Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Sat, 4 Mar 2017 19:44:20 -0500 Subject: stuff --- src/org/usfirst/frc/team4272/robot2017/Autonomous.java | 1 + src/org/usfirst/frc/team4272/robot2017/HwRobot.java | 6 +++--- src/org/usfirst/frc/team4272/robot2017/Teleop.java | 6 +++--- 3 files changed, 7 insertions(+), 6 deletions(-) (limited to 'src/org/usfirst') diff --git a/src/org/usfirst/frc/team4272/robot2017/Autonomous.java b/src/org/usfirst/frc/team4272/robot2017/Autonomous.java index 7285108..b8aca0c 100644 --- a/src/org/usfirst/frc/team4272/robot2017/Autonomous.java +++ b/src/org/usfirst/frc/team4272/robot2017/Autonomous.java @@ -185,6 +185,7 @@ public class Autonomous { modeChooser.addObject("Center Peg", "Center Peg"); modeChooser.addObject("Left Peg", "Left Peg"); modeChooser.addObject("Right Peg", "Right Peg"); + modeChooser.addObject("Stand Still", "Stand Still"); SmartDashboard.putData("Autonomous Mode", modeChooser); } diff --git a/src/org/usfirst/frc/team4272/robot2017/HwRobot.java b/src/org/usfirst/frc/team4272/robot2017/HwRobot.java index e3b2bd5..a72ae44 100644 --- a/src/org/usfirst/frc/team4272/robot2017/HwRobot.java +++ b/src/org/usfirst/frc/team4272/robot2017/HwRobot.java @@ -90,7 +90,7 @@ public class HwRobot { lDriveE.setPIDSourceType(PIDSourceType.kRate); rDriveE.setPIDSourceType(PIDSourceType.kRate); - //PDP.initTable(NetworkTable.getTable("PDP")); + PDP.initTable(NetworkTable.getTable("PDP")); lRate = new RollingAvg(5, lDriveE); rRate = new RollingAvg(5, rDriveE); @@ -125,7 +125,7 @@ public class HwRobot { SmartDashboard.putBoolean("highGear", c.highGear); SmartDashboard.putBoolean("gedOut", c.gedOut); - //PDP.updateTable(); - //SmartDashboard.putData("PDP", PDP); + PDP.updateTable(); + SmartDashboard.putData("PDP", PDP); } } diff --git a/src/org/usfirst/frc/team4272/robot2017/Teleop.java b/src/org/usfirst/frc/team4272/robot2017/Teleop.java index 103bd66..0b9d11f 100644 --- a/src/org/usfirst/frc/team4272/robot2017/Teleop.java +++ b/src/org/usfirst/frc/team4272/robot2017/Teleop.java @@ -73,10 +73,10 @@ public class Teleop { /* shifting */ double shiftUp = prefs.getDouble("shiftUp", 3.3*3.28); double shiftDown = prefs.getDouble("shiftDown", 2.7*3.28); - if (oi.lStick.getTrigger()) { - control.highGear = false; - } else if (oi.rStick.getTrigger()) { + if (oi.rStick.getTrigger()) { control.highGear = true; + } else if (oi.lStick.getTrigger()) { + control.highGear = false; } else { double speed = Math.abs((robot.lRate.pidGet() + robot.rRate.pidGet()) / 2); if (!control.highGear) { -- cgit v1.2.3-54-g00ecf