Skip to content

set the speed for index#2

Open
Orange-Panda-ui wants to merge 29 commits intomainfrom
Indexer
Open

set the speed for index#2
Orange-Panda-ui wants to merge 29 commits intomainfrom
Indexer

Conversation

@Orange-Panda-ui
Copy link

/:

@bluefeng2
Copy link
Contributor

rename rollers.java to IndexerSubsystem.java and move it to frd/robot/subsystems
put slot0configs into Constants.java
put the motor id into Constants.java
feedBalls should be a command, not a void method.
Something like this: public Command moveHood(Supplier angleSupplier) {
return run(() -> setHoodAngle(angleSupplier.get())).until(this::isAtPosition);
}

Add the state manager: https://docs.google.com/document/d/17w_ufaRyY9BpS2LrCn5iBAyK4TVIWiptZHrk8QmhuMQ/edit?tab=t.20cjyajbq32s#heading=h.f4n6oygi558x
there is a section that explains what you need to do

@bluefeng2
Copy link
Contributor

and missing stopmotors, and i updated the indexer doc with two methods you need to do too.
When you to setrollervelocity, you cant just set the variable rollerspeed to rpm, you have to actually tell the motor to do this after. you just need to do a motor.setcontrol(m_reqest.withvelocity) or something similar

@bluefeng2
Copy link
Contributor

rename rollers.java to IndexerSubsystem.java and move it to frd/robot/subsystems
rename notrunmotor to stopmotors
just use constants.intakespeed rather than making a new variable called rollerspeed.
use the states in the doc(look in state manager) not the states in the example ode

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