Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Worked on 7-6 cargo ship auton high and low #71

Open
wants to merge 12 commits into
base: master
Choose a base branch
from

Conversation

brycegerman
Copy link
Member

No description provided.

Copy link
Contributor

@SomeNerd-Jack SomeNerd-Jack left a comment

Choose a reason for hiding this comment

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

A few blanket statements, I'm glad you're working on comments, just be sure to clean up the warnings and commented out code first

@@ -55,7 +56,7 @@ public OI() {
driverJoystick.blueX .whileHeld(new CGDriveToFarRocketFromLoadLeft());
driverJoystick.yellowY .whenPressed(new removeNeoOpenLoopRampRate());

driverJoystick.start .whenPressed(new driveAtSpeedToAngle(0, 0.5, 200000, 0.7));
driverJoystick.start .whenPressed(new CGHatchRightLowShip7Ship6());
Copy link
Contributor

Choose a reason for hiding this comment

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

Take this off the driver joystick, please

public CGHatchRightHighShip7Ship6() {
double[][] values = pathway.valuesPID;

// addSequential(new autoDriveWithPitch(-.75, 30000, 5, 0));
Copy link
Contributor

Choose a reason for hiding this comment

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

Are we going to add these back in? If not, take them out, please

public CGHatchRightLowShip7Ship6() {
double[][] values = pathway.valuesPID;

// addSequential(new autoDriveWithPitch(-.75, 30000, 5, 0));
Copy link
Contributor

Choose a reason for hiding this comment

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

Same here

@@ -2,6 +2,8 @@

import com.revrobotics.CANSparkMax.IdleMode;

import org.opencv.features2d.FastFeatureDetector;
Copy link
Contributor

Choose a reason for hiding this comment

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

Clean up unused imports

public autoTankDriveWithGyro(double angle, double leftSpeed, double rightDist, String side,
IdleMode brakeMode) {
this.angle = angle;
this.rightSpeed = rightSpeed;
Copy link
Contributor

Choose a reason for hiding this comment

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

Go through the warnings and clean up any that you can

worked on tuning to the omnis with ship 7-6 auto
NOTE: make omni command for all auton CGs and commons
Added threshold timer in autoTurnToDegree
Changed the vision speed to 24% max on omni vision drive
need to tune far rocket with omnis
@brycegerman
Copy link
Member Author

This needs to be merged before the competition on Wednesday. I know it's kind of a mess right now, but this needs to be merged because of the work we've done with the omnis. After worlds I will go through all of our code and add necessary comments, and remove unused code.
-Thanks!

boolean turnInPlace = false;

/**
/**
* @param p - P value (Ex: 0.05 (percent of the stop distance))
* @param i - I value (Ex: 0.05 (lowers/raises the steady coarse rate))
* @param d - D value (Ex: 0.05 (dampens the ocilation))
* @param targetAngle - Desired angle of the robot (right is negative, left is positive)
* @param timeout
*/
public autoTurnToDegree(double p, double i, double d, double targetAngle, double timeout) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Did we change anything in here to be specific to the omnis? If so, please make an omni version of this file

Near far is working, but still needs to be tuned
Teleop vision works
Need to add new commands for the new hatch manipulator
added autons to chooser
added new hatch score commands to OI
We need to test all of the set points again at the comp
brake mode is on all the time during teleop with omnis on
need to run all autos on the cart to make sure they go the right way
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants