controller.Axis3.value(RightFront.spin(directionType::fwd,50,velocityUnits::rpm));
controller.Axis2.value(LeftFront.spin(directionType::fwd,50,velocityUnits::rpm));
controller.ButtonL2.pressing(Arm.spin(directionType::fwd,50,velocityUnits::rpm));
controller.ButtonR2.pressing(Claw.spin(directionType::fwd,50,velocityUnits::rpm));
The controller input is the value that the motor spins, that’s supposed to be in the place of the ‘50’.
So your code’ll look like this pseudocode
Motor.spin(forward,axis,units)
Furhermore this has to be in a loop so the value updates continually and not just once and done
1 Like
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.