// Called repeatedly when this Command is scheduled to run protected void execute() { SmartDashboard.putString("AutoCommand", "Gyro"); if (m_angle > 0) { PIDChassis.PIDDriveEncoderLeft(); } else { PIDChassis.PIDDriveEncoderRight(); } }
// Called when another command which requires one or more of the same // subsystems is scheduled to run protected void interrupted() { PIDChassis.driveForward(0); }
// Called once after isFinished returns true protected void end() { PIDChassis.driveForward(0); }