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

Speaker rewrite #90

Draft
wants to merge 17 commits into
base: rewrite
Choose a base branch
from
Draft

Speaker rewrite #90

wants to merge 17 commits into from

Conversation

R1shy
Copy link

@R1shy R1shy commented Oct 5, 2024

No description provided.

@R1shy R1shy changed the base branch from main to rewrite October 5, 2024 17:55
@isaacngkh isaacngkh marked this pull request as draft October 10, 2024 00:52
@R1shy
Copy link
Author

R1shy commented Oct 19, 2024

It is building on my computer I have no idea why the check is failing

@R1shy R1shy marked this pull request as ready for review October 27, 2024 22:00
@@ -2,5 +2,5 @@
"enableCppIntellisense": false,
"currentLanguage": "java",
"projectYear": "2024",
"teamNumber": 5507
Copy link
Contributor

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(),
Copy link
Contributor

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");
Copy link
Contributor

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()
Copy link
Contributor

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;
Copy link
Contributor

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))
Copy link
Contributor

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

@isaacngkh isaacngkh marked this pull request as draft October 28, 2024 03:23
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.

3 participants