Skip to content
This repository was archived by the owner on Sep 14, 2019. It is now read-only.

Commit 55965bd

Browse files
ready for encoder ratio testing
commented out VPID stuff in robotDrive constructor (and passed in SpdCtrGrps instead) and any enabling (TeleopDrive init and Robot testPeriodic)
1 parent 306cbf5 commit 55965bd

3 files changed

Lines changed: 9 additions & 7 deletions

File tree

Robot2018/src/org/usfirst/frc/team199/Robot2018/Robot.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -171,10 +171,10 @@ public void teleopPeriodic() {
171171
*/
172172
@Override
173173
public void testPeriodic() {
174-
if(firstTime) {
175-
Robot.dt.enableVelocityPIDs();
176-
firstTime = false;
177-
}
174+
// if(firstTime) {
175+
// Robot.dt.enableVelocityPIDs();
176+
// firstTime = false;
177+
// }
178178
Robot.dt.setVPIDs(Robot.getConst("VPID Test Set", 0.5));
179179
SmartDashboard.putNumber("Drivetrain/Left VPID Targ", Robot.dt.getLeftVPIDSetpoint());
180180
SmartDashboard.putNumber("Drivetrain/Right VPID Targ", Robot.dt.getRightVPIDSetpoint());

Robot2018/src/org/usfirst/frc/team199/Robot2018/RobotMap.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,10 @@ public RobotMap() {
147147
rightVelocityController.setContinuous(false);
148148
rightVelocityController.setAbsoluteTolerance(Robot.getConst("VelocityToleranceRight", 2));
149149

150-
robotDrive = new DifferentialDrive(leftVelocityController, rightVelocityController);
151-
robotDrive.setMaxOutput(Robot.getConst("Max High Speed", 204));
150+
// robotDrive = new DifferentialDrive(leftVelocityController, rightVelocityController);
151+
// robotDrive.setMaxOutput(Robot.getConst("Max High Speed", 204));
152+
robotDrive = new DifferentialDrive(dtLeft, dtRight);
153+
152154
distEncAvg = new PIDSourceAverage(leftEncDist, rightEncDist);
153155
fancyGyro = new AHRS(SerialPort.Port.kMXP);
154156
// dtGear = new DoubleSolenoid(getPort("1dtGearSolenoid", 0), getPort("2dtGearSolenoid", 1));

Robot2018/src/org/usfirst/frc/team199/Robot2018/commands/TeleopDrive.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public TeleopDrive() {
2323
// Called just before this Command runs the first time
2424
@Override
2525
protected void initialize() {
26-
Robot.dt.enableVelocityPIDs();
26+
// Robot.dt.enableVelocityPIDs();
2727
}
2828

2929
// Called repeatedly when this Command is scheduled to run

0 commit comments

Comments
 (0)