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

Fix PnuematicNumbers, Created Elevator #28

Merged
merged 13 commits into from
Mar 12, 2024

Conversation

DLipovac93
Copy link
Contributor

tweaked the numbers for the pnuematics on the REVPH since they were changed today, also created controls and subsystem for the elevator. Please double check me since I probably screwed up somewhere

Copy link
Member

@garrettsummerfi3ld garrettsummerfi3ld left a comment

Choose a reason for hiding this comment

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

Fix the issue causing build error and it's all good to go. Just need the missing semicolon.

src/main/java/frc/robot/subsystems/Elevator.java Outdated Show resolved Hide resolved
tweaked the numbers for the pnuematics on the REVPH since they were changed today, also created controls and subsystem for the elevator. Please double check me since I probably screwed up somewhere
added missing semicolen, also removed a unessiary line. *my spelling sucks
public void close() {
doubleSolenoid.set(DoubleSolenoid.Value.kReverse);
SmartDashboard.putBoolean(getName(), false);
}
Copy link
Member

Choose a reason for hiding this comment

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

Need a final } at the end of the file.

Didn't see this first time around.

Copy link
Member

@garrettsummerfi3ld garrettsummerfi3ld left a comment

Choose a reason for hiding this comment

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

Last minute updates to the code issues.

ElevatorConstants.OUT);

/** Create new pnuematic system */
public elevator() {
Copy link
Member

Choose a reason for hiding this comment

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

Rename constructor from elevator() to Elevator(). Should fix the build issues.

Copy link
Member

@garrettsummerfi3ld garrettsummerfi3ld left a comment

Choose a reason for hiding this comment

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

You should also add this to your RobotContainer.java, similar to how Dump is configured in the file.

  public RobotContainer() {

    intake.setDefaultCommand(new IntakeCommand(intake));
    dump.setDefaultCommand(new DumpControl(dump));
    conveyor.setDefaultCommand(new ConveyorCommand(conveyor));
    flyWheel.setDefaultCommand(new FlyWCommand(flyWheel));

import frc.robot.Constants.PneumaticsConstants.ElevatorConstants;
import frc.robot.util.Time;

public class Elevator {
Copy link
Member

Choose a reason for hiding this comment

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

This should also have extends SubsystemBase for the class, looking like:

public class Elevator extends SubsystemBase {

@DLipovac93
Copy link
Contributor Author

Build still fails, even after changing all of that

EuphoniumPlayer and others added 4 commits March 11, 2024 15:25
Fixed all of the redlines, not sure if it works as the bot is in multiple pieces at the time of this commit being made.
More fixed, still not tested as of the time of committing
@garrettsummerfi3ld
Copy link
Member

@EuphoniumPlayer @DLipovac93 builds still failing, are you looking at what is causing it to fail builds? It looks like you are assigning incorrect classes to each other.

@EuphoniumPlayer
Copy link
Member

@garrettsummerfi3ld It built for me

commit 3767375
Author: EuphoniumPlayer <chasewmanzella@gmail.com>
Date:   Sun Mar 10 12:40:05 2024 -0500

    Attempt to fix Conveyor Direction

    REQUIRES TESTING, IF IT DOES NOT WORK CHANGE CONVEYOR_MOTOR_1_INVERTED BACK TO TRUE AND 2 BACK TO FALSE

commit 5f8df64
Author: OakvilleDynamicsProgramer <159196208+OakvilleDynamicsProgrammer@users.noreply.github.com>
Date:   Fri Mar 8 18:04:01 2024 -0600

    Fixed Conveyor Direction

    STILL NEEDS REVIEW WITH BOTH BELTS FUNCTIONAL! But it seems that the problem is fixed.

commit a35a082
Author: OakvilleDynamicsProgramer <159196208+OakvilleDynamicsProgrammer@users.noreply.github.com>
Date:   Fri Mar 8 17:55:44 2024 -0600

    Fixed Dump

    Dump commands were flipped (fixed), openThenClose starts death spiral that disables the bot. As a result, openThenClose has been abandoned for the time being.

commit d1c991a
Author: EuphoniumPlayer <chasewmanzella@gmail.com>
Date:   Thu Mar 7 21:34:02 2024 -0600

    Fixed a POV Value

    Typo "FlyWJoystick.getPOV() == >>>215<<<" has been corrected to "FlyWJoystick.getPOV() == >>>315<<<" in FlyWCommand.java. Additionally, some completed //TODO's have been cleared due to completion of their task in previous commits.

commit 3c9240e
Author: EuphoniumPlayer <chasewmanzella@gmail.com>
Date:   Thu Mar 7 17:36:07 2024 -0600

    Implement full speed

    Full speed (100%) is now default forward POV speed (not 65%). To go 65% speed, press button 12.

commit 100b174
Author: EuphoniumPlayer <chasewmanzella@gmail.com>
Date:   Tue Mar 5 20:14:59 2024 -0600

    Flywheels remapped

    Upwards to the 45s and center is temporarily set to reduced speed until they clear to go full/adjusted speed.
    Downwards is 15% speed (center and 45s). Button 7 is reverse (reverse is set to 15% speed).

commit bb11261
Merge: 43ecc28 624c997
Author: EuphoniumPlayer <chasewmanzella@gmail.com>
Date:   Tue Mar 5 19:59:54 2024 -0600

    Updated Remap

commit 43ecc28
Author: EuphoniumPlayer <chasewmanzella@gmail.com>
Date:   Tue Mar 5 19:19:29 2024 -0600

    Renamed Joystick for Clarity

    Matched the name of the joystick in the FlyWCommand class to match the pattern found within all other Command classes.

commit bef3f91
Author: EuphoniumPlayer <chasewmanzella@gmail.com>
Date:   Tue Mar 5 19:14:04 2024 -0600

    Buttons remapped

    All buttons for intake control have been remapped as suggested by Andrew.

commit 29b49bd
Merge: e5c8162 32b7e6d
Author: EuphoniumPlayer <chasewmanzella@gmail.com>
Date:   Tue Mar 5 17:46:00 2024 -0600

    Merge branch 'Temporary-copy-to-add-flywheels-to-remap' into remap-intake-buttons

commit e5c8162
Author: OakvilleDynamicsProgrammer <chasewmanzella@gmail.com>
Date:   Tue Mar 5 15:56:03 2024 -0600

    Buttons remapped

    The intake commands for the sushi rollers and the front rollers have been split up and assigned to different buttons. Sushi in: 5, Sushi out: 6, Front in, 3, Front out: 4. The conveyor runs in the appropriate direction for each button (5 & 3 in, 3 & 4 out).
Elevator control systems still need to be implemented, but the control values have been implemented
Made the action names for moving the bot "up" and "down" instead of "open" and "closed"
@garrettsummerfi3ld
Copy link
Member

garrettsummerfi3ld commented Mar 12, 2024

Side note @EuphoniumPlayer, squash commits such as c93b010 needs to not happen as often if at all. This commit really makes the git history impossible to diagnose now because changes in these commits are not tracked because they are squashed into one, and thus half the changes here don't make sense on what was worked on since not only they don't pertain the original intention of the branch, but everything else looks messy.

@garrettsummerfi3ld garrettsummerfi3ld merged commit d0bee59 into main Mar 12, 2024
7 checks passed
@garrettsummerfi3ld garrettsummerfi3ld deleted the Elevator/PnuematicsFix branch March 12, 2024 01:16
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.

4 participants