-
Notifications
You must be signed in to change notification settings - Fork 0
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
Arms_Deployable #3
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks pretty good, just a couple tweaks
import org.wildstang.year2023.robot.WSInputs; | ||
import org.wildstang.year2023.robot.WSOutputs; | ||
|
||
public class Deployable implements Subsystem { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lets call this Intake to be more clear
// TODO Auto-generated method stub | ||
|
||
if (source == deployRevIntake){ | ||
intakeCall = !(intakeCall); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is functionally the same but it could just be !intakeCall
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should also have the ability to spin the intake backwards
@@ -0,0 +1,59 @@ | |||
package org.wildstang.year2023.subsystems; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like you had already committed this, I'll remove it
@Override | ||
public String getName() { | ||
// TODO Auto-generated method stub | ||
return "Deployable"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rename this to match the class name and add the class to WSSubsystems
This reverts commit 73827e4.
On Wed, Feb 8, 2023 at 5:59 PM Liam Fruzyna ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In src/main/java/org/wildstang/year2023/subsystems/Intake/Deployable.java
<#3 (comment)>
:
> + private WsSparkMax intake1;
+ private WsJoystickButton deployRevIntake;
+ private WsSolenoid deployable1;
+ private WsSolenoid deployable2;
+
+ //All variables used
+ private boolean intakeCall;
+
+
+
+ @OverRide
+ public void inputUpdate(Input source) {
+ // TODO Auto-generated method stub
+
+ if (source == deployRevIntake){
+ intakeCall = !(intakeCall);
We should also have the ability to spin the intake backwards
Okay i'll get that done as soon as possible
… —
Reply to this email directly, view it on GitHub
<#3 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AVTVYKOCHFANW3STD4G57TDWWQXOBANCNFSM6AAAAAAUOL5AW4>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks functional, and sounds like it too, these comments don't need action, just thoughts
if (intakeCall){ | ||
intake1.setValue(1); | ||
deployable1.setValue(true); | ||
deployable2.setValue(true); | ||
} else { | ||
intake1.setValue(0); | ||
deployable1.setValue(false); | ||
deployable2.setValue(false); | ||
} | ||
|
||
if (backCall){ | ||
intake1.setValue(-1); | ||
deployable1.setValue(true); | ||
deployable2.setValue(true); | ||
} else { | ||
intake1.setValue(0); | ||
deployable1.setValue(false); | ||
deployable2.setValue(false); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So what happens when both buttons have been pressed? Should backCall always take precedent or should the last one pressed take precedent? If its the last one pressed you could use an int to store -1, 0, or 1 instead of intakeCall and backCall then having to decide which is more important
backwards = (WsJoystickButton) WSInputs.MANIPULATOR_DPAD_UP.get(); | ||
|
||
deployable1 = (WsSolenoid) WSOutputs.DEPLOYABLE1.get(); | ||
deployable2 = (WsSolenoid) WSOutputs.DEPLOYABLE2.get(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This ended up being just 1 solenoid, but we can leave this for now
Pull request template
Please fill out the fields below by replacing their explaination text.
Subsystem: added Deployable Subsystem
Description: Sets the Manipulator D-Pad down to toggle the deployabe intake and rev
Describe your changes in a few sentences.
Tested: No
Checking that the code has built locally is important, but that is not testing.
If yes, please elaborate.
Collaborators: List anyone else who worked on this PR, preferably with @s
Before submitting: