Skip to content
This repository was archived by the owner on Oct 6, 2020. It is now read-only.

Intake test - #4

Open
zsim314 wants to merge 48 commits into
masterfrom
intakeTest
Open

Intake test#4
zsim314 wants to merge 48 commits into
masterfrom
intakeTest

Conversation

@zsim314

@zsim314 zsim314 commented Feb 28, 2020

Copy link
Copy Markdown
Contributor

Pull request to review intake subsystem, drive subsystem, hopper subsystem, robot container, and constants.

// case kForward:
// setIntake(DoubleSolenoid.Value.kReverse);
// default:
// setIntake(DoubleSolenoid.Value.kOff);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Move the default up to kForward. So
caseKForward:
setIntake(DoubleSolenoid.Value.kReverse);
That way it will always toggle the cylinder

@AndrewIverson AndrewIverson left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change the solenoid case statement in intake.

@AndrewIverson AndrewIverson left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking very good just some small tweaks for better usability

Comment thread src/main/java/frc/robot/RobotContainer.java Outdated
@Override
public void execute() {
RobotContainer.mShooterSubsystem.setVelocitySetpoint(.9*Constants.maxRPMShooter);
double speed = SmartDashboard.getNumber("shooter speed", 0);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lets get the limelight hooked up and get the distance and set between a constant for High and low speed.


@Override
public void periodic() {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add the current velocity of the shooter to the dashboard, and the command velocity too.

public static final double kGearRatio = 10.71;
public static final double kWheelCircumference = Math.PI*6;
public static final double kWheelCircumference = Math.PI*5.9;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix indentation

public ArrayList returnLeftList() throws IOException{
File file = new File("/paths/StraightTen.left.pf1.csv");
public ArrayList<Double> returnLeftList() throws IOException{
File file = new File("/home/lvuser/deploy/output/" + pathName + ".left.pf1.csv");

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix indentation



/**
* Creates a new ExampleCommand.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove Example comments and files

public static final double kGearRatio = 10.71;
public static final double kWheelCircumference = Math.PI*6;
public static final double kWheelCircumference = Math.PI*5.9;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add comment with units (inches?)

public final static int LL_LIGHT_BLINK = 2;
public final static int LL_LIGHT_ON = 3;
// 6 13 14 16
public final static int DriveLeft1 = 1;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Optional, but consider creating an array constant for DriveLeft and DriveRight.
i.e. public final static int[] DriveLeft = {1,2,16};

public final static int DriveRight3 = 13;
public final static int Shooter = 10;
public final static int Intake = 5;
public final static int Hopper1 = 4;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See above comment about using arrays

public static final double kWheelCircumference = Math.PI*5.9;

//public final static Gains kGains_Velocity

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Delete unused code

import java.util.logging.*;

public class Path{
private ArrayList rightString = new ArrayList<>();

@azvanderpas azvanderpas Mar 10, 2020

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Noting for future update that starting up the path can likely be noticeably faster if it was directly instantiated as an array instead of having to read a CSV. Maybe we need a python script to parse the CSV and turn it into a java array literal.

public ArrayList returnLeftList() throws IOException{
File file = new File("/paths/StraightTen.left.pf1.csv");
public ArrayList<Double> returnLeftList() throws IOException{
File file = new File("/home/lvuser/deploy/output/" + pathName + ".left.pf1.csv");

@azvanderpas azvanderpas Mar 10, 2020

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make a String constant for "/home/lvuser/deploy/output/" + pathName + "

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants