I’m building a claw something like this https://youtube.com/shorts/QAGHGh0UUu4?feature=share how do i make the motor hold like they did
ArmMotor.setStopping(brakeType::hold);
ArmMotor.spin(fwd, 0, rev, velocityUnits::pct);
This is how you make a motor hold a position when the motor is told to stop spinning.
Is this what you meant?
1 Like
yea i want the motor to stay where it is after i pick up a goal
1 Like
what you mean by when told to stop spinning? when I want the motor to hold how do I tell it to stop spinning
An ArmMotor.setStopping(brakeType::hold);
line can be added before the rest of the code.
This is what our looks like for example,
1 Like
Are you using blocks, python, or C++
Im using c++ … …
do i add it in pre auton section or int main
do it in preauton so it keeps that state for both auton and driver control
1 Like
Sorry I don’t know C++
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.