-
Notifications
You must be signed in to change notification settings - Fork 1
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
Speaker rewrite #90
base: rewrite
Are you sure you want to change the base?
Speaker rewrite #90
Conversation
It is building on my computer I have no idea why the check is failing |
.wpilib/wpilib_preferences.json
Outdated
@@ -2,5 +2,5 @@ | |||
"enableCppIntellisense": false, | |||
"currentLanguage": "java", | |||
"projectYear": "2024", | |||
"teamNumber": 5507 |
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.
our team number is 5507
return Commands.sequence( | ||
m_ArmSubsystem.spinArm(armAngle), | ||
m_PizzaBoxSubsystem.speedyArm_Command((() -> m_ArmSubsystem.getArmAngle())), | ||
m_PizzaBoxSubsystem.setKicker(), |
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.
Need to wait until pizza box is up to speed before activating servo
m_PizzaBoxSubsystem.stopKicker(), | ||
m_PizzaBoxSubsystem.stopMotor(), | ||
m_ArmSubsystem.spinArm(90)) | ||
.withName("scoreAmp"); |
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.
amp command looks good; test on robot
|
||
return Commands.sequence( | ||
m_ArmSubsystem.spinArm(25)) | ||
// m_PizzaBoxSubsystem.speedyArm_Command() |
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.
source intake command not complete
public static final double INTAKE_ANGLE = 63; | ||
public static final double AMP_ANGLE = 160; |
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.
amp arm angle is 305
@@ -65,12 +64,12 @@ public Command stopKicker() { | |||
|
|||
public Command speedyArm_Command(DoubleSupplier f) { | |||
if (f.getAsDouble() > 99 && f.getAsDouble() < 261) { | |||
return this.runOnce(() -> pizzaBoxIO.setMotor(1)) | |||
return this.runOnce(() -> pizzaBoxIO.setMotor(80)) |
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.
setMotor() parameter unit is in percentage -1 to 1; should not be 80.
Also this command is not working as intended; it does not spin the pizzabox while arm is swinging
No description provided.